Unfortunately the difference is pretty great so I couldn't make my
project use the dependency.
I worked around it by moving the code generation into a separate POM
in the same directory, and invoking it from the regular project POM.
For anyone that needs to do the same:
Make a copy of your project pom (in my case it was the web project) to
codegen-pom.xml.
In your project pom, remove the fornax-oaw-m2-plugin plugin, and add
the following to automatically invoke the code generation POM at the
generate-sources phase:
<plugin>
<artifactId>maven-invoker-plugin</artifactId>
<version>1.5</version>
<configuration>
<projectsDirectory>${project.dir}</projectsDirectory>
<pom>codegen-pom.xml</pom>
<goals>
<goal>install</goal>
</goals>
</configuration>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
In your codegen-pom.xml, configure the maven-compiler-plugin to skip
compile and add a property to skip tests:
<properties>
<maven.test.skip>true</maven.test.skip>
...
</properties>
...
<plugin>
<artifactId>maven-compiler-plugin</
artifactId>
<configuration>
<excludes>
<exclude>**/*.*</
exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>comp</id>
<phase>compile</phase>
<goals></goals>
<configuration>
<excludes>
<exclude>**/*.*</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>