<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
JBossWS wsconsume Maven plugin FAIL
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/slbanal">stephen b</a> in <i>JBoss Web Services</i> - <a href="https://community.jboss.org/message/833531#833531">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span>I followed instructions here </span><a class="jive-link-external-small" href="https://docs.jboss.org/author/display/JBWS/wsconsume" target="_blank">https://docs.jboss.org/author/display/JBWS/wsconsume</a></p><p>But it seems there are dependency issues whenever i use the version of the plugin specified in the tutorial.</p><p>Which version of plugin should i use?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>POM:</p><p><p><span><project xmlns="</span><a class="jive-link-external-small" href="http://maven.apache.org/POM/4.0.0" rel="nofollow" target="_blank">http://maven.apache.org/POM/4.0.0</a><span>" xmlns:xsi="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>"</span></p><p><span>          xsi:schemaLocation="</span><a class="jive-link-external-small" href="http://maven.apache.org/POM/4.0.0" rel="nofollow" target="_blank">http://maven.apache.org/POM/4.0.0</a><span> </span><a class="jive-link-external-small" href="http://maven.apache.org/xsd/maven-4.0.0.xsd" rel="nofollow" target="_blank">http://maven.apache.org/xsd/maven-4.0.0.xsd</a><span>"></span></p><p>          <modelVersion>4.0.0</modelVersion></p><p>          <groupId>au.com.example.webservice</groupId></p><p>          <artifactId>test-ws</artifactId></p><p>          <version>0.0.1-SNAPSHOT</version></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>          <pluginRepositories></p><p>                    <pluginRepository></p><p>                              <id>JBOSS</id></p><p>                              <name>JBoss Repository</name></p><p><span>                              <url></span><a class="jive-link-external-small" href="https://repository.jboss.org/nexus/content/groups/public/" rel="nofollow" target="_blank">https://repository.jboss.org/nexus/content/groups/public/</a><span></url></span></p><p>                    </pluginRepository></p><p>          </pluginRepositories></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>          <build></p><p>                    <plugins></p><p>                              <plugin></p><p>                                        <groupId>org.jboss.ws.plugins</groupId></p><p>                                        <artifactId>maven-jaxws-tools-plugin</artifactId></p><p>                                        <version>1.1.0.GA</version></p><p>                                        <configuration></p><p>                                                  <wsdls></p><p>                                                            <wsdl>src/main/java/resources/Example.wsdl</wsdl></p><p>                                                  </wsdls></p><p>                                                  <targetPackage>au.com.example.webservice</targetPackage></p><p>                                                  <extension>true</extension></p><p>                                                  <verbose>true</verbose></p><p>                                                  <goalPrefix>wsconsume</goalPrefix></p><p>                                        </configuration></p><p>                                        <executions></p><p>                                                  <execution></p><p>                                                            <goals></p><p>                                                                      <goal>wsconsume</goal></p><p>                                                            </goals></p><p>                                                  </execution></p><p>                                        </executions></p><p>                              </plugin></p><p>                    </plugins></p><p>          </build></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>          <dependencies></p><p>                    <dependency></p><p>                              <groupId>org.jboss.ws.cxf</groupId></p><p>                              <artifactId>jbossws-cxf-client</artifactId></p><p>                              <version>4.0.0.GA</version></p><p>                    </dependency></p><p>          </dependencies></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p></project></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Exact Maven logs:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><pre class="jive-pre"><code class="jive-code jive-java">[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 <font color="navy"><b>for</b></font> 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:<font color="darkgreen">//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]</font>
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project test-ws: Could not resolve dependencies <font color="navy"><b>for</b></font> 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:<font color="darkgreen">//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</font>
          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 <font color="navy"><b>for</b></font> 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:<font color="darkgreen">//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</font>
          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:<font color="darkgreen">//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</font>
          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:<font color="darkgreen">//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</font>
          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:<font color="darkgreen">//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</font>
          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:<font color="darkgreen">//cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException</font>
 
</code></pre></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/833531#833531">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>