Hi Jeff,

I do need a newer version of ASM. 
My question was how to include it in build.properties. 

To upgrade pmd-3.9.jar we need to do the following in build.properties.
set maven.jar.override=on
maven.jar.pmd=3.9

Similarly what is the apppropriate property to set ASM, -- maven.jar.asm ?


Secondly I did upgrade the ASM  and I got the following error, and then I
got stuck. I tried to put it as a dependency in the project.xml of the
plugin and also of in the project.xml of the current project but to no
avail.

BUILD FAILED
File...... C:\mavenRepository\cache\maven-pmd-plugin-1.9\plugin.jelly
Element... cpd
Line...... 208
Column.... 58
edu/emory/mathcs/backport/java/util/concurrent/ThreadFactory
Total time: 15 seconds
Finished at: Tue Feb 27 13:46:15 EST 2007

When run in debug mode I get the folowing error.

Root cause
java.lang.NoClassDefFoundError:
edu/emory/mathcs/backport/java/util/concurrent/ThreadFactory
        at
net.sourceforge.pmd.cpd.SourceCode.getCodeBuffer(SourceCode.java:117)
        at
net.sourceforge.pmd.cpd.JavaTokenizer.tokenize(JavaTokenizer.java:28)
        at net.sourceforge.pmd.cpd.CPD.add(CPD.java:97)
        at net.sourceforge.pmd.cpd.CPD.add(CPD.java:50)


Much appreciate any help you can provide.

Thanks in advance
Lakshman


Jeff Jensen wrote:
> 
> Not sure, but perhaps it needs a newer version of ASM.
>  
> 
> -----Original Message-----
> From: Srilakshmanan, Lakshman
> [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, February 25, 2007 8:15 PM
> To: [email protected]
> Subject: [maven 1.0.2] PMD plugin upgrade.
> 
> Hi
> 
> I need to upgrade to pmd-3.9.jar. I therefore took maven-pmd-plugin-1.9
> and
> set maven.jar.override=on
> maven.jar.pmd=3.9
> 
> and got the error bellow. 
> 
> Could you please guide me on how to upgrade other jar files in
> maven-pmd-plugin-1.9 without taking fork and knife to the
> maven-pmd-plugin-1.9.jar. 
> 
> Any thoughts and suggestions are welcome.
> 
> 
> 
>     [echo] Generating the PMD Report...
> pmd:report:
>     [echo] Running the PMD task with
> rulesets/basic.xml,rulesets/unusedcode.xml,rulesets/imports.xml,rulesets
> /junit.xml,rulesets/strings.xml,rulesets/
> braces.xml,rulesets/codesize.xml,rulesets/coupling.xml,rulesets/strictex
> ception.xml,/Build/checkout/SensisRuleset.xml ...
> 
> BUILD FAILED
> File...... C:\mavenRepository\cache\maven-pmd-plugin-1.9\plugin.jelly
> Element... pmd
> Line...... 127
> Column.... 36
> org.objectweb.asm.ClassWriter.<init>(I)V
> Total time: 14 seconds
> Finished at: Mon Feb 26 12:12:33 EST 2007
> 
> 
> Thanks
> Lakshman
> 
> 
> ---------------------------------------------------------------------
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-maven-1.0.2--PMD-plugin-upgrade.-tf3290581s177.html#a9174277
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to