The generate plugin should be used to generate the sources based on the domain model description.
It is for example used in the core module of the application, and there used as follows
<build>
...
<plugins>
...
<plugin>
<groupId>org.equanda</groupId>
<artifactId>equanda-maven-plugin</artifactId>
<configuration>
<sourceDirectory>${basedir}/../src/main/om</sourceDirectory>
<template>ejb3,import,login</template>
</configuration>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
...
</plugins>
...
</build>