I have just successfully used a wsimport/xjc plugin named xew with maven, using this post.
Using Maven for this at my company is currently not an option, so I'm trying to use the wsimport utility from the Java 7 SDK.
How do I tell wsimport to include the xew xjc plugin when importing my WSDL?
My current command line is:
wsimport -Xdebug -s src\main\java -d target\classes -extension -B-extension -B-classpath target\dependency\*:. -B-Xxew:instantiate lazy -B-Xxew:delete src\main\java\test.wsdl
It won't eat the -B parameters yet though: no such JAXB option: -Xxew
.
The xew plugin and jaxb-xjc.jar are in the working directory and on the system CLASSPATH.
I went along and used Ant to convert my WSDL to code. For this, I downloaded jaxws-ri version 2.2.8 and came up with the following Ant script, which works. Now I can use the maven-antrun-plugin to call on the script.