How to create a jar file containing class files generated from a given xsd file?
Do we need to create all the java files from xsd and then need to compile and create a jar?
Or, other solutions are there.
Can anyone please explain the process?
I guess that you are trying create Java classes from XSD for futher XML<->POJO mapping. Am I right?
If so – it depends on mapping lib that you use. Assume that you are using JAXB 2. The easiest way is to use XJC Maven plugin like here : http://mojo.codehaus.org/xjc-maven-plugin/usage.html and Maven will package everything to JAR then.