kriegaex commented on pull request #95:
URL: https://github.com/apache/maven-shade-plugin/pull/95#issuecomment-846380070


   BTW, can anyone tell me why running a single IT by
   
   ```text
   mvn -DskipTests=true 
-Dinvoker.test=MSHADE-391_noRelocationKeepOriginalClasses verify -P run-its
   ```
   
   does not work as expected? My test passes, but the setup job fails:
   
   ```text
   [INFO] --- maven-invoker-plugin:3.2.1:integration-test (integration-test) @ 
maven-shade-plugin ---
   [INFO] Running 1 setup job:
   [INFO] Building: setup-parent\pom.xml
   [INFO]   The build exited with code 1. See 
C:\Users\alexa\Documents\java-src\maven-shade-plugin\target\it\setup-parent\build.log
 for details.
   [INFO]           setup-parent\pom.xml ............................. FAILED 
(2.4 s)
   [INFO] Setup done.
   [INFO] Building: MSHADE-391_noRelocationKeepOriginalClasses\pom.xml
   [INFO] run post-build script verify.groovy
   [INFO]           MSHADE-391_noRelocationKeepOriginalClasses\pom.xml SUCCESS 
(7.3 s)
   (...)
   [INFO] --- maven-invoker-plugin:3.2.1:verify (integration-test) @ 
maven-shade-plugin ---
   [INFO] -------------------------------------------------
   [INFO] Build Summary:
   [INFO]   Passed: 1, Failed: 1, Errors: 0, Skipped: 0
   [INFO] -------------------------------------------------
   [ERROR] The following builds failed:
   [ERROR] *  setup-parent\pom.xml
   ```
   
   If I explicitly add `invoker.test` to the command line
   
   ```text
   mvn -DskipTests=true 
-Dinvoker.test=setup-parent,MSHADE-391_noRelocationKeepOriginalClasses verify 
-P run-its
   ```
   
   the build passes. That is not so nice, because it requires "sacred 
knowledge".


-- 
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:
us...@infra.apache.org


Reply via email to