Search in your root pom.xml for maven-pmd-plugin, then add the
<configuration> block below it.

Matt

On 4/16/07, tibi <[EMAIL PROTECTED]> wrote:
i seem to need to set the targetjdk to 1.5?
but where whould i do such a thing?
with ant there seems to be a propertie targetjdk but with maven not.

mm email comming in...
tibi is googleing and found it:

            <plugin>
                <artifactId>maven-pmd-plugin</artifactId>
                <configuration>
                    <targetJdk>1.5</targetJdk>
                </configuration>
            </plugin>
http://maven.apache.org/plugins/maven-pmd-plugin/usage.html
on the pmd site itself there is nothing about this.



tibi

tibi wrote:
>
> somehow i got this error when running mvn site (it gives this error
> with the PMD report):
>
> Caused by: net.sourceforge.pmd.ast.ParseException: Can't use JDK 1.5
> for loop syntax when running in JDK 1.4 mode!
>        at
> 
net.sourceforge.pmd.ast.JavaParser.checkForBadJDK15ForLoopSyntaxArgumentsUsage(JavaParser.java:36)
>
>
> anyone an idea??
>
> thanks,
>
> tibi
>
>
> ---------------------------------------------------------------------
> 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]




--
http://raibledesigns.com

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

Reply via email to