Skip to main content
Known Participant
October 27, 2010
Question

Hudson Integration

  • October 27, 2010
  • 1 reply
  • 870 views

Hi guys. I'm having trouble when integrating FlexPMD with Hudson. I'm using Maven for the build, and my pom.xml is as follows:

<build>

          <sourceDirectory>src/main/flex</sourceDirectory>

          <testSourceDirectory>src/test/flex</testSourceDirectory>

          <plugins>

               <plugin>

                    <groupId>org.sonatype.flexmojos</groupId>

                    <artifactId>flexmojos-maven-plugin</artifactId>

                    <version>${flexmojos-maven-plugin.version}</version>

                    <extensions>true</extensions>

                    <dependencies>

                         <dependency>

                              <groupId>com.adobe.flex</groupId>

                              <artifactId>compiler</artifactId>

                              <version>${flexsdk.version}</version>

                              <type>pom</type>

                         </dependency>

                    </dependencies>

                    <configuration>

                         <includeSources>

                              <sources>${basedir}/src/main/flex</sources>

                         </includeSources>

                         <namespaces>

                              <namespace>

                                   <uri>http://timeet.apolloti.com/</uri>

                                   <manifest>${basedir}/src/main/flex/manifest.xml</manifest>

                              </namespace>

                         </namespaces>

                         <includeNamespaces>

                              <namespace>http://timeet.apolloti.com/</namespace>

                         </includeNamespaces>

                         <includeFiles>

                         </includeFiles>

                    </configuration>

               </plugin>

               <!-- Flex PMD -->

               <plugin>

                    <groupId>com.adobe.ac</groupId>

                    <artifactId>flex-pmd-maven-plugin</artifactId>

                    <version>${flexpmd.version}</version>

                    <executions>

                         <execution>

                              <phase>package</phase>

                              <goals>

                                   <goal>pmd</goal>

                              </goals>

                         </execution>

                    </executions>

                    <configuration>

                         <failOnError>false</failOnError>

                    </configuration>

               </plugin>

               <!-- Flex PMD CPD -->

               <plugin>

                    <groupId>com.adobe.ac</groupId>

                    <artifactId>flex-pmd-cpd-maven-plugin</artifactId>

                    <version>${flexpmd.version}</version>

                    <executions>

                         <execution>

                              <phase>package</phase>

                              <goals>

                                   <goal>check</goal>

                              </goals>

                         </execution>

                    </executions>

                    <configuration>

                         <minimumTokenCount>5</minimumTokenCount>

                    </configuration>

               </plugin>

               <!-- Flex PMD Metrics -->

               <plugin>

                    <groupId>com.adobe.ac</groupId>

                    <artifactId>flex-pmd-metrics-maven-plugin</artifactId>

                    <version>${flexpmd.version}</version>

                    <executions>

                         <execution>

                              <phase>package</phase>

                              <goals>

                                   <goal>check</goal>

                              </goals>

                         </execution>

                    </executions>

               </plugin>

          </plugins>

     </build>

</project>

I have Java and Flex projects in the job, the Java project generates the PMD warnings section in Hudson correctly, but the FlexPMD isn't showing. Seeing the console, the PMD of Hudson isn't parsing the Flex generated PMD.xml.

Any suggestions?

Regards.

This topic has been closed for replies.

1 reply

Known Participant
October 28, 2010

No one?