org.codehaus.modello.maven
Class ModelloGenerateMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.modello.maven.AbstractModelloGeneratorMojo
org.codehaus.modello.maven.ModelloGenerateMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class ModelloGenerateMojo
- extends AbstractModelloGeneratorMojo
ModelloGenerateMojo - A dynamic way to use generators and modello plugins.
Example Usage:
<plugin>
<groupId>org.codehaus.modello</groupId>
<artifactId>modello-maven-plugin</artifactId>
<version>1.0-alpha-15-SNAPSHOT</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>
<model>src/main/mdo/project-model.xml</model>
</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>
- Version:
- $Id: ModelloGenerateMojo.java 825 2007-03-20 16:10:26Z joakime $
- Author:
- Joakim Erdfelt
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.codehaus.modello.maven.AbstractModelloGeneratorMojo |
createParameters, customizeParameters, getBasedir, getModel, getModelloCore, getPackageWithVersion, getProject, getVersion, producesCompilableResult, producesResources, setBasedir, setModel, setModelloCore, setPackagedVersions, setPackageWithVersion, setProject, setVersion |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelloGenerateMojo
public ModelloGenerateMojo()
getGeneratorType
protected java.lang.String getGeneratorType()
- Specified by:
getGeneratorType
in class AbstractModelloGeneratorMojo
getOutputDirectory
public java.io.File getOutputDirectory()
- Specified by:
getOutputDirectory
in class AbstractModelloGeneratorMojo
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
execute
in interface org.apache.maven.plugin.Mojo
- Overrides:
execute
in class AbstractModelloGeneratorMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
Copyright © 2001-2011 Codehaus. All Rights Reserved.