4 Replies Latest reply: Jul 25, 2011 11:16 AM by Francis Hitchens RSS

    Jab examples error

    Francis Hitchens Newbie

      Getting this error when trying to run the JAB example. Do I need to tweak something in my maven settings?

       

      [ERROR] Failed to execute goal on project example-jab: Could not resolve dependencies for project org.jboss.narayana.blacktie:example-jab:jar:3.0.0.M3: Failed to collect dependencies for [org.jboss.narayana.blacktie:jatmibroker-xatmi-client:jar:3.0.0.M3 (compile), apache-avalon-logkit:logkit:jar:1.2-brew (test), junit:junit:jar:3.8.1 (test)]: Failed to read artifact descriptor for apache-avalon-logkit:logkit:jar:1.2: Could not transfer artifact apache-avalon-logkit:logkit:pom:1.2 from/to jboss-legacy (https://repository.jboss.org/maven2/): Access denied to: https://repository.jboss.org/maven2/apache-avalon-logkit/logkit/1.2/logkit-1.2.pom -> [Help 1]

        • 1. Re: Jab examples error
          Michael Musgrove Master

          In the  blacktie-common/pom.xml pom could you change the references to the jboss repository to the public url

           

          ie replace occurences of

              https://repository.jboss.org/nexus

          with

              http://repository.jboss.org/nexus

           

          If this does not resolve the issue I will investigate next week.

          • 2. Re: Jab examples error
            Francis Hitchens Newbie

            O.k, so I didn't have a blacktie-common/pom.xml in the 3.0.0.M3 binary release tree, so I changed the https's in my mvn settings.xml to http and am now getting this error.

             

            echo hello | mvn test -e

            [INFO] Error stacktraces are turned on.

            [INFO] Scanning for projects...

            [WARNING]

            [WARNING] Some problems were encountered while building the effective model for org.jboss.narayana.blacktie:example-jab:jar:3.0.0.M3

            [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: junit:junit:jar -> duplicate declaration of version ${version.junit} @ org.jboss.jbossas:jboss-as-component-matrix:5.1.0.GA, /fs_user/fhitchen/.m2/repository/org/jboss/jbossas/jboss-as-component-matrix/5.1.0.GA/jboss-as-component-matrix-5.1.0.GA.pom, line 1039, column 19

            [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: log4j:log4j:jar -> duplicate declaration of version 1.2.14 @ org.jboss.jbossas:jboss-as-component-matrix:5.1.0.GA, /fs_user/fhitchen/.m2/repository/org/jboss/jbossas/jboss-as-component-matrix/5.1.0.GA/jboss-as-component-matrix-5.1.0.GA.pom, line 1046, column 19

            [WARNING] The expression ${pom.url} is deprecated. Please use ${project.url} instead.

            [WARNING]

            [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.

            [WARNING]

            [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.

            [WARNING]

            [INFO]                                                                        

            [INFO] ------------------------------------------------------------------------

            [INFO] Building Blacktie JAB Example 3.0.0.M3

            [INFO] ------------------------------------------------------------------------

            Downloading: http://repository.jboss.org/maven2/apache-avalon-logkit/logkit/1.2/logkit-1.2.pom

            [INFO] ------------------------------------------------------------------------

            [INFO] BUILD FAILURE

            [INFO] ------------------------------------------------------------------------

            [INFO] Total time: 1.307s

            [INFO] Finished at: Thu Jul 21 10:16:01 CDT 2011

            [INFO] Final Memory: 4M/1009M

            [INFO] ------------------------------------------------------------------------

            [ERROR] Failed to execute goal on project example-jab: Could not resolve dependencies for project org.jboss.narayana.blacktie:example-jab:jar:3.0.0.M3: Failed to collect dependencies for [org.jboss.narayana.blacktie:jatmibroker-xatmi-client:jar:3.0.0.M3 (compile), apache-avalon-logkit:logkit:jar:1.2-brew (test), junit:junit:jar:3.8.1 (test)]: Failed to read artifact descriptor for apache-avalon-logkit:logkit:jar:1.2: Could not transfer artifact apache-avalon-logkit:logkit:pom:1.2 from/to jboss-legacy (http://repository.jboss.org/maven2/): Access denied to: http://repository.jboss.org/maven2/apache-avalon-logkit/logkit/1.2/logkit-1.2.pom -> [Help 1]

            org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project example-jab: Could not resolve dependencies for project org.jboss.narayana.blacktie:example-jab:jar:3.0.0.M3: Failed to collect dependencies for [org.jboss.narayana.blacktie:jatmibroker-xatmi-client:jar:3.0.0.M3 (compile), apache-avalon-logkit:logkit:jar:1.2-brew (test), junit:junit:jar:3.8.1 (test)]

                    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:196)

                    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:108)

                    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)

                    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)

                    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

                    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

                    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)

                    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)

                    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)

                    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)

                    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)

                    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)

                    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)

                    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)

                    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)

                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                    at java.lang.reflect.Method.invoke(Method.java:597)

                    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)

                    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)

                    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

                    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

            Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.jboss.narayana.blacktie:example-jab:jar:3.0.0.M3: Failed to collect dependencies for [org.jboss.narayana.blacktie:jatmibroker-xatmi-client:jar:3.0.0.M3 (compile), apache-avalon-logkit:logkit:jar:1.2-brew (test), junit:junit:jar:3.8.1 (test)]

                    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:139)

                    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:171)

                    ... 22 more

            Caused by: org.sonatype.aether.collection.DependencyCollectionException: Failed to collect dependencies for [org.jboss.narayana.blacktie:jatmibroker-xatmi-client:jar:3.0.0.M3 (compile), apache-avalon-logkit:logkit:jar:1.2-brew (test), junit:junit:jar:3.8.1 (test)]

                    at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:262)

                    at org.sonatype.aether.impl.internal.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:345)

                    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:131)

                    ... 23 more

            Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for apache-avalon-logkit:logkit:jar:1.2

                    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:282)

                    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:172)

                    at org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:419)

                    at org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:533)

                    at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:243)

                    ... 25 more

            Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not transfer artifact apache-avalon-logkit:logkit:pom:1.2 from/to jboss-legacy (http://repository.jboss.org/maven2/): Access denied to: http://repository.jboss.org/maven2/apache-avalon-logkit/logkit/1.2/logkit-1.2.pom

                    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:541)

                    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:220)

                    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:197)

                    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:267)

                    ... 29 more

            Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact apache-avalon-logkit:logkit:pom:1.2 from/to jboss-legacy (http://repository.jboss.org/maven2/): Access denied to: http://repository.jboss.org/maven2/apache-avalon-logkit/logkit/1.2/logkit-1.2.pom

                    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:949)

                    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:940)

                    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:695)

                    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:689)

                    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.get(WagonRepositoryConnector.java:445)

                    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:460)

                    ... 32 more

            Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: http://repository.jboss.org/maven2/apache-avalon-logkit/logkit/1.2/logkit-1.2.pom

                    at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:119)

                    at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)

                    at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)

                    at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)

                    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:608)

                    at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:64)

                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

                    at java.lang.Thread.run(Thread.java:619)

            [ERROR]

            [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 read the following articles:

            [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

             

            If I paste the last URL that is getting Access denied into my browser I get ...

             

            Forbidden

            You don't have permission to access /maven2/apache-avalon-logkit/logkit/1.2/logkit-1.2.pom on this server.


            Apache Server at repository.jboss.org Port 80
            • 3. Re: Jab examples error
              Michael Musgrove Master

              Is your settings.xml using the correct jboss repository. My settings.xml contains:

               

                    <id>jboss-public-repository-group</id>
                    <name>JBoss Public Maven Repository Group</name>
                    <url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>

               

              (and similary for plugins).

               

              Do you have access to: http://repository.jboss.org/nexus/content/groups/public-jboss/apache-avalon-logkit/logkit/1.2-brew/logkit-1.2-brew.pom

               

              FYI When I run the example the logkit is downloaded as follows:

               

              Downloading: http://download.java.net/maven/2/apache-avalon-logkit/logkit/1.2/logkit-1.2.pom

              [WARNING] The POM for apache-avalon-logkit:logkit:jar:1.2 is missing, no dependency information available

              Downloading: http://repository.jboss.org/nexus/content/groups/public-jboss/apache-avalon-logkit/logkit/1.2-brew/logkit-1.2-brew.pom

              Downloaded: http://repository.jboss.org/nexus/content/groups/public-jboss/apache-avalon-logkit/logkit/1.2-brew/logkit-1.2-brew.pom (201 B at 0.2 KB/sec)

              • 4. Re: Jab examples error
                Francis Hitchens Newbie

                It was the setting for jboss-legacy. I changed it to http://repository.jboss.org/nexus/content/groups/public-jboss/ and Maven finally worked. Thanks.

                 

                      <repository>

                          <id>jboss-legacy</id>

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

                          <url>http://repository.jboss.org/maven2/</url>

                          <layout>default</layout>

                          <releases>

                            <enabled>true</enabled>

                            <updatePolicy>never</updatePolicy>

                          </releases>

                          <snapshots>

                            <enabled>true</enabled>

                            <updatePolicy>never</updatePolicy>

                          </snapshots>

                        </repository>