org.codehaus.modello.maven

Class ModelloGenerateMojo

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

UNKNOWN: generate generate-sources Execute a Modello Generator.

Method Summary
voidexecute()
protected StringgetGeneratorType()
FilegetOutputDirectory()

Method Detail

execute

public void execute()

getGeneratorType

protected String getGeneratorType()

getOutputDirectory

public File getOutputDirectory()
Copyright © 2001-2009 Codehaus. All Rights Reserved.