I have integrated FlexPMD into my pom.xml file but I need to change the phase & goal in which the plugin is run. Currently it runs in the site
phase but I need it to run in the test
or compile
phase. Is this possible?
My plugin code is as follows:
<reporting>
<plugins>
<plugin>
<groupId>com.adobe.ac</groupId>
<artifactId>flex-pmd-maven-plugin</artifactId>
<version>1.0.RC4</version>
<executions>
<execution>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</reporting>
According to the Flex PMD website, the plugin seems to be designed to be run as a report only. Actually, it may have other goals but I couldn't find any information on the them and the web site makes my browser crashes (which is annoying) and http://opensource.adobe.com/svn/opensource/flexpmd/trunk is currently down so I couldn't check the code of the mojos. If you can point me in the right direction, I may provide a better answer.
In all cases, the <reporting>
element is not the right place to bind a plugin goal on a build lifecycle phase (this is done in <build>
but I don't know what goal to call as explained) and should looks like:
<reporting>
<plugins>
<plugin>
<groupId>com.adobe.ac</groupId>
<artifactId>flex-pmd-maven-plugin</artifactId>
<version>1.0.RC4</version>
</plugin>
</plugins>
</reporting>