Cayenne User Documentation
Maven2 Plugins

## Maven2 Plugins

Cayenne ships with Maven 2 plugins that provide Maven 2 frontend to a number of useful operations in Cayenne. The following tasks are included:

- maven2-cgen - Java class generator
- maven2-cdbgen - Database schema generator
- maven2-cdeploy - Deployment configurator
- maven2-cdataport - Data porting tool.

### Importing Cayenne Plugin in pom.xml

You need to add the Cayenne plugin to your project by adding the following:

    <build>
      <plugins>
        <plugin>
           <groupId>org.apache.cayenne.plugins</groupId>
           <artifactId>maven-cayenne-plugin</artifactId>
           <version>3.0M1</version>
        </plugin>
      </plugins>
    </build>

### Sections

1. maven2-cgen
2. maven2-cdbgen
3. maven2-cdeploy
4. maven2-cdataport

.
Copyright ©2001-2007 Apache Software Foundation