Maven integration is provided with a openXMA generator mojo which can be used to run the domain model generator standalone, outside of eclipse which is required for build/CI scenarios.
<plugin>
<groupId>org.codehaus.openxma</groupId>
<artifactId>dsl-generator-mojo</artifactId>
<version>3.6.2-SNAPSHOT</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>generate-dom</goal>
</goals>
</execution>
</executions>
<configuration>
<properties>${basedir}/src/main/resources/project_generator.properties</properties>
</configuration>
</plugin>Full name: org.codehaus.openxma:dsl-generator-mojo$VERSION$:generate-dom
Description: Maven plugin used to execute the openXMA Dom generator workflow
Requires a Maven 2.0 project to be executed.
Requires dependency resolution of artifacts in scope: compile.
Binds by default to the lifecycle phase: generate-sources.
| Name | Required | Description | Default value |
|---|---|---|---|
workflowFile | yes | The location of the workflow descriptor. | workflow/DomGenerator.mwe |
generatedResourcesOutlet | no | Path to the directory containing manual resources like properties and xml files | ${basedir}/src/generated/resources. |
generatedSourceOutlet | no | Path to the directory containing generated java source files | ${basedir}/src/generated/java. |
generatedTestResourcesOutlet | no | Path to the direcotry containing generated resources | ${basedir}/src/test/generated/resources. |
generatedTestSourceOutlet | no | Path to the directory containing generated test java source files | ${basedir}/src/test/generated/java. |
properties | no | The location of the generator properties file. | n/a |
modelFolder | no | Path to the folder containing openXMA model files | ${basedir}/src/main/model. |
resourcesOutlet | no | Path to the directory containing manual resource file | ${basedir}/src/main/resources. |
templateAdviceFiles | no | The location of the custom template advice file. | n/a |
testResourcesOutlet | no | Path to the directory containing test resources. | ${basedir}/src/test/resources. |
testSourceOutlet | no | Path to the directory containing test sources. | ${project.build.testSourceDirectory}. |