This extends Basic JAXB tutorial with Maven & XSD – 1 to marshall with Spring OXM and Spring XML.
Right mouse click on target/generated-sources and select “Build Path –> Use as Source Folder”
Step 1: add spring-orm to use JAXB and spring-xml to use StringResult.