Plugin Documentation
This report describes goals, parameters details, requirements and sample usage of this plugin.
Goals
Goals available for this plugin:
Goal | Description |
---|---|
modello:converters | Creates classes that can convert between different versions of the model. |
modello:dom4j-reader | Creates a DOM4J reader from the model. |
modello:dom4j-writer | Creates 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:help | Display help information on modello-maven-plugin.
Call mvn modello:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. |
modello:jackson-extended-reader | Creates an Jackson 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:jackson-reader | Creates an Jackson reader from the model. |
modello:jackson-writer | Creates an Jackson writer from the model. |
modello:java | Creates Java beans from the Modello model. |
modello:jdom-writer | Creates a jdom writer from the model that is capable of preserving element ordering and comments. In future it should also preserve whitespace. |
modello:jsonschema | Creates a JSON Schema from the model. |
modello:sax-writer | Creates a SAX writer from the model. |
modello:snakeyaml-extended-reader | Creates an Snake Yaml 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:snakeyaml-reader | Creates an SnakeYaml reader from the model. |
modello:snakeyaml-writer | Creates an SnakeYaml writer from the model. |
modello:stax-reader | Creates an StAX reader from the model. |
modello:stax-writer | Creates an StAX writer from the model. |
modello:velocity | Creates files from the model using Velocity templates.
This mojo can be given a list of templates and a list of parameters. Each template from the
#MODELLO-VELOCITY#SAVE-OUTPUT-TO VTL directive. This allows a single template to generate multiple files. For example, the following directive will redirect further output from the template to a file named org/apache/maven/api/model/Plugin.java if the variable package is set to org.apache.maven.api.model and the variable className is set to Plugin .
|
modello:xdoc | Creates documentation for the model in xdoc format. |
modello:xpp3-extended-reader | Creates 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-extended-writer | Creates an XPP3 extended writer from the model. An extended writer renders the content with comments about the line/column from which the data was read if the model supports this. |
modello:xpp3-reader | Creates an XPP3 reader from the model. |
modello:xpp3-writer | Creates an XPP3 writer from the model. |
modello:xsd | Creates an XML schema from the model. |
System Requirements
The following specifies the minimum requirements to run this Maven plugin:
Maven | 3.6.3 |
JDK | 1.8 |
System Requirements History
The following specifies the minimum requirements to run this Maven plugin for historical versions:
Plugin Version | Maven | JDK |
---|---|---|
from 2.5.0 to 2.5.1 | 3.6.3 | 8 |
from 2.1.2 to 2.4.0 | 3.5.4 | 8 |
from 2.1.0 to 2.1.1 | 3.2.5 | 8 |
2.0.0 | 3.1.1 | 8 |
from 1.10.0 to 1.11 | 3.0 | 7 |
from 1.9.0 to 1.9.1 | 3.0 | 5 |
from 1.3 to 1.8.3 | 2.0.6 | 5 |
from 1.0-alpha-21 to 1.2 | 2.0.6 | 1.4 |
from 1.0-alpha-19 to 1.0-alpha-20 | 2.0.6 | - |
from 1.0-alpha-12 to 1.0-alpha-18 | 2.0 | - |
from 1.0-alpha-2 to 1.0-alpha-11 | - | - |
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>2.5.1</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>
</plugin>
...
</plugins>
</build>
...
</project>
For more information, see "Guide to Configuring Plug-ins"