Details
-
Type:
Wish
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.5
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:XP Sp1, eclipse 3.0.1 with plugin Maven 1.0.0
-
Number of attachments :
Description
Hello,
i write to you this mail because i would like to know steps by steps the way to put my checks into the plugin maven-checkstyle.
Indeed i am using : maven 1.0.2 and plugin-maven-checkstyle 2.5
I have my own checks in checks.jar (.class and a message.properties) but i don't know how to integrate this checks with maven.
So how steps by steps integrate my own checks so as to generate with Maven a report with others checks that Sun checks.
Thx
Loïc
You certainly can use your own checks if you add them as a dependency in your project (thus you must add them in your repository or override the dependency).
Perhaps you'll need to declare it in the root classloader (where ant is loaded) :
<dependency>
...
<properties>
<classloader>root</classloader>
</properties>
</dependency>
Then you can use your own rules with something like that in your project.properties :
maven.checkstyle.header.file = ${basedir}/checkstyle.license
maven.checkstyle.suppressions.file = ${basedir}/checkstyle-suppressions.xml
maven.checkstyle.properties = ${basedir}/checkstyle.xml
can you test it. If it works we'll add this to the doc and we'll close the issue.
thanks