[
https://issues.apache.org/jira/browse/CXF-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554377
]
Glen Mazza commented on CXF-1246:
---------------------------------
OK, I tested it, using the older 2.0.3 way (same wsdl as above, except
cxf.version property is now "2.1-incubator-SNAPSHOT") and the new way you
recommend in systests/pom.xml.
Using the old way, this problem still needs fixing. The original problem is
still occurring: "mvn generate-sources" works but "mvn
org.apache.cxf:cxf-codegen-plugin:2.1-incubator-SNAPSHOT:wsdl2java" does not.
This time, instead of getting "Must specify wsdlOptions" error like I was in
2.0.3 I get: "Nothing to generate" (of course, the latter is run after I mvn
clean to get rid of the target directory so there *is* something that needs to
be generated.)
Using the new way, same problem: "mvn generate-sources" works (after I name
the phase that) but "mvn
org.apache.cxf:cxf-codegen-plugin:2.1-incubator-SNAPSHOT:wsdl2java" fails with
the same "nothing to generate" error.
Here is my plugin code:
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
<executions>
<execution>
<id>generate-test-sources</id>
<phase>generate-sources</phase>
<configuration>
<testSourceRoot>
${basedir}/target/generated/src/main/java
</testSourceRoot>
<wsdlRoot>
${basedir}/src/wsdl
</wsdlRoot>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
Also, one more concern: I'm not sure that the new element should be called
"testSourceRoot" -- because it is used in non-test cases as well. I would
think "sourceRoot" or "sourceOutput" would be better.
Thanks,
Glen
> "mvn generate-sources" works with wsdl2java but not "mvn
> groupid:artifactid:version:goal"
> -----------------------------------------------------------------------------------------
>
> Key: CXF-1246
> URL: https://issues.apache.org/jira/browse/CXF-1246
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Environment: Ubuntu Linux
> Reporter: Glen Mazza
> Assignee: maomaode
> Priority: Minor
> Attachments: hello_world.wsdl, pom.xml
>
>
> I'm trying to use Maven to run wsdl2java. "mvn (phase name)" works fine in
> generating the classes, but "mvn groupid:artifactid:[version:]goal" returns a
> "Must specify wsdlOptions" error (even though wsdlOptions are specified).
> In particular, placing a hello_world.wsdl file in the src/wsdl directory of a
> new project, and the attached pom.xml file:
> 1.) running "mvn generate-sources" has wsdl2java works fine -- artifacts are
> created.
> 2.) "mvn org.apache.cxf:cxf-codegen-plugin:wsdl2java"
> or
> "mvn org.apache.cxf:cxf-codegen-plugin:2.0.3-incubator:wsdl2java", *fails*,
> nothing generated, it just returns the "Must specify wsdlOptions" error.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.