Modello Maven Plugin
This plugin makes use of the Modello project.
Goals Overview
- modello:xsd Generates an XML Schema from the Modello model.
- modello:xdoc Generates standard documentation for the Modello model, in xdoc format.
- modello:java Generates Java beans from the Modello model.
- modello:xpp3-writer Generates an XML Pull Parser writer from the Modello model.
- modello:xpp3-reader Generates an XML Pull Parser reader from the Modello model.
- modello:xpp3-extended-reader Generates an XML Pull Parser reader from the Modello model that records line/column number metadata and eventual source in the parsed model.
- modello:xpp3-extended-writer Generates an XML Pull Parser writer from the Modello model that writes line/column number and source info as comments on each line.
- modello:dom4j-writer Generates a DOM4J writer from the Modello model.
- modello:dom4j-reader Generates a DOM4J reader from the Modello model.
- modello:stax-writer Generates a StAX writer from the Modello model.
- modello:stax-reader Generates a StAX reader from the Modello model.
- modello:jdom-writer Generates a jdom writer from the model that is capable of preserving element ordering and comments.
- modello:jackson-writer Generates a JSON writer based on Jackson Streaming APIs from the Modello model.
- modello:jackson-reader Generates a JSON reader based on Jackson Streaming APIs from the Modello model.
- modello:jackson-extended-reader Generates a JSON reader based on Jackson Streaming APIs from the. Modello model that records line/column number metadata in the parsed model.
- modello:snakeyaml-writer Generates a YAML writer based on SnakeYaml Streaming APIs from the Modello model.
- modello:snakeyaml-reader Generates a YAML reader based on SnakeYaml Streaming APIs from the Modello model.
- modello:snakeyaml-extended-reader Generates a YAML reader based on SnakeYaml Streaming APIs from the. Modello model that records line/column number metadata in the parsed model.
- modello:velocity Creates files from the model using Velocity templates.
- modello:converters Generates classes that can convert between different versions of the model.
Usage
General instructions on how to use the Modello Plugin can be found on the usage page. Some more specific use cases are described in the examples given below.
In case you still have questions regarding the plugin's usage, please have a look at the FAQ and feel free to contact the user mailing list. The posts to the mailing list are archived and could already contain the answer to your question as part of an older thread. Hence, it is also worth browsing/searching the mail archive.
If you feel like the plugin is missing a feature or has a defect, you can fill a feature request or bug report in our issue tracker. When creating a new issue, please provide a comprehensive description of your concern. Especially for fixing bugs it is crucial that the developers can reproduce your problem. For this reason, entire debug logs, POMs or most preferably little demo projects attached to the issue are very much appreciated. Of course, patches are welcome, too. Contributors can check out the project from our source repository.
Examples
To provide you with better understanding of some usages of the Modello Plugin, you can take a look at the following example: