maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edwin Punzalan (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (MCHECKSTYLE-27) 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
Date Mon, 27 Mar 2006 10:08:44 GMT
     [ http://jira.codehaus.org/browse/MCHECKSTYLE-27?page=all ]
     
Edwin Punzalan closed MCHECKSTYLE-27:
-------------------------------------

    Resolution: Won't Fix

The above configuration fails because the configuration tag is within the the executions of
the goal "check" which does not have any parameters for configLocation and the others.

The right way to do this is to put the configuration outside the <executions> so that
when the goal "check" calls "checkstyle" then the checkstyle goal will get the configuration.

> 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
>     Assignee: Edwin Punzalan
>      Fix For: 2.0.1

>
> Original Estimate: 2 hours
>         Remaining: 2 hours
>
> 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


Mime
View raw message