cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "maomaode (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-1246) "mvn generate-sources" works with wsdl2java but not "mvn groupid:artifactid:version:goal"
Date Fri, 04 Jan 2008 07:11:34 GMT

    [ https://issues.apache.org/jira/browse/CXF-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12555836#action_12555836
] 

maomaode commented on CXF-1246:
-------------------------------

Here's my points

 * 2.0.4 will not include this fix, the fix is for 2.1 release

 * The default behaviors of 'mvn wsdl2java'
      ** run wsdl2java on the src/main/resources/wsdl/*.wsdl and put the generated sources
into the target/generated/src/main/java
      ** run wsdl2java on the src/test/resources/wsdl/*.wsdl and put the generated sources
into the target/generated/src/test/java
 
  * If the wsdlRoot is specified, then it is used to generate the wsdls, and in this case
the  <testSourceRoot/> is used to locate the generated sources for the test wsdls, by
default the <sourceRoot/> is used.

   * Add an expression, so we can pass the wsdlRoot from the command line i.e
      mvn wsdl2java -DwsdlRoot=YOUR_WSDL_ROOT [-DtestSourceRoot=]

   * No default value on wsdlRoot

All in all, the only modification I'll made is put the expression on wsdlRoot

  

> "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
>    Affects Versions: 2.1
>         Environment: Ubuntu Linux
>            Reporter: Glen Mazza
>            Assignee: maomaode
>            Priority: Minor
>             Fix For: 2.1
>
>         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.


Mime
View raw message