http://maven.apache.org/plugins/maven-pmd-plugin/pmd-mojo.html

Look carefully.

-----Original Message-----
From: Tiago Fernandez [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 24, 2006 6:13 PM
To: Maven Users Group
Subject: [m2.0.4] PMD enum and JDK 1.5

Hello,

It seems PMD 3.4 Maven Plug-in is ignoring my <targetjdk/> tag, because
it's complaining about the 'enum' keyword:

[INFO] Error during report generation

Embedded error: Failure executing PMD for:
C:\develop\foundation\gui\src\main\java\tlf\foundation\gui\LookAndFeel.j
ava
ERROR: Can't use enum as a keyword in pre-JDK 1.5 target

Here goes my XML:

        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-pmd-plugin</artifactId>
            <configuration>
              <targetjdk>1.5</targetjdk>
              <rulesets>
 
<ruleset>../common/ruleset/pmd-ruleset_3_4.xml</ruleset>
              </rulesets>
              <format>xml</format>
              <linkXref>true</linkXref>
              <sourceEncoding>utf-8</sourceEncoding>
              <minimumTokens>100</minimumTokens>
            </configuration>
        </plugin>

I've found an entry for the same issue, but without a clear answer:
http://mail-archives.apache.org/mod_mbox/maven-users/200602.mbox/%3Cc7c5
[EMAIL PROTECTED]

Can anybody help me?

Thanks,
--
Tiago Fernandez
http://www.tiago182.spyw.com


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

Reply via email to