I'm working on a related issue here, but I have a separate question. Perhaps it's all part of the same problem, but it seems different.
Because of the problems I'm having running XJC through the Ant task and through the facade, I'm now trying to run it with the command-line "xjc" tool from the JDK.
As in the original problem, I'm trying to use the "Element Wrapper" and "Fluent API" extensions, so my command line is the following:
xjc -extension -classpath "lib/jaxb-fluent-api-2.1.8.jar;lib/jaxb-xew-plugin-1.4.jar" -Xxew -summary target/xew-summary.txt -instantiate lazy -Xfluent-api schema/serviceCallResults.xsd
These are basically the same parameters I've been sending to the "cxf-jaxb-plugin" Maven plugin, which has been working for a long time. Unfortunately, this "xjc" command line fails with:
unrecognized parameter -Xxew
What might be wrong here?
-jar
and-cp
options, the command line will be something like thatjava -cp jaxb-api-2.2.7.jar;jaxb-core-2.2.7.jar;jaxb-xjc-2.2.7.jar com.sun.tools.xjc.XJCFacade -d src xsd
– Buhrstone