Apache Maven 1.x has reached its end of life, and is no longer supported. For more information, see the announcement. Users are encouraged to migrate to the current version of Apache Maven.

How to use the plugin ?


  1. You have to define your own model in your project in a file named ${basedir}/src/main/resources/model.mdo (property maven.modello.model). NOTE : Actually the plugin allow to have only one model per project.
  2. You have also to set the properties maven.modello.packageWithVersion and maven.modello.version.

Manual usage

After having change your properties to customize the behaviour of modello, you can call any goal in this plugin. To have the full list of goals you must call maven -P modello.

Automated usage

You can automatically call modello in your build.

As a pregoal of java:compile to generate your code. The modello goal uses the property maven.modello.plugins to know which modello plugins it have to use.

<!-- Register Modello -->
<preGoal name="java:compile">
  <attainGoal name="modello"/>

As a report for the web site. It will automatically generate the documentation and the xml schema for your model