Anders Li commented on MANTRUN-51: ----------------------------------
Using "classpathref" of taskdef to specify the classpath in which your ant task is.
<plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>JPA Enhance</id> <phase>process-classes</phase> <configuration> <tasks> <!-- "classpathref" will make the 'ANT' task found when launching this project build from parent module. --> <taskdef name="openjpac" classname="org.apache.openjpa.ant.PCEnhancerTask" classpathref="maven.compile.classpath"/>
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira