Hi there,

On Tuesday 04 May 2004 09:59, Michael Mattox wrote:
> > No, no. You don't get me. You must use the maven.checkstyle.properties
> > property and provide your own CS configuration. This is the way to use
> > CS.
>
> Ok, I got Maven to use my checkstyle.xml (I just copied SUN's for now but I
> will modify it later).  now I understand more about modifying the XML file
> to customize the checks.  However, when I run checkstyle with maven I get
> the following error.  I searched the archives and only found one message
> (see below) which doesn't explain it:
>
> D:\projects\MDSP\maven\sources\cs-common>maven -e checkstyle:report
>  __  __
>
> |  \/  |__ _Apache__ ___
> |
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc2
>
> build:start:
>
> checkstyle:init:
>
> checkstyle:report:
> checkstyle:run:
>     [echo] Using D:\projects\MDSP\maven\sources\cs-common/checkstyle.xml
> for checkstyle ...
>
> BUILD FAILED
> Unable to create a Checker: cannot initialize module TreeWalker - Unable to
> instantiate MethodParamPad
>         at
> com.puppycrawl.tools.checkstyle.CheckStyleTask.createChecker(CheckStyleTask
>. java:319)
>         at
> [cut]
I am not too sure about this one, but can farly remember that I once had a 
similar problem. Have a look in your maven plugin directory for the
checkstyle plugin. There you will find the checkstyle settings for sun and
turbine in the proper format (they do not use the full classpath to the checks 
(com.puppycrawl.tools.checkstyle). Just use one of these two as template to 
start with and it might work.

Take care
  Jörg


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

Reply via email to