cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-3045) cxf-codgen-plugin does hot support XMLBeans generated classes/sources properly
Date Mon, 18 Mar 2013 20:06:16 GMT

     [ https://issues.apache.org/jira/browse/CXF-3045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Kulp resolved CXF-3045.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.7.4
         Assignee: Daniel Kulp
    
> cxf-codgen-plugin does hot support XMLBeans generated classes/sources properly
> ------------------------------------------------------------------------------
>
>                 Key: CXF-3045
>                 URL: https://issues.apache.org/jira/browse/CXF-3045
>             Project: CXF
>          Issue Type: Bug
>          Components: Integration, OtherDatabindings
>    Affects Versions: 2.2.10
>            Reporter: Stephane Nicoll
>            Assignee: Daniel Kulp
>             Fix For: 2.7.4
>
>
> When XMLBeans runs it not only generates sources but also classes. While the plugin has
a classesDirectory property it does not use it at all. 
> A default configuration can still produce the expected result. Here it is
> {code:xml}
>             <plugin>
>                 <groupId>org.apache.cxf</groupId>
>                 <artifactId>cxf-codegen-plugin</artifactId>
>                 <executions>
>                     <execution>
>                         <id>generate-sources</id>
>                         <phase>generate-sources</phase>
>                         <configuration>
>                             <defaultOptions>
>                                 <extraargs>
>                                     <extraarg>-classdir</extraarg>
>                                     <extraarg>${project.build.outputDirectory}</extraarg>
>                                     <extraarg>-db</extraarg>
>                                     <extraarg>xmlbeans</extraarg>
>                                 </extraargs>
>                             </defaultOptions>
>                             <wsdlRoot>${basedir}/src/main/wsdl</wsdlRoot>
>                             <includes>
>                                 <include>*.wsdl</include>
>                             </includes>
>                         </configuration>
>                         <goals>
>                             <goal>wsdl2java</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
> {code}
> The problem now. If you do not specify this extra classDir parameter yourself, the plugin
will generate the sources and the classes in the same directory. In practice all the generated
classes at this point will NOT be included in the jar produced by Maven.
> Maybe having specific configuration option for the bindings would help here.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message