@Mojo(name="generate",
defaultPhase=GENERATE_SOURCES,
threadSafe=true)
public class ModelloGenerateMojo
extends AbstractModelloSourceGeneratorMojo
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>
| Constructor and Description |
|---|
ModelloGenerateMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected String |
getGeneratorType() |
customizeParameters, getOutputDirectory, producesCompilableResult, setOutputDirectorycreateParameters, getBasedir, getModelloCore, getModels, getPackageWithVersion, getProject, getVersion, producesResources, setBasedir, setBuildContext, setModelloCore, setModels, setPackagedVersions, setPackageWithVersion, setProject, setVersionprotected String getGeneratorType()
getGeneratorType in class AbstractModelloGeneratorMojopublic void execute()
throws org.apache.maven.plugin.MojoExecutionException
execute in interface org.apache.maven.plugin.Mojoexecute in class AbstractModelloGeneratorMojoorg.apache.maven.plugin.MojoExecutionExceptionCopyright © 2001-2016 Codehaus. All Rights Reserved.