The Castor plugin is a Maven plugin that provides the functionality of Castor's SourceGenerator for generating Java beans and associated Marshallers and Unmarshallers from XML Schema files.
Instructions on how to use the Castor Maven Plugin can be found here.