You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Lo?c (JIRA)" <ji...@codehaus.org> on 2005/07/26 11:37:57 UTC
[jira] Created: (MPCHECKSTYLE-37) How import my own checks into plugin checkstyle-maven
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
[jira] Commented: (MPCHECKSTYLE-37) How import my own checks into plugin checkstyle-maven
Posted by "Arnaud HERITIER (JIRA)" <ji...@codehaus.org>.
[ 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
[jira] Commented: (MPCHECKSTYLE-37) How import my own checks into plugin checkstyle-maven
Posted by "Lo?c (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MPCHECKSTYLE-37?page=comments#action_43525 ]
Loïc commented on MPCHECKSTYLE-37:
----------------------------------
After many tries, i suggest this solution to import ur own checks
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>
<type>jar</type>
<properties>
<classloader>root</classloader>
</properties>
</dependency>
Step 3 : Into C:\Documents and Settings\LTAN\.maven\cache\maven-checkstyle-plugin-2.5\plugin-resources put the file mychecks_checks.xml. Don't forget to put "_checks" at the end of the name of xml file.
Final step : Into C:\Documents and Settings\LTAN\.maven\cache\maven-checkstyle-plugin-2.5 modify into plugin.properties the line "maven.checkstyle.format" like this : maven.checkstyle.format = mychecks
Don't precise "_checks", Maven goes to add "mychecks" and the string "_checks".
Now i can use only my own checks and not for example Sun's checks
> 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