Uploaded image for project: 'Maven Checkstyle Plugin'
  1. Maven Checkstyle Plugin
  2. 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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            elpunzalan Edwin Punzalan
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified