michael-o commented on pull request #408:
URL: https://github.com/apache/maven/pull/408#issuecomment-748651915
I asked for an IT for good reason. I ran the suite multiple times from a
fresh clone and see this failing:
```
java.lang.AssertionError:
Compile goal was expected to run once
Expected: is <1>
but: was <2>
at
org.apache.maven.it.MavenITmng6566ExecuteAnnotationShouldNotReExecuteGoalsTest.assertCompiledOnce(MavenITmng6566ExecuteAnnotationShouldNotReExecuteGoalsTest.java:100)
at
org.apache.maven.it.MavenITmng6566ExecuteAnnotationShouldNotReExecuteGoalsTest.testRunsCompileGoalOnceWithPhaseExecution(MavenITmng6566ExecuteAnnotationShouldNotReExecuteGoalsTest.java:84)
```
Output:
```
mosipov@bsd1srv:/usr/home/mosipov/var/Projekte/mit/core-it-suite/target/test-classes/mng-6566-execute-annotation-should-not-re-execute-goals/consumer
(MNG-7045=)
$ less log-phase-execution.txt
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------< org.apache.maven.its.mng6566:consumer
>----------------
[INFO] Building consumer 1.0-SNAPSHOT
[INFO] --------------------------------[ jar
]---------------------------------
[WARNING] Version not locked for default bindings plugins
[maven-resources-plugin], you should define versions in pluginManagement
section of your pom.xml or parent
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @
consumer ---
[WARNING] File encoding has not been set, using platform encoding UTF-8.
Build is platform dependent!
[WARNING] See https://maven.apache.org/general.html#encoding-warning
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Using 'null' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory
/var/mosipov/Projekte/mit/core-it-suite/target/test-classes/mng-6566-execute-annotation-should-not-re-execute-goals/consumer/src/main/resources
[INFO] skip non existing resourceDirectory
/var/mosipov/Projekte/mit/core-it-suite/target/test-classes/mng-6566-execute-annotation-should-not-re-execute-goals/consumer/src/main/resources-filtered
[INFO]
[INFO] --- maven-compiler-plugin:0.1-stub-SNAPSHOT:compile (default-compile)
@ consumer ---
[INFO] [MAVEN-CORE-IT-LOG] Using output file path:
target/compiler-compile.txt
[INFO] [MAVEN-CORE-IT-LOG] Creating output file:
/var/mosipov/Projekte/mit/core-it-suite/target/test-classes/mng-6566-execute-annotation-should-not-re-execute-goals/consumer/target/compiler-compile.txt
[INFO] [MAVEN-CORE-IT-LOG] Created output file:
/var/mosipov/Projekte/mit/core-it-suite/target/test-classes/mng-6566-execute-annotation-should-not-re-execute-goals/consumer/target/compiler-compile.txt
[INFO]
[INFO] >>> plugin:1.0-SNAPSHOT:require-compile-phase (default) > compile @
consumer >>>
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @
consumer ---
[WARNING] File encoding has not been set, using platform encoding UTF-8.
Build is platform dependent!
[WARNING] See https://maven.apache.org/general.html#encoding-warning
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Using 'null' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory
/var/mosipov/Projekte/mit/core-it-suite/target/test-classes/mng-6566-execute-annotation-should-not-re-execute-goals/consumer/src/main/resources
[INFO] skip non existing resourceDirectory
/var/mosipov/Projekte/mit/core-it-suite/target/test-classes/mng-6566-execute-annotation-should-not-re-execute-goals/consumer/src/main/resources-filtered
[INFO]
[INFO] --- maven-compiler-plugin:0.1-stub-SNAPSHOT:compile (default-compile)
@ consumer ---
[INFO] [MAVEN-CORE-IT-LOG] Using output file path:
target/compiler-compile.txt
[INFO] [MAVEN-CORE-IT-LOG] Creating output file:
/var/mosipov/Projekte/mit/core-it-suite/target/test-classes/mng-6566-execute-annotation-should-not-re-execute-goals/consumer/target/compiler-compile.txt
[INFO] [MAVEN-CORE-IT-LOG] Created output file:
/var/mosipov/Projekte/mit/core-it-suite/target/test-classes/mng-6566-execute-annotation-should-not-re-execute-goals/consumer/target/compiler-compile.txt
[INFO]
[INFO] <<< plugin:1.0-SNAPSHOT:require-compile-phase (default) < compile @
consumer <<<
[INFO]
[INFO]
[INFO] --- plugin:1.0-SNAPSHOT:require-compile-phase (default) @ consumer ---
[INFO] MNG-6566 plugin require-compile-phase goal executed
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 0.148 s
[INFO] Finished at: 2020-12-20T20:04:27+01:00
[INFO]
------------------------------------------------------------------------
```
I haven't look into, I would expect @rmannibucau to do that.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]