Hello all,
I have question belonging to the maven cxf-code-gen-plugin (version
2.0.6)
It is possible to generate java stubs on command line using a xjs plugin
(-Xts) to generate toString() methods for generated data structures
like:
Cxf-2.0.6>> wsdl2java -xjs-Xts
src/main/resources/tmf854v20/DDPs/Framework/IIS/wsdl/Mart/MartJms.wsdl
In the following I want create java stubs using maven with following
pom.xml sequence:
..
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>2.0.6</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>${basedir}/target/generated-sources/wsdl</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>${basedir}/src/main/resources/tmf854v20/DDPs/Framework/IIS/wsdl/Ma
rt/MartJms.wsdl</wsdl>
<extraargs>
<extraarg>-all</extraarg>
<extraarg>-xjc-Xts</extraarg>
</extraargs>
</wsdlOption>
.....
But, what I get was following BUILD ERROR:
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] XJC reported 'BadCommandLineException' for -xjc argument:-Xts
avaliable plugin options:
-Xlocator : enable source location support for generated
code
-Xsync-methods : generate accessor methods with the
'synchronized' keyword
-mark-generated : mark the generated code as
@javax.annotation.Generated
unrecognized parameter -Xts
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Fri May 16 11:11:13 CEST 2008
[INFO] Final Memory: 17M/213M
[INFO]
------------------------------------------------------------------------
It seems that the cxf-codegen-plugin does not support the "-Xts" xjc
plugin.
The question is why?
Is it a bug or wrong configuration?
Any help is appreciated!
Kind regards
Joerg Hubschneider