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
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.
-
You can reply to this email to add a comment to the issue online.