apache / apache/maven-invoker-plugin
[MINVOKER-372] invoker plugin behaves differently based on main maven execution
- Dominant language
- Java
- Stars
- 22
- Forks
- 35
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 7
Description
**[Henning Schmiedehausen](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=henning)** opened **[MINVOKER-372](https://issues.apache.org/jira/browse/MINVOKER-372?redirect=false)** and commented
executing a test run for jdbi using command line:
```
% ./mvnw -B -ff -pl :jdbi3-core -Ddep.immutables.version=2.10.0 -Dbasepom.it.skip=false invoker:install invoker:integration-test invoker:verify
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< org.jdbi:jdbi3-core >-------------------------
[INFO] Building jdbi3 core 3.46.1-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- invoker:3.8.0:install (default-cli) @ jdbi3-core ---
[INFO] Installing /Users/henning/code/jdbi/core/pom.xml to /Users/henning/code/jdbi/core/target/local-repo/org/jdbi/jdbi3-core/3.46.1-SNAPSHOT/jdbi3-core-3.46.1-SNAPSHOT.pom
[INFO] Installing /Users/henning/code/jdbi/pom.xml to /Users/henning/code/jdbi/core/target/local-repo/org/jdbi/internal/jdbi3-parent/3.46.1-SNAPSHOT/jdbi3-parent-3.46.1-SNAPSHOT.pom
[INFO] Installing /Users/henning/code/jdbi/internal/build/pom.xml to /Users/henning/code/jdbi/core/target/local-repo/org/jdbi/jdbi3-build-parent/3.46.1-SNAPSHOT/jdbi3-build-parent-3.46.1-SNAPSHOT.pom
[INFO] Installing /Users/henning/code/jdbi/internal/root/pom.xml to /Users/henning/code/jdbi/core/target/local-repo/org/jdbi/internal/jdbi3-root/3.46.1-SNAPSHOT/jdbi3-root-3.46.1-SNAPSHOT.pom
[INFO] Installing /Users/henning/.m2/repository/org/basepom/basepom-oss/60/basepom-oss-60.pom to /Users/henning/code/jdbi/core/target/local-repo/org/basepom/basepom-oss/60/basepom-oss-60.pom
[INFO] Installing /Users/henning/.m2/repository/org/basepom/basepom-minimal/60/basepom-minimal-60.pom to /Users/henning/code/jdbi/core/target/local-repo/org/basepom/basepom-minimal/60/basepom-minimal-60.pom
[INFO] Installing /Users/henning/.m2/repository/org/basepom/basepom-foundation/60/basepom-foundation-60.pom to /Users/henning/code/jdbi/core/target/local-repo/org/basepom/basepom-foundation/60/basepom-foundation-60.pom
[INFO] Installing /Users/henning/.m2/repository/org/antlr/antlr4-runtime/4.13.1/antlr4-runtime-4.13.1.jar to /Users/henning/code/jdbi/core/target/local-repo/org/antlr/antlr4-runtime/4.13.1/antlr4-runtime-4.13.1.jar
[INFO] Installing /Users/henning/.m2/repository/org/antlr/antlr4-runtime/4.13.1/antlr4-runtime-4.13.1.pom to /Users/henning/code/jdbi/core/target/local-repo/org/antlr/antlr4-runtime/4.13.1/antlr4-runtime-4.13.1.pom
[INFO] Installing /Users/henning/.m2/repository/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar to /Users/henning/code/jdbi/core/target/local-repo/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar
[INFO] Installing /Users/henning/.m2/repository/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.pom to /Users/henning/code/jdbi/core/target/local-repo/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.pom
[INFO] Installing /Users/henning/.m2/repository/io/leangen/geantyref/geantyref/2.0.0/geantyref-2.0.0.jar to /Users/henning/code/jdbi/core/target/local-repo/io/leangen/geantyref/geantyref/2.0.0/geantyref-2.0.0.jar
[INFO] Installing /Users/henning/.m2/repository/io/leangen/geantyref/geantyref/2.0.0/geantyref-2.0.0.pom to /Users/henning/code/jdbi/core/target/local-repo/io/leangen/geantyref/geantyref/2.0.0/geantyref-2.0.0.pom
[INFO] Installing /Users/henning/.m2/repository/org/sonatype/oss/oss-parent/9/oss-parent-9.pom to /Users/henning/code/jdbi/core/target/local-repo/org/sonatype/oss/oss-parent/9/oss-parent-9.pom
[INFO] Installing /Users/henning/.m2/repository/org/antlr/antlr4-master/4.13.1/antlr4-master-4.13.1.pom to /Users/henning/code/jdbi/core/target/local-repo/org/antlr/antlr4-master/4.13.1/antlr4-master-4.13.1.pom
[INFO] Installing /Users/henning/.m2/repository/org/slf4j/slf4j-parent/1.7.36/slf4j-parent-1.7.36.pom to /Users/henning/code/jdbi/core/target/local-repo/org/slf4j/slf4j-parent/1.7.36/slf4j-parent-1.7.36.pom
[INFO]
[INFO] --- invoker:3.8.0:integration-test (default-cli) @ jdbi3-core ---
[INFO] use parallelThreads 6
[INFO] Building: test-inline-jar/pom.xml
[INFO] test-inline-jar/pom.xml .......................... SUCCESS (7.480 s)
[INFO]
[INFO] --- invoker:3.8.0:verify (default-cli) @ jdbi3-core ---
[INFO] -------------------------------------------------
[INFO] Build Summary:
[INFO] Passed: 1, Failed: 0, Errors: 0, Skipped: 0
[INFO] -------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.228 s
[INFO] Finished at: 2024-10-20T22:59:28-07:00
[INFO] ------------------------------------------------------------------------
```
passing the exact same parameters in MAVEN_ARGS
```
MAVEN_ARGS='-B -ff -pl :jdbi3-core -Ddep.immutables.version=2.10.0 -Dbasepom.it.skip=false' ./mvnw invoker:install invoker:integration-test invoker:verify
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< org.jdbi:jdbi3-core >-------------------------
[INFO] Building jdbi3 core 3.46.1-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- invoker:3.8.0:install (default-cli) @ jdbi3-core ---
[INFO] Installing /Users/henning/code/jdbi/core/pom.xml to /Users/henning/code/jdbi/core/target/local-repo/org/jdbi/jdbi3-core/3.46.1-SNAPSHOT/jdbi3-core-3.46.1-SNAPSHOT.pom
[INFO] Installing /Users/henning/code/jdbi/pom.xml to /Users/henning/code/jdbi/core/target/local-repo/org/jdbi/internal/jdbi3-parent/3.46.1-SNAPSHOT/jdbi3-parent-3.46.1-SNAPSHOT.pom
[INFO] Installing /Users/henning/code/jdbi/internal/build/pom.xml to /Users/henning/code/jdbi/core/target/local-repo/org/jdbi/jdbi3-build-parent/3.46.1-SNAPSHOT/jdbi3-build-parent-3.46.1-SNAPSHOT.pom
[INFO] Installing /Users/henning/code/jdbi/internal/root/pom.xml to /Users/henning/code/jdbi/core/target/local-repo/org/jdbi/internal/jdbi3-root/3.46.1-SNAPSHOT/jdbi3-root-3.46.1-SNAPSHOT.pom
[INFO] Installing /Users/henning/.m2/repository/org/basepom/basepom-oss/60/basepom-oss-60.pom to /Users/henning/code/jdbi/core/target/local-repo/org/basepom/basepom-oss/60/basepom-oss-60.pom
[INFO] Installing /Users/henning/.m2/repository/org/basepom/basepom-minimal/60/basepom-minimal-60.pom to /Users/henning/code/jdbi/core/target/local-repo/org/basepom/basepom-minimal/60/basepom-minimal-60.pom
[INFO] Installing /Users/henning/.m2/repository/org/basepom/basepom-foundation/60/basepom-foundation-60.pom to /Users/henning/code/jdbi/core/target/local-repo/org/basepom/basepom-foundation/60/basepom-foundation-60.pom
[INFO] Installing /Users/henning/.m2/repository/org/antlr/antlr4-runtime/4.13.1/antlr4-runtime-4.13.1.jar to /Users/henning/code/jdbi/core/target/local-repo/org/antlr/antlr4-runtime/4.13.1/antlr4-runtime-4.13.1.jar
[INFO] Installing /Users/henning/.m2/repository/org/antlr/antlr4-runtime/4.13.1/antlr4-runtime-4.13.1.pom to /Users/henning/code/jdbi/core/target/local-repo/org/antlr/antlr4-runtime/4.13.1/antlr4-runtime-4.13.1.pom
[INFO] Installing /Users/henning/.m2/repository/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar to /Users/henning/code/jdbi/core/target/local-repo/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar
[INFO] Installing /Users/henning/.m2/repository/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.pom to /Users/henning/code/jdbi/core/target/local-repo/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.pom
[INFO] Installing /Users/henning/.m2/repository/io/leangen/geantyref/geantyref/2.0.0/geantyref-2.0.0.jar to /Users/henning/code/jdbi/core/target/local-repo/io/leangen/geantyref/geantyref/2.0.0/geantyref-2.0.0.jar
[INFO] Installing /Users/henning/.m2/repository/io/leangen/geantyref/geantyref/2.0.0/geantyref-2.0.0.pom to /Users/henning/code/jdbi/core/target/local-repo/io/leangen/geantyref/geantyref/2.0.0/geantyref-2.0.0.pom
[INFO] Installing /Users/henning/.m2/repository/org/sonatype/oss/oss-parent/9/oss-parent-9.pom to /Users/henning/code/jdbi/core/target/local-repo/org/sonatype/oss/oss-parent/9/oss-parent-9.pom
[INFO] Installing /Users/henning/.m2/repository/org/antlr/antlr4-master/4.13.1/antlr4-master-4.13.1.pom to /Users/henning/code/jdbi/core/target/local-repo/org/antlr/antlr4-master/4.13.1/antlr4-master-4.13.1.pom
[INFO] Installing /Users/henning/.m2/repository/org/slf4j/slf4j-parent/1.7.36/slf4j-parent-1.7.36.pom to /Users/henning/code/jdbi/core/target/local-repo/org/slf4j/slf4j-parent/1.7.36/slf4j-parent-1.7.36.pom
[INFO]
[INFO] --- invoker:3.8.0:integration-test (default-cli) @ jdbi3-core ---
[INFO] use parallelThreads 6
[INFO] Building: test-inline-jar/pom.xml
[INFO] The build exited with code 1. See /Users/henning/code/jdbi/core/target/it/test-inline-jar/build.log for details.
[INFO] test-inline-jar/pom.xml .......................... FAILED (0.803 s)
[INFO]
[INFO] --- invoker:3.8.0:verify (default-cli) @ jdbi3-core ---
[INFO] -------------------------------------------------
[INFO] Build Summary:
[INFO] Passed: 0, Failed: 1, Errors: 0, Skipped: 0
[INFO] -------------------------------------------------
[ERROR] The following builds failed:
[ERROR] * test-inline-jar/pom.xml
[INFO] -------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.561 s
[INFO] Finished at: 2024-10-20T23:01:49-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-invoker-plugin:3.8.0:verify (default-cli) on project jdbi3-core: 1 build failed. See console output above for details. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
```
The '-pl :jdbi3-core' value was passed to the invoker plugin.
---
**Affects:** 3.8.0
**Attachments:**
- [build.log](https://issues.apache.org/jira/secure/attachment/13072318/build.log) (_13.10 kB_)
- [invoker.properties](https://issues.apache.org/jira/secure/attachment/13072319/invoker.properties) (_650 bytes_)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the two Maven Invoker command variants shown in the issue, then compare build.log and invoker.properties for test-inline-jar. Trace how MAVEN_ARGS causes -pl :jdbi3-core to reach the Invoker plugin. Done means the same invocation parameters produce consistent integration-test results without incorrectly passing the project-selection value to the plugin.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100