Sorry, but flex PMD isn't related to flexmojos. Go adobe forum to help.

Sent from DROID

Em 07/11/2010 14:06, "Donald Suhr" <[email protected]>escreveu:

I am setting up my first maven project and am having some trouble getting my
site reports to display properly.  In short, my coverage and PMD reports are
blank.

When running 'mvn site' my tests run about three times (not sure why, do
they need to?) Each time my tests run I get a new coverage folder with
correct results; twice in my /target folder, once in my /target/site folder.
Finally, the ASDocs report runs and copies a blank index.html to
/target/site/coverage wiping out my coverage report.

I also see PMD running thrice. I get a xml result in my /target which
appears to be the output of an un-configured pmd run (default ruleset) and a
html transformation for it.  In my /target/site folder I get my configured
pmd.xml (correct results) and a flexpmd.html with the maven site shell but
no results.

ASDoc, FlexMetrics and Surefire reports all turn out okay.

Clearly im missing some configurations somewhere. Any ideas would be
helpful.

Thanks!

--

<properties>
       <flex.version>4.1.0.16076</flex.version>
       <flexmojos.version>4.0-SNAPSHOT</flexmojos.version>
       <flash.version>10.0.12.36</flash.version>
       ...
</properties>
<build>
...
<plugin>
       <groupId>org.sonatype.flexmojos</groupId>
       <artifactId>flexmojos-maven-plugin</artifactId>
       <version>${flexmojos.version}</version>
       <extensions>true</extensions>
       <configuration>
               <linkReport>true</linkReport>
               <optimize>true</optimize>
               <debug>true</debug>
               <quick>false</quick>
               <ditaSkip>false</ditaSkip>
               <showWarnings>false</showWarnings>
               <coverage>true</coverage>
               <allowSourcePathOverlap>true</allowSourcePathOverlap>
               <defines>
                       <property>
                               <name>CONFIG::DEBUG</name>
                               <value>true</value>
                       </property>
               </defines>
               <targetPlayer>${flash.version}</targetPlayer>

 <flashPlayerCommand>${flashPlayer.command}</flashPlayerCommand>
       </configuration>
       <dependencies>
               <dependency>
                       <groupId>com.adobe.flex</groupId>
                       <artifactId>compiler</artifactId>
                       <version>${flex.version}</version>
                       <type>pom</type>
               </dependency>
               <dependency>
                       <groupId>com.adobe.flex.framework</groupId>
                       <artifactId>flex-framework</artifactId>
                       <version>${flex.version}</version>
                       <type>pom</type>
               </dependency>
       </dependencies>
</plugin>
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-site-plugin</artifactId>
  <version>3.0-beta-3</version>
  <executions>
        <execution>
          <id>default-site</id>
          <phase>site</phase>
          <goals>
                  <goal>site</goal>
          </goals>
          <configuration>
                <reportPlugins>
                  <plugin>
                          <groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-project-info-reports-plugin</artifactId>
                          <version>2.2</version>
                  </plugin>
                  <plugin>
                          <groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-surefire-report-plugin</artifactId>
                          <version>2.6</version>
                  </plugin>
                  <plugin>
                          <groupId>org.sonatype.flexmojos</groupId>
                          <artifactId>flexmojos-maven-plugin</artifactId>
                          <version>${flexmojos.version}</version>
                          <configuration>
                                  <defines>
                                          <property>
                                                  <name>CONFIG::DEBUG</name>
                                                  <value>true</value>
                                          </property>
                                  </defines>
                          </configuration>
                  </plugin>
                  <plugin>
                          <groupId>com.adobe.ac</groupId>
                          <artifactId>flex-pmd-maven-plugin</artifactId>
                          <version>1.2</version>
                          <configuration>

<ruleSet>${project.build.outputDirectory}/pmd_ruleset.xml</ruleSet>

<outputDirectory>${project.reporting.outputDirectory}</outputDirectory>

<sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
                          </configuration>
                  </plugin>
                  <!--
                  <plugin>
                          <groupId>com.adobe.ac</groupId>
                          <artifactId>flex-pmd-cpd-maven-plugin</artifactId>
                          <version>1.2</version>
                          <configuration>
                                  <minimumTokenCount>50</minimumTokenCount>
                          </configuration>
                  </plugin>
                  -->
                  <plugin>
                          <groupId>com.adobe.ac</groupId>

<artifactId>flex-pmd-metrics-maven-plugin</artifactId>
                          <version>1.2</version>
                  </plugin>
                </reportPlugins>
          </configuration>
        </execution>
  </executions>
 </plugin>
</build>


--
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]<flex-mojos%[email protected]>
For more options, visit this group at
http://groups.google.com/group/flex-mojos

http://flexmojos.sonatype.org/

-- 
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos

http://flexmojos.sonatype.org/

Reply via email to