1 Reply Latest reply on Jul 29, 2013 4:33 AM by Marko Strukelj

    Access denied to: http://repository.jboss.org/maven2/quartz/quartz/1.6.0/quartz-1.6.0.pom , ReasonPhrase:Forbidden. -> [Help 1]

    seb win Newbie

      Hi,

      I followed the installation a described on http://anonsvn.jboss.org/repos/gatein/portal/tags/3.2.0-M01/README.txt

      while launching maven :

       

      mvn clean install -DskipTests -Ppkg-tomcat -Dexo.projects.directory.dependencies=C:/1_DEV -Dexo.projects.app.tomcat.version=apache-tomcat-6.0.32

       

      I get a build failed as follow : Do you have any idea please ?

       

       

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 9:40.158s
      [INFO] Finished at: Sun Jul 28 00:52:55 CEST 2013
      [INFO] Final Memory: 50M/119M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal on project exo.portal.component.web.security: Cou
      ld not resolve dependencies for project org.exoplatform.portal:exo.portal.compon
      ent.web.security:jar:3.3.0.Alpha01: Failed to collect dependencies at org.jboss.
      jbossas:jboss-as-tomcat:jar:5.1.0.GA -> org.jboss.jbossas:jboss-as-connector:jar
      :5.1.0.GA -> org.jboss.jbossas:jboss-as-profileservice:jar:5.1.0.GA -> org.jboss
      .jbossas:jboss-as-aspects:jar:5.1.0.GA -> org.jboss.ejb3:jboss-ejb3-as-int:jar:1
      .1.5 -> org.jboss.ejb3:jboss-ejb3:pom:1.1.5 -> org.jboss.ejb3:jboss-ejb3-core:ja
      r:1.1.5 -> quartz:quartz:jar:1.6.0: Failed to read artifact descriptor for quart
      z:quartz:jar:1.6.0: Could not transfer artifact quartz:quartz:pom:1.6.0 from/to
      repository.jboss.org (http://repository.jboss.org/maven2): Access denied to: http://repository.jboss.org/maven2/quartz/quartz/1.6.0/quartz-1.6.0.pom , ReasonPhrase:Forbidden. -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
      ch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please rea
      d the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
      lutionException
      [ERROR]
      [ERROR] After correcting the problems, you can resume the build with the command

      [ERROR]   mvn <goals> -rf :exo.portal.component.web.security

       

       

      Many thanks

        • 1. Re: Access denied to: http://repository.jboss.org/maven2/quartz/quartz/1.6.0/quartz-1.6.0.pom , ReasonPhrase:Forbidden. -> [Help 1]
          Marko Strukelj Master

          It's a fairly old GateIn version you're using ... The error you see is due to a wrong Maven repository being used. Was correct one at the time

           

          One thing you can try is create a settings.xml file in your $HOME/.m2 or edit the existing one so it contains:

           

          <profiles>

          ...

              <profile>

                <id>repository.jboss.org</id>

                <repositories>

                  <repository>

                    <id>repository.jboss.org</id>

                    <name>JBoss Public Maven Repository Group</name>

                    <url>https://repository.jboss.org/nexus/content/groups/public/</url>

                    <layout>default</layout>

                    <releases>

                      <enabled>true</enabled>

                      <updatePolicy>never</updatePolicy>

                    </releases>

                    <snapshots>

                      <enabled>true</enabled>

                      <updatePolicy>never</updatePolicy>

                    </snapshots>

                  </repository>

                </repositories>

              </profile>

          ...

          </profiles>

          <activeProfiles>

              <activeProfile>repository.jboss.org</activeProfile>

          </activeProfiles>

           

          This would override repository configuration for repository.jboss.org to point to another URL. There are other repositories that may have the same problem.

          Maybe this will be of help: https://github.com/gatein/gatein-portal/blob/master/pom.xml#L1545.