The prerequisite is that you need the DataNucleus Maven2 plugin installed. You can download this plugin from the DataNucleus downloads area.
Set the database configuration in "src/main/resources/META-INF/persistence.xml"
Make sure you have the JDBC driver jar specified in the "pom.xml" file
Run the command: "mvn clean compile" This builds everything, and enhances the classes
Run the command: "mvn datanucleus:schema-create" This creates the schema
Run some persistence code (to be added)
Run the command: "mvn datanucleus:schema-delete" This deletes the schema