Arnaud, here's your problem.

Caused by: java.lang.IllegalArgumentException: Unable to find rule 
AvoidAssertAsIdentifierTest; perhaps the rule name is mispelled? 



-----Original Message-----
From: Arnaud Bailly [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 14, 2006 7:23 AM
To: Maven Users List
Subject: Re: [ANN] Maven PMD plugin 2.0-beta-1

Mike Perham wrote:
> A new version of the PMD plugin for Maven 2 has been released.  PMD is 
> a source code quality analysis tool and the plugin allows for 
> automated quality reports to be generated with your project's site 
> documentation.
> 
> Highlights:
>  - Upgrade to PMD 3.4
>  - Report can be emitted in HTML, XML, CSV or TXT
>  - Added CPD (Copy/Paste Detector) report
>  - JXR integration
> 
I tried the new plugin with custom ruleset and got the following error:

Caused by: org.apache.maven.plugin.MojoExecutionException: An error has 
occurred in PMD Report report generation.
         at
org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:79)
         at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)
         at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
         ... 16 more
Caused by: java.lang.IllegalArgumentException: Unable to find rule 
AvoidAssertAsIdentifierTest; perhaps the rule name is mispelled?
         at
net.sourceforge.pmd.RuleSetFactory.parseRuleNodeWithSimpleReference(RuleSetFactory.java:287)
         at
net.sourceforge.pmd.RuleSetFactory.parseExternallyDefinedRuleNode(RuleSetFactory.java:270)
         at
net.sourceforge.pmd.RuleSetFactory.parseRuleNode(RuleSetFactory.java:211)
         at
net.sourceforge.pmd.RuleSetFactory.createRuleSet(RuleSetFactory.java:151)
         at
net.sourceforge.pmd.RuleSetFactory.createRuleSet(RuleSetFactory.java:124)
         at
net.sourceforge.pmd.RuleSetFactory.parseRuleNodeWithExclude(RuleSetFactory.java:314)
         at
net.sourceforge.pmd.RuleSetFactory.parseExternallyDefinedRuleNode(RuleSetFactory.java:268)
         at
net.sourceforge.pmd.RuleSetFactory.parseRuleNode(RuleSetFactory.java:211)
         at
net.sourceforge.pmd.RuleSetFactory.createRuleSet(RuleSetFactory.java:151)
         at
net.sourceforge.pmd.RuleSetFactory.createRuleSet(RuleSetFactory.java:124)
         at
org.apache.maven.plugin.pmd.PmdReport.executeReport(PmdReport.java:225)
         at
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
         at
org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73)
         ... 18 more

Here is my pom fragment :

    <plugin>
     <groupId>org.apache.maven.plugins</groupId>
     <artifactId>maven-pmd-plugin</artifactId>
     <configuration>
      <rulesets>
       <ruleset>maj-pe-pmd.xml</ruleset>
      </rulesets>
     </configuration>
    </plugin>

The file maj-pe-pmd.xml is at the root of the project and references standard 
rulesets Any idea ?

--
Arnaud Bailly, Dr. - Ingénieur de Recherche NORSYS 1, rue de la Cense des 
Raines ZAC du Moulin 59710 ENNEVELIN Tel : (33) 3 28 76 56 76 Mob : (33) 6 17 
12 19 78 Fax : (33) 3 28 76 57 00 Web : http://www.norsys.fr

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to