I am using Spring maven plugin, I want to create POJO classes from specified xml schema in particular folder. I tried with xjc command through java code, but its no
xjc
jaxb2-maven-plugin
Using jaxb2-maven-plugin is the easiest way. Define the plugins as below :
org.codehaus.mojo jaxb2-maven-plugin 1.6 xjc ${project.basedir}/src/main/xsd/ MARC21slim.xsd
and execute :
mvn jaxb2:xjc
the generated files will be located in target\generated-sources\jaxb
target\generated-sources\jaxb