You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by sanjay0522 <sa...@gmail.com> on 2015/07/23 00:06:46 UTC

Is Maven Code Gen Plugin not working in CXF 3.1.1

Hi Users , 

I am using latest version of the CXFApache APis  3.1.1 and I wanted to use
this below 

Option so that I can generate the Java from WSDLs which are stored in my
maven repository. 

 <wsdlOptions>
  <wsdlOption>
   <wsdlArtifact>
    <groupId>org.apache.pizza</groupId>
<artifactId>PizzaService</artifactId>
<version>1.0.0</version>
   </wsdlArtifact>
  </wsdlOption>
 </wsdlOptions>
</configuration>

when I build I get following error 
[INFO] Final Memory: 11M/182M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.cxf:cxf-codegen-plugin:3.1.1:wsdl2java (default) on project
DerivationDataClient: Failed to resolve WSDL artifact
com.caiso:mds-bpm-nexus:wsdl:1.0 -
> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.cxf:cxf-codegen-plugin:3.1.1:wsdl2java (default) on project
DerivationDataClient: Failed to resolve
WSDL artifact com.caiso:mds-bpm-nexus:wsdl:1.0
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
        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:116)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to resolve
WSDL artifact com.caiso:mds-bpm-nexus:wsdl:1.0
        at
org.apache.cxf.maven_plugin.AbstractCodegenMoho.resolveRemoteWsdlArtifact(AbstractCodegenMoho.java:826)
        at
org.apache.cxf.maven_plugin.AbstractCodegenMoho.downloadRemoteWsdls(AbstractCodegenMoho.java:774)
        at
org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.createWsdlOptionsFromScansAndExplicitWsdlOptions(WSDL2JavaMojo.java:490)
        at
org.apache.cxf.maven_plugin.AbstractCodegenMoho.execute(AbstractCodegenMoho.java:242)
        at
org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:512)
        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        ... 19 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.


thanks
Sanjay 





--
View this message in context: http://cxf.547215.n5.nabble.com/Is-Maven-Code-Gen-Plugin-wsdlArtifact-not-working-in-CXF-3-1-1-tp5759356.html
Sent from the cxf-user mailing list archive at Nabble.com.