Full name:
org.codehaus.modello:modello-maven-plugin:1.7:generate
Description:
A dynamic way to use generators and Modello plugins.
Example Usage:
<plugin>
<groupId>org.codehaus.modello</groupId>
<artifactId>modello-maven-plugin</artifactId>
<version>1.3</version>
<dependencies>
<dependency>
<groupId>org.codehaus.modello</groupId>
<artifactId>modello-plugin-jpa</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
<configuration>
<version>1.0.0</version>
<packageWithVersion>false</packageWithVersion>
<models>
<model>src/main/mdo/project-model.xml</model>
</models>
</configuration>
<executions>
<execution>
<id>java</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<generatorId>java</generatorId>
</configuration>
</execution>
<execution>
<id>jpa</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<generatorId>jpa-mapping</generatorId>
</configuration>
</execution>
</executions>
</plugin>
Attributes:
| Name | Type | Since | Description |
|---|---|---|---|
| models | String[] | - | List of relative paths to mdo files containing the models. |
| outputDirectory | File | - | The output directory of the generated Java beans. Default value is: ${project.build.directory}/generated-sources/modello. |
| packageWithVersion | boolean | - | True if the generated package names should include the version. Default value is: false. User property is: packageWithVersion. |
| version | String | - | The version of the model we will be working on. User property is: version. |
| Name | Type | Since | Description |
|---|---|---|---|
| domAsXpp3 | boolean | 1.6 | Generate DOM content as plexus-utils Xpp3Dom objects
instead of org.w3c.dom.Element. Default value is: true. User property is: domAsXpp3. |
| encoding | String | 1.0-alpha-19 | The encoding to use when generating Java source files. Default value is: ${project.build.sourceEncoding}. User property is: encoding. |
| generatorId | String | - | (no description) Default value is: java. User property is: modello.generator.id. |
| packagedVersions | List | - | Additional historical versions to generate, each being packaged
with the version regardless of the packageWithVersion
setting. |
| useJava5 | boolean | 1.0 | Generate Java 5 sources, with generic collections. Default value is: false. User property is: useJava5. |