Plugin Documentation

Goals available for this plugin:

GoalDescription
modello:convertersCreates classes that can convert between different versions of the model.
modello:dom4j-readerCreates a DOM4J reader from the model.
modello:dom4j-writerCreates a DOM4J writer from the model.
modello:generate

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>
modello:helpDisplay help information on modello-maven-plugin.
Call mvn modello:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.
modello:javaCreates Java beans from the Modello model.
modello:jdom-writerCreates a jdom writer from the model that is capable of preserving element ordering and comments. In future it should also preserve whitespace.
modello:stax-readerCreates an StAX reader from the model.
modello:stax-writerCreates an StAX writer from the model.
modello:xdocCreates documentation for the model in xdoc format.
modello:xpp3-extended-readerCreates an XPP3 extended reader from the model. An extended reader populates the parsed model with metadata about the line/column from which the data was read if the model supports this.
modello:xpp3-readerCreates an XPP3 reader from the model.
modello:xpp3-writerCreates an XPP3 writer from the model.
modello:xsdCreates an XML schema from the model.

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven2.0.6
JDK1.5
MemoryNo minimum requirement.
Disk SpaceNo minimum requirement.

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.codehaus.modello</groupId>
          <artifactId>modello-maven-plugin</artifactId>
          <version>1.7</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>org.codehaus.modello</groupId>
        <artifactId>modello-maven-plugin</artifactId>
        <version>1.7</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"