You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Tiago Fernandez <ti...@gmail.com> on 2006/04/25 01:13:14 UTC

[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.java
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/%3Cc7c567b10602090729i3310afc9h@mail.gmail.com%3E

Can anybody help me?

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