You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Vincent Massol (JIRA)" <ji...@codehaus.org> on 2006/02/01 21:25:06 UTC

[jira] Updated: (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

     [ 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: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.


  was:
Here's the config I have:

  <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>

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: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.

-- 
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