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

Guillaume Boué commented on MCHECKSTYLE-326:
--------------------------------------------

I can't reproduce this with latest 3.0.1 of the plugin (tested by building 
maven-shared-utils 3.1.0). Is this still an issue for you?

> Running mvn install works first time second it does not
> -------------------------------------------------------
>
>                 Key: MCHECKSTYLE-326
>                 URL: https://issues.apache.org/jira/browse/MCHECKSTYLE-326
>             Project: Maven Checkstyle Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.15
>         Environment: Apache Maven 3.3.9 
> (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
> Maven home: /usr/share/maven
> Java version: 1.7.0_79, vendor: Oracle Corporation
> Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.8.5", arch: "x86_64", family: "mac"
> Tried also with Maven 3.2.5 same result...
>            Reporter: Karl Heinz Marbaise
>            Priority: Critical
>             Fix For: 3.0.1
>
>
> If I try to install the state of maven-shared/maven-shared-utils (r1753303) I 
> can run the following: {{mvn clean install}} without any issue. If i run it a 
> second time by using {{mvn install}} than the build will fail with a 
> checksyle error.
> First call {{mvn clean install}}
> {code}
> ...
> [INFO]
> [INFO] --- maven-checkstyle-plugin:2.15:check (checkstyle-check) @ 
> maven-shared-utils ---
> [INFO] There are 6 errors reported by Checkstyle 6.1.1 with 
> config/maven_checks.xml ruleset.
> [INFO] Ignored 6 errors, 0 violation remaining.
> [INFO]
> [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ 
> maven-shared-utils ---
> [INFO] Installing 
> /Users/kama/apache-maven/maven-shared/maven-shared-utils/target/maven-shared-utils-3.1.0-SNAPSHOT.jar
>  to 
> /Users/kama/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.1.0-SNAPSHOT/maven-shared-utils-3.1.0-SNAPSHOT.jar
> [INFO] Installing 
> /Users/kama/apache-maven/maven-shared/maven-shared-utils/pom.xml to 
> /Users/kama/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.1.0-SNAPSHOT/maven-shared-utils-3.1.0-SNAPSHOT.pom
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 10.719 s
> [INFO] Finished at: 2016-07-18T21:16:13+02:00
> [INFO] Final Memory: 33M/710M
> [INFO] 
> ------------------------------------------------------------------------
> {code}
> Now the second call {{mvn install}}
> {code}
> [INFO]
> [INFO] --- maven-jar-plugin:3.0.0:jar (default-jar) @ maven-shared-utils ---
> [INFO] Building jar: 
> /Users/kama/apache-maven/maven-shared/maven-shared-utils/target/maven-shared-utils-3.1.0-SNAPSHOT.jar
> [INFO]
> [INFO] --- maven-site-plugin:3.5.1:attach-descriptor (attach-descriptor) @ 
> maven-shared-utils ---
> [INFO]
> [INFO] --- maven-checkstyle-plugin:2.15:check (checkstyle-check) @ 
> maven-shared-utils ---
> [INFO] There are 7 errors reported by Checkstyle 6.1.1 with 
> config/maven_checks.xml ruleset.
> [ERROR] 
> src/main/java/org/apache/maven/shared/utils/logging/package-info.java[1] 
> (header) RegexpHeader: Line does not match expected header line of '^package 
> '.
> [INFO] Ignored 6 errors, 1 violation remaining.
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 8.756 s
> [INFO] Finished at: 2016-07-18T21:16:44+02:00
> [INFO] Final Memory: 37M/708M
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-checkstyle-plugin:2.15:check 
> (checkstyle-check) on project maven-shared-utils: You have 1 Checkstyle 
> violation. -> [Help 1]
> {code}
> Only if I run with {{mvn clean ...}} it works..But if I don't run with 
> {{clean}} it will fail....



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to