OpenJPA Maven Plugin

This plugin provides useful tasks for building and maintaining an OpenJPA project with maven. All goals work on a given set of JPA entities.

Goals Overview

  • openjpa:enhance Enhance the entity classes with persistence functionality.
  • openjpa:sql Create a file with SQL statements, with e.g. CREATE TABLE statements
  • openjpa:schema Create a file which contains the schema mapping XML
  • openjpa:test-enhance Enhance the entity classes in the test classpath with persistence functionality.


Instructions on how to use the OpenJPA Maven Plugin can be found on the usage page.