You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Barrie Treloar <ba...@gmail.com> on 2008/02/05 01:30:18 UTC

Re: Using Custom Developed Checkstyle Check Modules

On Nov 19, 2007 9:30 PM, DanBarker85 <Da...@hotmail.co.uk> wrote:
>
> Thanks for your response.  Adding the jar as an extension in the build was
> the original option I chose, as was detailed in the Maven tutorial.  I think
> i've tried all combinations, but maybe it doesn't find the jar file

I found extensions didn't work, but a dependency in the build/plugins
sections did:
e.g checkstyle:checkstyle-patch-1882332:4.3 contains my custom check.

 <build>
   <plugins>
     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-checkstyle-plugin</artifactId>
       <dependencies>
         <dependency>
           <groupId>checkstyle</groupId>
           <artifactId>checkstyle-patch-1882332</artifactId>
           <version>4.3</version>
         </dependency>
       </dependencies>

> > [ERROR] Unable to process package names location:
> > com/name/maven/checks/packagenames.xml
> > java.io.IOException: Unable to find location
> > 'com/name/maven/checks/packagenames.xml' as URL, File or Resource.

When you run with -X you can see what file Maven is trying to resolve
for your packagenames.xml.

Double check that your custom check jar contains this file. (Mine was
in the wrong location initiallly)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org