-
Notifications
You must be signed in to change notification settings - Fork 127
Modeler _modeler_maven_plugin
The Modelio Maven Plugin allows the Modelio tool to be automated on a specified project, and provides some Modelio module related features.
The Modelio Maven Plugin gets the parameter values that will be used from the plugin configuration specified in the pom.
The Modelio MavenPlugin has six goals, divided into two categories:
-
Modelio related goals:
-
create-project creates a new Modelio project.
-
generate-modelio-javadoc generates the Javadoc files for the Modelio project. It executes the “Generate Javadoc” command from Java Designer.
-
generate-modelio-sources generates Java sources from a Modelio project with Java Designer.
-
update-modelio-model updates the model with SVN Teamwork Manager in a Modelio project.
-
-
Module related goals:
-
module-configuration updates the content of the module.xml file, in a module development project.
-
module-validation checks the content of the module.xml file, in a module development project.
-
The Modelio Maven Plugin uses the Modelio tool. The following examples describe the basic usage of the Plugin.
To update your Modelio project from SVN, and then generate the Java sources and Javadoc:
<project>... <build> <plugins> <plugin> <groupId>org.modelio</groupId> <artifactId>modelio-maven-plugin</artifactId> <version>3.0.0.00</version> <executions> <execution> <id>GenerateJavaSources</id> <phase>generate-sources</phase> <goals> <goal>generate-modelio-sources</goal> </goals> </execution> <execution> <id>GenerateJavadoc</id> <goals> <goal>generate-modelio-javadoc</goal> </goals> </execution> </executions> <configuration> <modelioDir>H:\modelio-install\</modelioDir> <workspaceDir>H:\modelio-workspace</workspaceDir> <projectName>TestProject</projectName> <updateBeforeGeneration>true</updateBeforeGeneration> </configuration> </plugin> ... </build> ... </project>
In a module development project, complete and validate the module.xml file:
<project>... <build> <plugins> <plugin> <groupId>org.modelio</groupId> <artifactId>modelio-maven-plugin</artifactId> <version>3.0.0.00</version> <executions> <execution> <id>ModuleValidation</id> <phase>validate</phase> <goals> <goal>module-validation</goal> </goals> </execution> <execution> <id>ResourceManagement</id> <phase>generate-resources</phase> <goals> <goal>module-configuration</goal> </goals> </execution> </executions> <configuration> <moduleFile>${project.basedir}/src/main/conf/module.xml</moduleFile> </configuration> </plugin> </plugins> ... </build> ... </project>