Access denied to http://repository.jboss.org/maven2/sun-jaxws
In axis2 module, dependency for artifact jaxws-tools need to be change to the following dependency description: com.sun.xml.ws jaxws-tools 2.1.3
[ERROR] Failed to execute goal on project jonas-webservices-axis2: Could not resolve dependencies for project org.ow2.jonas:jonas-webservices-axis2:bundle:5.3.0-M3-SNAPSHOT: Failed to collect dependencies for [org.testng:testng:jar:jdk15:5.1 (test), org.ow2.jonas:jonas-commons:jar:5.3.0-M3-SNAPSHOT (compile), org.ow2.jonas:jonas-webservices-jaxws:jar:5.3.0-M3-SNAPSHOT (compile), org.ow2.jonas:jonas-services-api:jar:5.3.0-M3-SNAPSHOT (compile), org.apache.axis2:axis2-kernel:jar:1.5.1 (compile), annogen:annogen:jar:0.1.0 (compile), org.apache.axis2:axis2-metadata:jar:1.5.1 (compile), org.apache.axis2:axis2-jaxws:jar:1.5.1 (compile), org.apache.axis2:axis2-transport-http:jar:1.5.1 (compile), org.apache.axis2:axis2-transport-local:jar:1.5.1 (compile), org.apache.axis2:axis2-java2wsdl:jar:1.5.1 (compile), org.apache.axis2:axis2-adb:jar:1.5.1 (compile), org.apache.geronimo.specs:geronimo-jaxws_2.1_spec:jar:1.0 (compile), commons-io:commons-io:jar:1.4 (compile), org.apache.ws.commons.axiom:axiom-api:jar:1.2.8 (compile), backport-util-concurrent:backport-util-concurrent:jar:3.1 (compile), xml-resolver:xml-resolver:jar:1.2 (compile), org.ow2.jonas.osgi:javaee-api:jar:5.3.0-M3-SNAPSHOT (compile), org.ow2.easybeans:easybeans-api:jar:1.2.1 (compile), org.ow2.easybeans:easybeans-core:jar:1.2.1 (compile), org.ow2.bundles:ow2-util-annotation-processor:jar:1.0.28 (provided), org.apache.xbean:xbean-reflect:jar:3.3 (compile), org.apache.httpcomponents:httpcore:jar:4.0 (compile), com.sun.xml.ws:jaxws-rt:jar:2.1.4 (compile), org.apache.axis2:axis2-saaj:jar:1.5 (compile), sun-jaxws:jaxws-tools:jar:2.1.3 (compile), org.osgi:org.osgi.core:jar:4.2.0 (provided)]: Failed to read artifact descriptor for sun-jaxws:jaxws-tools:jar:2.1.3: Could not transfer artifact sun-jaxws:jaxws-tools:pom:2.1.3 from/to repository.jboss.org (http://repository.jboss.org/maven2): Access denied to: http://repository.jboss.org/maven2/sun-jaxws/jaxws-tools/2.1.3/jaxws-tools-2.1.3.pom -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project jonas-webservices-axis2: Could not resolve dependencies for project org.ow2.jonas:jonas-webservices-axis2:bundle:5.3.0-M3-SNAPSHOT: Failed to collect dependencies for [org.testng:testng:jar:jdk15:5.1 (test), org.ow2.jonas:jonas-commons:jar:5.3.0-M3-SNAPSHOT (compile), org.ow2.jonas:jonas-webservices-jaxws:jar:5.3.0-M3-SNAPSHOT (compile), org.ow2.jonas:jonas-services-api:jar:5.3.0-M3-SNAPSHOT (compile), org.apache.axis2:axis2-kernel:jar:1.5.1 (compile), annogen:annogen:jar:0.1.0 (compile), org.apache.axis2:axis2-metadata:jar:1.5.1 (compile), org.apache.axis2:axis2-jaxws:jar:1.5.1 (compile), org.apache.axis2:axis2-transport-http:jar:1.5.1 (compile), org.apache.axis2:axis2-transport-local:jar:1.5.1 (compile), org.apache.axis2:axis2-java2wsdl:jar:1.5.1 (compile), org.apache.axis2:axis2-adb:jar:1.5.1 (compile), org.apache.geronimo.specs:geronimo-jaxws_2.1_spec:jar:1.0 (compile), commons-io:commons-io:jar:1.4 (compile), org.apache.ws.commons.axiom:axiom-api:jar:1.2.8 (compile), backport-util-concurrent:backport-util-concurrent:jar:3.1 (compile), xml-resolver:xml-resolver:jar:1.2 (compile), org.ow2.jonas.osgi:javaee-api:jar:5.3.0-M3-SNAPSHOT (compile), org.ow2.easybeans:easybeans-api:jar:1.2.1 (compile), org.ow2.easybeans:easybeans-core:jar:1.2.1 (compile), org.ow2.bundles:ow2-util-annotation-processor:jar:1.0.28 (provided), org.apache.xbean:xbean-reflect:jar:3.3 (compile), org.apache.httpcomponents:httpcore:jar:4.0 (compile), com.sun.xml.ws:jaxws-rt:jar:2.1.4 (compile), org.apache.axis2:axis2-saaj:jar:1.5 (compile), sun-jaxws:jaxws-tools:jar:2.1.3 (compile), org.osgi:org.osgi.core:jar:4.2.0 (provided)] 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.ow2.jonas:jonas-webservices-axis2:bundle:5.3.0-M3-SNAPSHOT: Failed to collect dependencies for [org.testng:testng:jar:jdk15:5.1 (test), org.ow2.jonas:jonas-commons:jar:5.3.0-M3-SNAPSHOT (compile), org.ow2.jonas:jonas-webservices-jaxws:jar:5.3.0-M3-SNAPSHOT (compile), org.ow2.jonas:jonas-services-api:jar:5.3.0-M3-SNAPSHOT (compile), org.apache.axis2:axis2-kernel:jar:1.5.1 (compile), annogen:annogen:jar:0.1.0 (compile), org.apache.axis2:axis2-metadata:jar:1.5.1 (compile), org.apache.axis2:axis2-jaxws:jar:1.5.1 (compile), org.apache.axis2:axis2-transport-http:jar:1.5.1 (compile), org.apache.axis2:axis2-transport-local:jar:1.5.1 (compile), org.apache.axis2:axis2-java2wsdl:jar:1.5.1 (compile), org.apache.axis2:axis2-adb:jar:1.5.1 (compile), org.apache.geronimo.specs:geronimo-jaxws_2.1_spec:jar:1.0 (compile), commons-io:commons-io:jar:1.4 (compile), org.apache.ws.commons.axiom:axiom-api:jar:1.2.8 (compile), backport-util-concurrent:backport-util-concurrent:jar:3.1 (compile), xml-resolver:xml-resolver:jar:1.2 (compile), org.ow2.jonas.osgi:javaee-api:jar:5.3.0-M3-SNAPSHOT (compile), org.ow2.easybeans:easybeans-api:jar:1.2.1 (compile), org.ow2.easybeans:easybeans-core:jar:1.2.1 (compile), org.ow2.bundles:ow2-util-annotation-processor:jar:1.0.28 (provided), org.apache.xbean:xbean-reflect:jar:3.3 (compile), org.apache.httpcomponents:httpcore:jar:4.0 (compile), com.sun.xml.ws:jaxws-rt:jar:2.1.4 (compile), org.apache.axis2:axis2-saaj:jar:1.5 (compile), sun-jaxws:jaxws-tools:jar:2.1.3 (compile), org.osgi:org.osgi.core:jar:4.2.0 (provided)] 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.testng:testng:jar:jdk15:5.1 (test), org.ow2.jonas:jonas-commons:jar:5.3.0-M3-SNAPSHOT (compile), org.ow2.jonas:jonas-webservices-jaxws:jar:5.3.0-M3-SNAPSHOT (compile), org.ow2.jonas:jonas-services-api:jar:5.3.0-M3-SNAPSHOT (compile), org.apache.axis2:axis2-kernel:jar:1.5.1 (compile), annogen:annogen:jar:0.1.0 (compile), org.apache.axis2:axis2-metadata:jar:1.5.1 (compile), org.apache.axis2:axis2-jaxws:jar:1.5.1 (compile), org.apache.axis2:axis2-transport-http:jar:1.5.1 (compile), org.apache.axis2:axis2-transport-local:jar:1.5.1 (compile), org.apache.axis2:axis2-java2wsdl:jar:1.5.1 (compile), org.apache.axis2:axis2-adb:jar:1.5.1 (compile), org.apache.geronimo.specs:geronimo-jaxws_2.1_spec:jar:1.0 (compile), commons-io:commons-io:jar:1.4 (compile), org.apache.ws.commons.axiom:axiom-api:jar:1.2.8 (compile), backport-util-concurrent:backport-util-concurrent:jar:3.1 (compile), xml-resolver:xml-resolver:jar:1.2 (compile), org.ow2.jonas.osgi:javaee-api:jar:5.3.0-M3-SNAPSHOT (compile), org.ow2.easybeans:easybeans-api:jar:1.2.1 (compile), org.ow2.easybeans:easybeans-core:jar:1.2.1 (compile), org.ow2.bundles:ow2-util-annotation-processor:jar:1.0.28 (provided), org.apache.xbean:xbean-reflect:jar:3.3 (compile), org.apache.httpcomponents:httpcore:jar:4.0 (compile), com.sun.xml.ws:jaxws-rt:jar:2.1.4 (compile), org.apache.axis2:axis2-saaj:jar:1.5 (compile), sun-jaxws:jaxws-tools:jar:2.1.3 (compile), org.osgi:org.osgi.core:jar:4.2.0 (provided)] 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 sun-jaxws:jaxws-tools:jar:2.1.3 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.collectDependencies(DefaultDependencyCollector.java:243) ... 25 more Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not transfer artifact sun-jaxws:jaxws-tools:pom:2.1.3 from/to repository.jboss.org (http://repository.jboss.org/maven2): Access denied to: http://repository.jboss.org/maven2/sun-jaxws/jaxws-tools/2.1.3/jaxws-tools-2.1.3.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) ... 28 more Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact sun-jaxws:jaxws-tools:pom:2.1.3 from/to repository.jboss.org (http://repository.jboss.org/maven2): Access denied to: http://repository.jboss.org/maven2/sun-jaxws/jaxws-tools/2.1.3/jaxws-tools-2.1.3.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) ... 31 more Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: http://repository.jboss.org/maven2/sun-jaxws/jaxws-tools/2.1.3/jaxws-tools-2.1.3.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:662) [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 [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :jonas-webservices-axis2 [jc@myhost jonas]$