Hi,

I am get the following issue, that is documented at
http://jira.codehaus.org/browse/MPMD-67, when I using the maven-pmd-plugin
with JDK 1.6.  This plugin complains about the following:

Can't use annotations when running in JDK 1.4 mode!
Can't use generics unless running in JDK 1.5 mode!

What is confusing is I specifically set the targetJDK to 1.6 (see below).
The only thing I can think of is if some how the plugin on some how
hardcode the JDK version inside the plugin.

Any help on this issue is greatly appreciated.

Thansk!

Tonté

pom.xml snippet:

            <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-pmd-plugin</artifactId>
                  <version>2.3</version>
                  <configuration>
                        <targetjdk>${compileSource}</targetjdk>
                        <excludes>

<exclude>**/order/process/jaxb/generated*.java></exclude>
                        </excludes>
                        <rulesets>
                              <ruleset>/rulesets/basic.xml</ruleset>

<ruleset>/rulesets/controversial.xml</ruleset>
                        </rulesets>
                        <format>xml</format>
                        <linkXref>true</linkXref>
                        <sourceEncoding>utf-8</sourceEncoding>
                        <minimumTokens>100</minimumTokens>
                  </configuration>
            </plugin>

            <properties>
                  <compileSource>1.6</compileSource>
            </properties>

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

This e-mail message, including attachments, may contain confidential,
proprietary, or export controlled information.
Any unauthorized disclosure, distribution, or other use is prohibited,
unless expressly authorized.
If you receive this e-mail in error, please notify the sender, and delete
all copies of the original message from your systems.



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

Reply via email to