[ https://issues.apache.org/jira/browse/MINVOKER-317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Slawomir Jaranowski updated MINVOKER-317: ----------------------------------------- Fix Version/s: waiting-for-feedback > invoker:install installs different sets of dependencies, depending on the > reactor build > --------------------------------------------------------------------------------------- > > Key: MINVOKER-317 > URL: https://issues.apache.org/jira/browse/MINVOKER-317 > Project: Maven Invoker Plugin > Issue Type: Bug > Affects Versions: 3.3.0, 3.4.0 > Reporter: Henning Schmiedehausen > Priority: Major > Fix For: waiting-for-feedback > > > - Clone this repository: [https://github.com/hgschmie/invoker-bug] > - Run "mvn clean install" > The repository builds, runs all integration tests and installs dependencies > successfully. > - Now run "mvn -pl :test clean install" > One of the integration tests fails. The error message in > test/target/it/test-it-fails/build.log is > [ERROR] Failed to execute goal on project test-it-ok: Could not resolve > dependencies for project invoker-bug:test-it-ok:jar:0.1-SNAPSHOT: Could not > find artifact invoker-bug:dep:jar:tests:0.1-SNAPSHOT -> [Help 1] > - Now run "mvn -am -pl :test clean install" > the integration tests succeed > > The main difference is: > For the failing build, invoker:install reports > > {quote}[INFO] --- maven-invoker-plugin:3.4.0:install > (basepom.invoker-integration-testing.default) @ test --- > [WARNING] skip dependencyProject null for > projectId=invoker-bug:dep:0.1-SNAPSHOT > [INFO] Installing /Users/henning/scratch/invoker-bug/pom.xml to > /Users/henning/scratch/invoker-bug/test/target/local-repo/invoker-bug/parent/0.1-SNAPSHOT/parent-0.1-SNAPSHOT.pom > [INFO] Installing /Users/henning/scratch/invoker-bug/test/pom.xml to > /Users/henning/scratch/invoker-bug/test/target/local-repo/invoker-bug/test/0.1-SNAPSHOT/test-0.1-SNAPSHOT.pom > [INFO] Installing > /Users/henning/scratch/invoker-bug/test/target/test-0.1-SNAPSHOT.jar to > /Users/henning/scratch/invoker-bug/test/target/local-repo/invoker-bug/test/0.1-SNAPSHOT/test-0.1-SNAPSHOT.jar > [INFO] Installing > /Users/henning/scratch/invoker-bug/test/target/test-0.1-SNAPSHOT-tests.jar to > /Users/henning/scratch/invoker-bug/test/target/local-repo/invoker-bug/test/0.1-SNAPSHOT/test-0.1-SNAPSHOT-tests.jar > [INFO] Installing > /Users/henning/scratch/invoker-bug/test/target/test-0.1-SNAPSHOT-sources.jar > to > /Users/henning/scratch/invoker-bug/test/target/local-repo/invoker-bug/test/0.1-SNAPSHOT/test-0.1-SNAPSHOT-sources.jar > [INFO] Installing > /Users/henning/scratch/invoker-bug/test/target/test-0.1-SNAPSHOT-test-sources.jar > to > /Users/henning/scratch/invoker-bug/test/target/local-repo/invoker-bug/test/0.1-SNAPSHOT/test-0.1-SNAPSHOT-test-sources.jar > {quote} > For the successful build, it reports > {quote}[INFO] --- maven-invoker-plugin:3.4.0:install > (basepom.invoker-integration-testing.default) @ test --- > [INFO] Installing /Users/henning/scratch/invoker-bug/dep/pom.xml to > /Users/henning/scratch/invoker-bug/test/target/local-repo/invoker-bug/dep/0.1-SNAPSHOT/dep-0.1-SNAPSHOT.pom > [INFO] Installing > /Users/henning/scratch/invoker-bug/dep/target/dep-0.1-SNAPSHOT.jar to > /Users/henning/scratch/invoker-bug/test/target/local-repo/invoker-bug/dep/0.1-SNAPSHOT/dep-0.1-SNAPSHOT.jar > [INFO] Installing > /Users/henning/scratch/invoker-bug/dep/target/dep-0.1-SNAPSHOT-tests.jar to > /Users/henning/scratch/invoker-bug/test/target/local-repo/invoker-bug/dep/0.1-SNAPSHOT/dep-0.1-SNAPSHOT-tests.jar > [INFO] Installing > /Users/henning/scratch/invoker-bug/dep/target/dep-0.1-SNAPSHOT-sources.jar to > /Users/henning/scratch/invoker-bug/test/target/local-repo/invoker-bug/dep/0.1-SNAPSHOT/dep-0.1-SNAPSHOT-sources.jar > [INFO] Installing > /Users/henning/scratch/invoker-bug/dep/target/dep-0.1-SNAPSHOT-test-sources.jar > to > /Users/henning/scratch/invoker-bug/test/target/local-repo/invoker-bug/dep/0.1-SNAPSHOT/dep-0.1-SNAPSHOT-test-sources.jar > [INFO] Installing /Users/henning/scratch/invoker-bug/pom.xml to > /Users/henning/scratch/invoker-bug/test/target/local-repo/invoker-bug/parent/0.1-SNAPSHOT/parent-0.1-SNAPSHOT.pom > [INFO] Installing /Users/henning/scratch/invoker-bug/test/pom.xml to > /Users/henning/scratch/invoker-bug/test/target/local-repo/invoker-bug/test/0.1-SNAPSHOT/test-0.1-SNAPSHOT.pom > [INFO] Installing > /Users/henning/scratch/invoker-bug/test/target/test-0.1-SNAPSHOT.jar to > /Users/henning/scratch/invoker-bug/test/target/local-repo/invoker-bug/test/0.1-SNAPSHOT/test-0.1-SNAPSHOT.jar > [INFO] Installing > /Users/henning/scratch/invoker-bug/test/target/test-0.1-SNAPSHOT-tests.jar to > /Users/henning/scratch/invoker-bug/test/target/local-repo/invoker-bug/test/0.1-SNAPSHOT/test-0.1-SNAPSHOT-tests.jar > [INFO] Installing > /Users/henning/scratch/invoker-bug/test/target/test-0.1-SNAPSHOT-sources.jar > to > /Users/henning/scratch/invoker-bug/test/target/local-repo/invoker-bug/test/0.1-SNAPSHOT/test-0.1-SNAPSHOT-sources.jar > [INFO] Installing > /Users/henning/scratch/invoker-bug/test/target/test-0.1-SNAPSHOT-test-sources.jar > to > /Users/henning/scratch/invoker-bug/test/target/local-repo/invoker-bug/test/0.1-SNAPSHOT/test-0.1-SNAPSHOT-test-sources.jar > {quote} > > So the set of resolved jars that are installed in the local repository is > different, depending on whether the build is part of a reactor build (-am) or > not (just -pl). > when executing only the single project, the plugin reports > [WARNING] skip dependencyProject null for > projectId=invoker-bug:dep:0.1-SNAPSHOT > > > -- This message was sent by Atlassian Jira (v8.20.10#820010)