Uploaded image for project: 'Maven Checkstyle Plugin'
  1. Maven Checkstyle Plugin
  2. MCHECKSTYLE-327

Upgrading from 2.15 to 2.17 will fail

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Invalid
    • Affects Version/s: 2.17
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      If I try to upgrade the maven-checkstyle-plugin in the MCHECKSTYLE-326 issue by using a pluginManagement block and defining the new version via:

      ~/apache-maven/maven-shared/maven-shared-utils$ svn di
      Index: pom.xml
      ===================================================================
      --- pom.xml	(revision 1753303)
      +++ pom.xml	(working copy)
      @@ -120,6 +120,15 @@
         </dependencies>
      
         <build>
      +    <pluginManagement>
      +      <plugins>
      +        <plugin>
      +          <groupId>org.apache.maven.plugins</groupId>
      +          <artifactId>maven-checkstyle-plugin</artifactId>
      +          <version>2.17</version>
      +        </plugin>
      +      </plugins>
      +    </pluginManagement>
           <plugins>
             <plugin>
               <groupId>org.codehaus.mojo</groupId>
      

      It will fail with the following:

      [INFO] --- maven-site-plugin:3.5.1:attach-descriptor (attach-descriptor) @ maven-shared-utils ---
      [INFO]
      [INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle-check) @ maven-shared-utils ---
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 8.548 s
      [INFO] Finished at: 2016-07-18T21:25:37+02:00
      [INFO] Final Memory: 31M/444M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (checkstyle-check) on project maven-shared-utils: Failed during checkstyle execution: Unable to find configuration file at location: config/maven_checks.xml: Could not find resource 'config/maven_checks.xml'. -> [Help 1]
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gboue Guillaume Boué
                Reporter:
                khmarbaise Karl Heinz Marbaise
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: