[ http://jira.codehaus.org/browse/MCHECKSTYLE-27?page=all ]
Vincent Massol updated MCHECKSTYLE-27: -------------------------------------- Description: Here's the config I have: {code:xml} <build> <plugins> <plugin> <artifactId>maven-checkstyle-plugin</artifactId> <dependencies> <dependency> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-build-tools</artifactId> <version>0.8-SNAPSHOT</version> </dependency> </dependencies> <executions> <execution> <configuration> <configLocation>build-tools/checkstyle.xml</configLocation> <headerLocation>build-tools/checkstyle.license</headerLocation> <suppressionsLocation>build-tools/checkstyle-suppressions.xml</suppressionsLocation> </configuration> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin> </plugins> </build> {code} When i run the project I get lots of checkstyle errors due to the fact that checkstyle is using the default rules and not my projcect's. Note that I have created a build-tools project as defined in tips.apt. was: Here's the config I have: {code:xml} <build> <plugins> <plugin> <artifactId>maven-checkstyle-plugin</artifactId> <dependencies> <dependency> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-build-tools</artifactId> <version>0.8-SNAPSHOT</version> </dependency> </dependencies> <executions> <execution> <configuration> <configLocation>build-tools/checkstyle.xml</configLocation> <headerLocation>build-tools/checkstyle.license</headerLocation> <suppressionsLocation>build-tools/checkstyle-suppressions.xml</suppressionsLocation> </configuration> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin> </plugins> </build> {code:xml} When i run the project I get lots of checkstyle errors due to the fact that checkstyle is using the default rules and not my projcect's. Note that I have created a build-tools project as defined in tips.apt. > checktyle:check does not use custom checkstyle xml files when used in a > multiproject mode with a build-tools project passed as a plugin dependency > -------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: MCHECKSTYLE-27 > URL: http://jira.codehaus.org/browse/MCHECKSTYLE-27 > Project: Maven 2.x Checkstyle Plugin > Type: Bug > Reporter: Vincent Massol > > > Here's the config I have: > {code:xml} > <build> > <plugins> > <plugin> > <artifactId>maven-checkstyle-plugin</artifactId> > <dependencies> > <dependency> > <groupId>org.codehaus.cargo</groupId> > <artifactId>cargo-build-tools</artifactId> > <version>0.8-SNAPSHOT</version> > </dependency> > </dependencies> > <executions> > <execution> > <configuration> > <configLocation>build-tools/checkstyle.xml</configLocation> > <headerLocation>build-tools/checkstyle.license</headerLocation> > > <suppressionsLocation>build-tools/checkstyle-suppressions.xml</suppressionsLocation> > </configuration> > <goals> > <goal>check</goal> > </goals> > </execution> > </executions> > </plugin> > </plugins> > </build> > {code} > When i run the project I get lots of checkstyle errors due to the fact that > checkstyle is using the default rules and not my projcect's. > Note that I have created a build-tools project as defined in tips.apt. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]