4 Replies Latest reply on Apr 15, 2011 6:50 AM by ledroff

    My FlexPMD report is empty at "target/site/flexpmd.html", why?

    Gentle Zhou Level 1

      After executed "mvn site", the page "target/flexpmd.html" shows content correctly, while the page "target/site/flexpmd.html" shows nothing!

       

      Any body could help me ? Thanks !

       

      Here is my pom.xml :

       

       

      ==================================================================

        <build>

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

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

          <plugins>

            <plugin>

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

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

              <version>4.0-pre-alpha-1</version>

              <extensions>true</extensions>

            </plugin>

            <plugin>

              <groupId>org.apache.maven.plugins</groupId>

              <artifactId>maven-site-plugin</artifactId>

              <version>3.0-beta-3</version>

            </plugin>

          </plugins>

        </build>

       

        <dependencies>

          <dependency>

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

            <artifactId>flex-framework</artifactId>

            <version>4.0.0.13875</version>

            <type>pom</type>

          </dependency>

       

          <dependency>

            <groupId>com.adobe.flexunit</groupId>

            <artifactId>flexunit</artifactId>

            <version>0.85</version>

            <type>swc</type>

            <scope>test</scope>

          </dependency>

        </dependencies>

       

        <reporting>

          <plugins>

            <plugin>

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

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

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

              <configuration>

                <failOnError>true</failOnError>

              </configuration>

            </plugin>

          </plugins>

        </reporting>

      ==================================================================

        • 1. Re: My FlexPMD report is empty at "target/site/flexpmd.html", why?
          Gentle Zhou Level 1

          I forget to post the output:

           

          =======================================================================================

           

          [INFO] Scanning for projects...

          [INFO]

          [INFO] ------------------------------------------------------------------------

          [INFO] Building zxvc Flex 1.0-SNAPSHOT

          [INFO] ------------------------------------------------------------------------

          [INFO]

          [INFO] --- maven-site-plugin:3.0-beta-3:site (default-site) @ zxvc ---

          [INFO] configuring report plugin com.adobe.ac:flex-pmd-maven-plugin:1.2

          [INFO]

          [INFO] >>> flex-pmd-maven-plugin:1.2:check (report:check) @ zxvc >>>

          [INFO]

          [INFO] --- flex-pmd-maven-plugin:1.2:report (report) @ zxvc ---

          [INFO] FlexPmdMojo starts

          [INFO]    failOnError     false

          [INFO]    ruleSet         null

          [INFO]    sourceDirectory D:\Maven\flexProjects\zxvc\src\main\flex

          [INFO]    ruleSetURL      null

          [INFO] getting RuleSet from URL

          [INFO] Ruleset URL is not set

           

          2011-4-15 16:54:31 com.adobe.ac.pmd.engines.AbstractFlexPmdEngine loadRuleset

          信息: Ruleset: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\default_flex7239989773905659246.xml

           

          2011-4-15 16:54:31 com.adobe.ac.pmd.engines.AbstractFlexPmdEngine loadRuleset

          信息: Rules number in the ruleSet: 107

           

          2011-4-15 16:54:31 com.adobe.ac.pmd.engines.AbstractFlexPmdEngine computeViolations

          信息: It took 110ms to compute violations

           

          2011-4-15 16:54:31 com.adobe.ac.pmd.engines.AbstractFlexPmdEngine computeViolationNumber

          信息: Violations number found: 6

           

          2011-4-15 16:54:31 com.adobe.ac.pmd.engines.FlexPmdXmlEngine writeReport

          信息: Creating report in <D:\Maven\flexProjects\zxvc\target\pmd.xml>

           

          2011-4-15 16:54:31 com.adobe.ac.pmd.engines.AbstractFlexPmdEngine writeAnyReport

           

          信息: It took 0ms to write the Xml report

           

          [INFO] getting RuleSet from URL

          [INFO] Ruleset URL is not set

           

          2011-4-15 16:54:31 com.adobe.ac.pmd.engines.AbstractFlexPmdEngine loadRuleset

          信息: Ruleset: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\default_flex8880975809880234001.xml

           

          2011-4-15 16:54:31 com.adobe.ac.pmd.engines.AbstractFlexPmdEngine loadRuleset

          信息: Rules number in the ruleSet: 107

           

          2011-4-15 16:54:31 com.adobe.ac.pmd.engines.AbstractFlexPmdEngine computeViolationNumber

          信息: Violations number found: 6

           

          2011-4-15 16:54:32 com.adobe.ac.pmd.engines.AbstractFlexPmdEngine writeAnyReport

           

          信息: It took 79ms to write the Html report

          [INFO]

          [INFO] <<< flex-pmd-maven-plugin:1.2:check (report:check) @ zxvc <<<

          [WARNING] Error loading report com.adobe.ac.pmd.maven.FlexPmdMojo - AbstractMethodError: canGenerateReport()

          [WARNING] Error loading report com.adobe.ac.pmd.maven.FlexPmdReportMojo - AbstractMethodError: canGenerateReport()

          [WARNING] Report plugin org.apache.maven.plugins:maven-project-info-reports-plugin has an empty version.

          [WARNING]

          [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.

          [WARNING]

          [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.

          [INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:2.3.1

          [WARNING] No URL defined for the project - decoration links will not be resolved

           

          [INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.

          [INFO] Skipped "Flex PMD Report" report, file "flexpmd.html" already exists forthe English version.

          [INFO] Generating "Flex PMD Report" report    --- flex-pmd-maven-plugin:1.2

          [INFO] FlexPmdMojo starts

          [INFO]    failOnError     true

          [INFO]    ruleSet         null

          [INFO]    sourceDirectory D:\Maven\flexProjects\zxvc\src\main\flex

          [INFO]    ruleSetURL      null

          [INFO] getting RuleSet from URL

          [INFO] Ruleset URL is not set

           

          2011-4-15 16:54:34 com.adobe.ac.pmd.engines.AbstractFlexPmdEngine loadRuleset

          INFO: Ruleset: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\default_flex6737166268885457111.xml

           

          2011-4-15 16:54:34 com.adobe.ac.pmd.engines.AbstractFlexPmdEngine loadRuleset

          INFO: Rules number in the ruleSet: 107

           

          2011-4-15 16:54:34 com.adobe.ac.pmd.engines.AbstractFlexPmdEngine computeViolations

          INFO: It took 32ms to compute violations

           

          2011-4-15 16:54:34 com.adobe.ac.pmd.engines.AbstractFlexPmdEngine computeViolationNumber

          INFO: Violations number found: 6

           

          2011-4-15 16:54:34 com.adobe.ac.pmd.engines.FlexPmdXmlEngine writeReport

          INFO: Creating report in <D:\Maven\flexProjects\zxvc\target\pmd.xml>

           

          2011-4-15 16:54:34 com.adobe.ac.pmd.engines.AbstractFlexPmdEngine writeAnyReport

           

          INFO: It took 0ms to write the Xml report

          [INFO] Generating "Continuous Integration" report    --- maven-project-info-reports-plugin:2.3.1

          [INFO] Generating "Dependencies" report    --- maven-project-info-reports-plugin:2.3.1

          [INFO] Generating "Distribution Management" report    --- maven-project-info-reports-plugin:2.3.1

          [INFO] Generating "About" report    --- maven-project-info-reports-plugin:2.3.1

          [INFO] Generating "Issue Tracking" report    --- maven-project-info-reports-plugin:2.3.1

          [INFO] Generating "Project License" report    --- maven-project-info-reports-plugin:2.3.1

          [INFO] Generating "Mailing Lists" report    --- maven-project-info-reports-plugin:2.3.1

          [INFO] Generating "Plugin Management" report    --- maven-project-info-reports-plugin:2.3.1

          [INFO] Generating "Project Plugins" report    --- maven-project-info-reports-plugin:2.3.1

          [INFO] Generating "Project Team" report    --- maven-project-info-reports-plugin:2.3.1

          [INFO] Generating "Source Repository" report    --- maven-project-info-reports-plugin:2.3.1

          [INFO] Generating "Project Summary" report    --- maven-project-info-reports-plugin:2.3.1

          [INFO] ------------------------------------------------------------------------

          [INFO] BUILD SUCCESS

          [INFO] ------------------------------------------------------------------------

          [INFO] Total time: 13.032s

          [INFO] Finished at: Fri Apr 15 16:54:38 CST 2011

          [INFO] Final Memory: 11M/36M

          [INFO] ------------------------------------------------------------------------

           

          =======================================================================================

          • 2. Re: My FlexPMD report is empty at "target/site/flexpmd.html", why?
            ledroff Adobe Employee

            It looks like a bug to me.

            please report it there :

            https://bugs.adobe.com/jira/browse/CGM/component/11381

             

            specifiy the version of flex-mojos and maven you are using

            and eventually a sample project.

            Thanks,

            François

            • 3. Re: My FlexPMD report is empty at "target/site/flexpmd.html", why?
              Gentle Zhou Level 1

              It's a link to Cairngorm.

               

              Are you sure I should report the flexPMD bug there?

              • 4. Re: My FlexPMD report is empty at "target/site/flexpmd.html", why?
                ledroff Adobe Employee

                my bad... (I'm bad at task switching )

                 

                yes use the flexpmd jira space instead

                here you go :

                https://bugs.adobe.com/jira/browse/FLEXPMD