Maven2 Plugins
Cayenne ships three plugins that provide Maven 2 frontend to a number of useful operations in Cayenne.
maven-cayenne-plugin
This plugin is imported into pom.xml as follows:
<build> <plugins> <plugin> <groupId>org.apache.cayenne.plugins</groupId> <artifactId>maven-cayenne-plugin</artifactId> <version>3.0.1</version> </plugin> </plugins> </build>
It has the following goals:
- cayenne:cgen - Java class generator
- cayenne:cdbgen - Database schema generator
- cayenne:cdbimport - Database schema importer
maven-cayenne-modeler-plugin
This plugin is imported into pom.xml as follows:
<build> <plugins> <plugin> <groupId>org.apache.cayenne.plugins</groupId> <artifactId>maven-cayenne-modeler-plugin</artifactId> <version>3.0.1</version> </plugin> </plugins> </build>
It has one goal:
- cayenne-modeler:run - Start up the modeler from the command-line