jira-importer opened a new issue, #539:
URL: https://github.com/apache/maven-invoker-plugin/issues/539

   **[Henning 
Schmiedehausen](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=henning)**
 opened 
**[MINVOKER-317](https://issues.apache.org/jira/browse/MINVOKER-317?redirect=false)**
 and commented
   
   - 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
   
    
   
   > [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
   
   For the successful build, it reports
   
   > [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
   
    
   
   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
   
    
   
    
   
    
   
   
   ---
   
   **Affects:** 3.3.0, 3.4.0
   
   **Issue Links:**
   - [MINVOKER-313](https://issues.apache.org/jira/browse/MINVOKER-313) Get rid 
of maven-artifact-transfer
    (_**"is blocked by"**_)
   - [MINVOKER-314](https://issues.apache.org/jira/browse/MINVOKER-314) install 
goal: Always install dependencies (irrespective if they are part of the reactor)
   
   


-- 
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.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to