Re: checkstyle problem with maven : Unable to instantiate TreeWalker

2008-06-06 Thread Dennis Lundberg
Are you using your own custom checks or provide a custom packagenames.xml file? In that case see this page: http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/custom-developed-checkstyle.html Julien Simon wrote: Thanks for the answer. So, I tried maven-checkstyle-plugin 2.2 and

Re: checkstyle problem with maven : Unable to instantiate TreeWalker

2008-06-06 Thread Julien Simon
I'm using custom checks, I followed the procedure described on the web link you gave me. Everything now works correctly. Maybe I'm wrong but I think there's a mistake in this documentation: in the pom.xml example, dependencies containing custom developed checks are placed in the build extensions

Re: checkstyle problem with maven : Unable to instantiate TreeWalker

2008-06-06 Thread Dennis Lundberg
Hi You probably still have the old version of that page cached in your browser. A new corrected version of the page was deployed on June 4. Check that the publish date matches. You are correct that your checks should be added as a plugin dependency. Julien Simon wrote: I'm using custom

Re: checkstyle problem with maven : Unable to instantiate TreeWalker

2008-06-05 Thread Julien Simon
Thanks for the answer. So, I tried maven-checkstyle-plugin 2.2 and it didn't work either, but that's a good beginning to have the correct plugin version... In the xml checkstyle configuration file where modules are defined, i tried to change module name=TreeWalker by module

checkstyle problem with maven : Unable to instantiate TreeWalker

2008-06-04 Thread Julien Simon
Hi, I'm trying to integrate a checkstyle report in a maven project, but I'm facing a problem. The checkstyle report is based on a custom checkstyle check module I developed. I'm using maven 2.0.9, maven-checkstyle-plugin 2.1, and checkstyle 4.3 When I execute mvn checkstyle:checkstyle or mvn

Re: checkstyle problem with maven : Unable to instantiate TreeWalker

2008-06-04 Thread Dennis Lundberg
The Checkstyle plugin version 2.1 uses Checkstyle 4.1. So you can't use stuff from Checkstyle 4.3 in your Checkstyle configuration. Version 2.2 of the plugin, which is being released as we speak, uses Checkstyle 4.4. Start by giving that version a try. Julien Simon wrote: Hi, I'm trying to