> I am using maven-checkstyle-plugin with a specific configuration file 
> (I made it as a resource in a jar and the plugin configuration works 
fine:
> checkstyle - or the plugin - is clever enough to get the xml file out of 
the
> dependency jar)
> 
> I'd like to do the same within eclipse with the 
eclipse-checkstyle-plugin
> (so that checkstyle can be active during eclipse work, not just when
> building with maven)
> Unfortunately the checkstyle preference window does not seem to allow a
> reference to a jar.
> it needs an xml file
> This is not really a maven question but someone may know if my request 
is
> possible ???

We did this last year, but the details aren't fresh on my mind. Let me 
know
if this general approach is not enough.

We attached the checkstyle xml file to the project so it was deployed 
along
with the jar file to our corporate maven repository. Since that repository
is available via http, we configured the eclipse plugin to use that url.

Now we have one mavenized project to manage the checkstyle rules. When we
deploy it, the checkstyle rules become available to both maven and eclipse
at the same time.

-Greg Vaughn


======================================================================

Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries. If you are not the intended recipient, you are 
hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law. If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.

======================================================================

Reply via email to