Indeed i tested with the idea of Arnaud Heritier two solutions works
(completing i think MPCHECKSTYLE-27 ).
Solution 1 with dependency
Step 1 : Into my project.xml i added
<dependency>
<groupId>mychecks</groupId>
<artifactId>mychecks</artifactId>
<version>1.0</version>
<properties>
<classloader>root</classloader>
</properties>
</dependency>
Step 2 : Into C:\Documents and Settings\LTAN\.maven\repository\mychecks\jars
i put mychecks.jar
Step 3 and Final step same as the first solution with forehead.conf...
Solution 2 :
Step 1 : i put in my project.properties : maven.jar.mychecks =
D:/eclipse/workspace/myproject/lib/mychecks.jar
Step 2 : I put into my project.xml
<dependency>
<groupId>mychecks</groupId>
<artifactId>mychecks</artifactId>
<jar>D:/eclipse/workspace/myproject/lib/mychecks.jar</jar>
<type>jar</type>
<properties>
<classloader>root</classloader>
</properties>
</dependency>
Step 3 and Final Step are similar that solution with forehead.conf..
To conclude, i think that the third solution (the last) is the cleaner
solution if u import ur checks in plugin maven-checkstyle.
What do u think?
Bye bye
Loïc
From: Carlos Sanchez <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: darkan darkan <[EMAIL PROTECTED]>, Maven Users List
<[email protected]>
Subject: Re: How import my own checks in plugin checkstyle of Maven
Date: Tue, 26 Jul 2005 10:25:22 -0700
Hi,
I've never tried to do that so I can't tell you the exact steps, but
seems that you need to add your jar as a dependency to the project
adding this property:
<properties>
<classloader>root</classloader>
</properties>
It's related to the info in http://jira.codehaus.org/browse/MPCHECKSTYLE-27
Please send next emails to the maven users list.
Regards
On 7/26/05, darkan darkan <[EMAIL PROTECTED]> wrote:
> Hello Carlos,
> i permit to write this email because i have a problem to import my own
> checks.
> Indeed, i have my checks in mychecks.jar (.class and a
message.properties)
> and i would like step by step know how use my checks in maven with the
> plugin-maven-checkstyle.
> Namely, where do i put checks.jar and how customize the plugin to
assimilate
> my checks
> Thx
>
> Loïc
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]