Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

use maven to generate java classes from xsd without annotations

Is there any way to use maven to generate java classes from an XSD (similar to jaxb2-maven-plugin) but just simply generates pojos without the javax.xml annotations?

like image 389
Greg Marut Avatar asked Jul 21 '26 02:07

Greg Marut


1 Answers

You can use XML-Beans. It is fairly easy.

How to include automatically xmlbeans generated code into maven jar?

http://mojo.codehaus.org/xmlbeans-maven-plugin/

Please refer to this for further clarification - http://blog.bdoughan.com/2012/01/how-does-jaxb-compare-to-xmlbeans.html

like image 76
asg Avatar answered Jul 22 '26 17:07

asg