cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Mazza (JIRA)" <>
Subject [jira] Commented: (CXF-1246) "mvn generate-sources" works with wsdl2java but not "mvn groupid:artifactid:version:goal"
Date Wed, 26 Dec 2007 05:11:43 GMT


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:


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.


> "mvn generate-sources" works with wsdl2java but not "mvn groupid:artifactid:version:goal"
> -----------------------------------------------------------------------------------------
>                 Key: CXF-1246
>                 URL:
>             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.

View raw message