JBoss Community

JBossWS wsconsume Maven plugin FAIL

created by stephen b in JBoss Web Services - View the full discussion

Hi,

 

I followed instructions here https://docs.jboss.org/author/display/JBWS/wsconsume

But it seems there are dependency issues whenever i use the version of the plugin specified in the tutorial.

Which version of plugin should i use?

 

POM:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

          <modelVersion>4.0.0</modelVersion>

          <groupId>au.com.example.webservice</groupId>

          <artifactId>test-ws</artifactId>

          <version>0.0.1-SNAPSHOT</version>

 

 

          <pluginRepositories>

                    <pluginRepository>

                              <id>JBOSS</id>

                              <name>JBoss Repository</name>

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

                    </pluginRepository>

          </pluginRepositories>

 

 

          <build>

                    <plugins>

                              <plugin>

                                        <groupId>org.jboss.ws.plugins</groupId>

                                        <artifactId>maven-jaxws-tools-plugin</artifactId>

                                        <version>1.1.0.GA</version>

                                        <configuration>

                                                  <wsdls>

                                                            <wsdl>src/main/java/resources/Example.wsdl</wsdl>

                                                  </wsdls>

                                                  <targetPackage>au.com.example.webservice</targetPackage>

                                                  <extension>true</extension>

                                                  <verbose>true</verbose>

                                                  <goalPrefix>wsconsume</goalPrefix>

                                        </configuration>

                                        <executions>

                                                  <execution>

                                                            <goals>

                                                                      <goal>wsconsume</goal>

                                                            </goals>

                                                  </execution>

                                        </executions>

                              </plugin>

                    </plugins>

          </build>

 

 

          <dependencies>

                    <dependency>

                              <groupId>org.jboss.ws.cxf</groupId>

                              <artifactId>jbossws-cxf-client</artifactId>

                              <version>4.0.0.GA</version>

                    </dependency>

          </dependencies>

 

 

</project>

 

 

Exact Maven logs:

 

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.427s
[INFO] Finished at: Thu Aug 22 21:51:47 EST 2013
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project test-ws: Could not resolve dependencies for project au.com.example.webservice:test-ws:jar:0.0.1-SNAPSHOT: Failure to find org.jboss.ws.cxf:jbossws-cxf-client:jar:4.0.0.GA in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project test-ws: Could not resolve dependencies for project au.com.example.webservice:test-ws:jar:0.0.1-SNAPSHOT: Failure to find org.jboss.ws.cxf:jbossws-cxf-client:jar:4.0.0.GA in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
          at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
          at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
          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:320)
          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(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          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 au.com.example.webservice:test-ws:jar:0.0.1-SNAPSHOT: Failure to find org.jboss.ws.cxf:jbossws-cxf-client:jar:4.0.0.GA in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
          at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189)
          at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)
          ... 22 more
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Failure to find org.jboss.ws.cxf:jbossws-cxf-client:jar:4.0.0.GA in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
          at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375)
          at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183)
          ... 23 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Failure to find org.jboss.ws.cxf:jbossws-cxf-client:jar:4.0.0.GA in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
          at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
          at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
          at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358)
          ... 24 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find org.jboss.ws.cxf:jbossws-cxf-client:jar:4.0.0.GA in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
          at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230)
          at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204)
          at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427)
          ... 26 more
[ERROR] 
[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
 

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community