Jason, Thanks for the quick response. I will certainly use your suggestion to get me going for now. Hopefully someone can explain what I may be doing wrong such that the 2.1 fix doesn't work for me.
Thanks again, Chuck --- "Morris, Jason [IT]" <[EMAIL PROTECTED]> wrote: > Charles, > > I rectified this previously by hacking the project.xml *in the checkstyle > plugin* (i.e. plugins/maven-checkstyle-plugin-2.0-SNAPSHOT/project.xml, not > your project file): > > <dependency> > <id>mychecks</id> > <version>1.0</version> > <properties> > <classloader>root</classloader> > </properties> > </dependency> > > This forces the plugin to add "mychecks-1.0.jar" to the classpath. You then > install your jar file in the "repository/mychecks/jar" directory which is > where it will look for it. > > Not ideal but I'm not sure about the 2.1 fix which sounds like a better > solution, but that should get you going. > > Jason > > -----Original Message----- > From: Charles Daniels [mailto:[EMAIL PROTECTED] > Sent: 04 March 2004 08:20 > To: [EMAIL PROTECTED] > Subject: [checkstyle plugin] Custom checks not found > > > From previous postings, I see that earlier versions of the checkstyle plugin > did not support the > use of custom checks. I have version 2.1 of the plugin and I can see that > plugin.jelly has been > corrected to include a path reference to maven.dependency.classpath in the > checkstyle task. > > However, I am encountering the problem that this correction is supposed to > fix. I have placed a > jar file with a custom check in my dependency list (in my projects > project.xml file), but the > plugin fails with a message indicating that it cannot instantiate my custom > check. I am using > rc-1. I have placed an echo call in the plugin.jelly file to verify that it > is indeed using the > correct plugin, echoing the dependency path to my jar file, which is > indicating the correct > location of my jar file in my local repository. What can I do to debug this > problem? > > Cheers, > Chuck > > > --------------------------------------------------------------------- > 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]
