Cayenne User Documentation
Maven2 Plugins

## 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-SNAPSHOT</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-SNAPSHOT</version>
        </plugin>
      </plugins>
    </build>

It has one goal:

- cayenne-modeler:run - Start up the modeler from the command-line

### Sections

1. maven2-cgen
2. maven2-cdbgen
3. maven2-cdbimport
4. maven2-modeler

.
Copyright ©2001-2010 Apache Software Foundation