Skip to main content
Participant
March 3, 2010
Question

Maven phase and goals

  • March 3, 2010
  • 1 reply
  • 690 views

Hi everyone.

From documentation currently FlexPMD runs in the site phase but I need it to run in the compile phase. Is this possible?

The original problem is: I want to prevent project successful building if there is any violation errors the same way as pmd works for Java.

Thanks.

This topic has been closed for replies.

1 reply

Participant
August 11, 2010

Yes -- put the plugin in the build plugins section with executions:

<execution>
    <id>run-flexpmd-main</id>
    <phase>process-sources</phase>
    <goals>
        <goal>check</goal>
    </goals>
</execution>