You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Paul Baker <pb...@mindspring.com> on 2011/11/19 20:01:11 UTC

wsdl2java Loading a wsdl from the maven repository

I am trying to generate java code using wsdl2java from a wsdl in a maven
resource.
The documentation I am using is found here:

http://cxf.apache.org/docs/maven-cxf-codegen-plugin-wsdl-to-java.html
http://cxf.apache.org/docs/maven-cxf-codegen-plugin-wsdl-to-java.html 

The error that I receive is:

[INFO]                                                                         
[INFO]
------------------------------------------------------------------------
[INFO] Building testcxfservice 0.0.1-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO] 
[INFO] --- cxf-codegen-plugin:2.5.0:wsdl2java (generate-sources) @
testcxfservice ---
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.001s
[INFO] Finished at: Sat Nov 19 13:46:42 EST 2011
[INFO] Final Memory: 5M/245M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.cxf:cxf-codegen-plugin:2.5.0:wsdl2java (generate-sources)
on project testcxfservice: Resource can not be found. 
Failure to find com.myservice.contract:myservice:wsdl:0.0.1-SNAPSHOT in
https://repository.jboss.org/nexus/content/groups/public-jboss/ was cached
in the local repository,
resolution will not be reattempted until the update interval of
jboss-public-repository-group has elapsed or updates are forced
[ERROR] 
[ERROR] Try downloading the file manually from the project website.
[ERROR] 


The artifact:

com.myservice.contract:myservice

(packaged as a jar) is in the local respository. 

The maven pom file to generate the resource looks like:




&#60;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"&#62;
	
&#60;modelVersion>4.0.0&#60;/modelVersion&#62;
&#60;groupId>com.myservice.contract&#60;/groupId&#62;
&#60;artifactId>myservice&#60;/artifactId&#62;
&#60;version>0.0.1-SNAPSHOT&#60;/version&#62;

&#60;build&#62;
  &#60;resources&#62;
    &#60;resource&#62;
       &#60;directory&#62;src/main/resources&#60/directory&#62;
         &#60;includes&#62;
          &#60;include&#62;**/*.xsd&#60/include&#62;
          &#60;include&#62;**/*.wsdl&#60/include&#62;
         &#60;/includes&#62;
    &#60;/resource&#62;
 &#60;/resources&#62;
&#60;/build&#62;
&#60;/project&#62;


Do I need to package the maven resource differently (not in a jar).  Maven
is not my strong area. So if this is the issue please provide an example if
possible. 

Thanks in advance. 

Paul















--
View this message in context: http://cxf.547215.n5.nabble.com/wsdl2java-Loading-a-wsdl-from-the-maven-repository-tp5007296p5007296.html
Sent from the cxf-user mailing list archive at Nabble.com.