[
https://jira.codehaus.org/browse/MPMD-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=301738#comment-301738
]
Raymond Kroeker commented on MPMD-11:
-------------------------------------
I noticed a difference between configuring the plugin as a reporting plugin vs
a build plugin:
This does not work:
...
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>2.7.1</version>
<configuration>
<targetJdk>1.6</targetJdk>
</configuration>
</plugin>
</plugins>
</reporting>
...
this does:
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>2.7.1</version>
<configuration>
<targetJdk>1.6</targetJdk>
</configuration>
</plugin>
</build>
...
> targetJdk parameter cannot be set in maven 2
> --------------------------------------------
>
> Key: MPMD-11
> URL: https://jira.codehaus.org/browse/MPMD-11
> Project: Maven 2.x PMD Plugin
> Issue Type: Bug
> Reporter: Tony Nys
>
> My code is java 5 and has the special for-loop syntax
> pmd says that the for loop is incorrect in jdk1.4 mode
> However, there is a parameter targetJdk but it cannot be set ,
> plugin.xml does not define it and there is no setter in the sourcecode
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira