You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Arnaud HERITIER (JIRA)" <ji...@codehaus.org> on 2005/07/26 22:50:57 UTC
[jira] Commented: (MPCHECKSTYLE-37) How import my own checks into plugin checkstyle-maven
[ http://jira.codehaus.org/browse/MPCHECKSTYLE-37?page=comments#action_43461 ]
Arnaud HERITIER commented on MPCHECKSTYLE-37:
---------------------------------------------
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
> How import my own checks into plugin checkstyle-maven
> -----------------------------------------------------
>
> Key: MPCHECKSTYLE-37
> URL: http://jira.codehaus.org/browse/MPCHECKSTYLE-37
> Project: maven-checkstyle-plugin
> Type: Wish
> Versions: 2.5
> Environment: XP Sp1, eclipse 3.0.1 with plugin Maven 1.0.0
> Reporter: Loïc
>
>
> 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
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org