Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-10332

flex-pmd output not picked up when running as build plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • pmd-plugin
    • None

      I am running flex-pmd as part of the build, not of the reporting:

      <plugin>
        <groupId>com.adobe.ac</groupId>
        <artifactId>flex-pmd-maven-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>report</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      

      Unfortunately the Jenkins PMD plugin does not trigger then because it seems to trigger only on the "pmd" and "site" goals, but not on "report" or "check" which are the two supported by the flex-pmd plugin. I would prefer not having to run an extra "site" step for the output to be picked up. Would it be possible to accept the "report" and "check" goals?

          @Override
          protected boolean acceptGoal(final String goal) {
              return "pmd".equals(goal) || "site".equals(goal) || "report".equals(goal) || "check".equals(goal);
          }
      

      I assume that fixes it, but I didn't test it. However, I didn't find any place where the plugin actually looks out for the name of Mojo.

            drulli Ulli Hafner
            rec Richard Eckart de Castilho
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: