This project illustrates the usage of 2 plugins
- maven-jaxb2-plugin to generate Java classes from XSD
- Very Simple JAXB usage of the generated classes (If it's used by other projects, simply add this jar as dependency)
- build-helper-maven-plugin to publish XSD to local repository
Resources: http://prystash.blogspot.co.uk/2011/01/using-maven-to-publish-and-verify.html http://www.mojohaus.org/build-helper-maven-plugin/attach-artifact-mojo.html https://www.javacodegeeks.com/2011/02/jaxb-generate-xml-xsd.html