Hi,
I am in the process of migrating some existing maven tasks to
use maven 2. We use mockobjects in our code for testing purposes, and I
would like to know if anyone has experience using maven2 with
mockobjects can give me some pointer as to how the pom should look like.
When we did it with maven 1.x we have to use ant like the
following:
<ant:java
classname="de.abstrakt.tools.codegeneration.file.MockCreatorFile"
fork="yes" failonerror="true"
classpathref="mockcreator.classpath">
<ant:arg line="-o ${maven.build.dir}/generated-sources/mocked"/>
<!--
For each class to mock add one line with full classname
-->
<ant:arg value="SomeClass"/>
<ant:classpath>
<ant:pathelement path="${maven.build.dest}"/>
</ant:classpath>
</ant:java>
Is there a more natural way to do it in Maven 2? I can't find anything
from the web so any advice is welcome.
Thanks in advance for your help!
Regards,
Dennis Ho.