7.8 Starting with Maven

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>

MOJO Documentation

Full name: org.codehaus.openxma:dsl-generator-mojo$VERSION$:generate-dom

Description: Maven plugin used to execute the openXMA Dom generator workflow

NameRequiredDescriptionDefault value

workflowFile

yesThe location of the workflow descriptor.workflow/DomGenerator.mwe

generatedResourcesOutlet

noPath to the directory containing manual resources like properties and xml files${basedir}/src/generated/resources.

generatedSourceOutlet

noPath to the directory containing generated java source files${basedir}/src/generated/java.

generatedTestResourcesOutlet

noPath to the direcotry containing generated resources${basedir}/src/test/generated/resources.

generatedTestSourceOutlet

noPath to the directory containing generated test java source files${basedir}/src/test/generated/java.

properties

noThe location of the generator properties file.n/a

modelFolder

noPath to the folder containing openXMA model files${basedir}/src/main/model.

resourcesOutlet

noPath to the directory containing manual resource file${basedir}/src/main/resources.

templateAdviceFiles

noThe location of the custom template advice file.n/a

testResourcesOutlet

noPath to the directory containing test resources.${basedir}/src/test/resources.

testSourceOutlet

noPath to the directory containing test sources.${project.build.testSourceDirectory}.