maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Boué (JIRA) <j...@apache.org>
Subject [jira] [Comment Edited] (MCHECKSTYLE-327) Upgrading from 2.15 to 2.17 will fail
Date Mon, 18 Jul 2016 20:39:20 GMT

    [ https://issues.apache.org/jira/browse/MCHECKSTYLE-327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15383017#comment-15383017
] 

Guillaume Boué edited comment on MCHECKSTYLE-327 at 7/18/16 8:38 PM:
---------------------------------------------------------------------

I don't see this dependency in the parent [here|https://github.com/apache/maven-pom/blob/maven-parent-30/pom.xml#L930-L941]
and [here|https://github.com/apache/maven-pom/blob/maven-parent-30/pom.xml#L995-L1006] only
the config to use {{config/maven_checks.xml}}. The effective POM doesn't show it either.


was (Author: gboue):
I don't see this dependency [in the parent|https://github.com/apache/maven-pom/blob/maven-parent-30/pom.xml#L930-L941]
only the config to use {{config/maven_checks.xml}}. The effective POM doesn't show it either.

> Upgrading from 2.15 to 2.17 will fail
> -------------------------------------
>
>                 Key: MCHECKSTYLE-327
>                 URL: https://issues.apache.org/jira/browse/MCHECKSTYLE-327
>             Project: Maven Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.17
>            Reporter: Karl Heinz Marbaise
>            Priority: Blocker
>
> 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:
> {code:xml}
> ~/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>
> {code}
> It will fail with the following:
> {code}
> [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]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message