Author: vmassol Date: Sat Mar 24 11:47:10 2007 New Revision: 522088 URL: http://svn.apache.org/viewvc?view=rev&rev=522088 Log: MCLOVER-68: XDoclet plugin executes before the Clover plugin in the lifecycle forked by the latter
Fixed by moving the binding of the clover plugin to the validate phase. Modified: maven/plugins/trunk/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverInstrumentInternalMojo.java maven/plugins/trunk/maven-clover-plugin/src/main/resources/META-INF/maven/lifecycle.xml Modified: maven/plugins/trunk/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverInstrumentInternalMojo.java URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverInstrumentInternalMojo.java?view=diff&rev=522088&r1=522087&r2=522088 ============================================================================== --- maven/plugins/trunk/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverInstrumentInternalMojo.java (original) +++ maven/plugins/trunk/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverInstrumentInternalMojo.java Sat Mar 24 11:47:10 2007 @@ -41,11 +41,12 @@ /** * Instrument source roots. * - * <p><b>Note: Do not call this MOJO directly. It is meant to be called in a custom forked lifecycle by the other + * <p><b>Note 1: Do not call this MOJO directly. It is meant to be called in a custom forked lifecycle by the other * Clover plugin MOJOs.</b></p> + * <p><b>Note 2: We bind this mojo to the "validate" phase so that it executes prior to any other mojos</b></p> * * @goal instrumentInternal - * @phase generate-sources + * @phase validate * @requiresDependencyResolution test * * @author <a href="mailto:[EMAIL PROTECTED]">Vincent Massol</a> Modified: maven/plugins/trunk/maven-clover-plugin/src/main/resources/META-INF/maven/lifecycle.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clover-plugin/src/main/resources/META-INF/maven/lifecycle.xml?view=diff&rev=522088&r1=522087&r2=522088 ============================================================================== --- maven/plugins/trunk/maven-clover-plugin/src/main/resources/META-INF/maven/lifecycle.xml (original) +++ maven/plugins/trunk/maven-clover-plugin/src/main/resources/META-INF/maven/lifecycle.xml Sat Mar 24 11:47:10 2007 @@ -3,7 +3,7 @@ <id>clover</id> <phases> <phase> - <id>generate-sources</id> + <id>validate</id> <executions> <execution> <configuration>