nielsbasjes opened a new pull request, #16:
URL: https://github.com/apache/maven-artifact-plugin/pull/16

   In https://issues.apache.org/jira/browse/MARTIFACT-44 @hboutemy asked for a 
reproduction of the issue.
   
   What better way to provide a reproduction than a new test for the project 
itself.
   So this is ONLY an integration test that creates and installs a dependency 
which is then used, shaded, minimized and the reduced pom is then injected into 
the jar file.
   
   So this pull request will FAIL the build because it does not solve the 
problem I ran into, only show it and facilitate reproduction by others.
   
   During the install of the `include-drp` integration test you see (simplified 
for readability):
   ```
   [INFO] --- maven-install-plugin:2.4:install (default-install) @ include-drp 
---
   [INFO] Installing include-drp-1.0-SNAPSHOT.jar to 
~/.m2/.../include-drp-1.0-SNAPSHOT.jar
   [INFO] Installing dependency-reduced-pom.xml to 
~/.m2/.../include-drp-1.0-SNAPSHOT.pom
   ```
   Then after a rebuild without install you run the `artifact:compare` and you 
get (simplified for readability):
   ```
   [INFO] --- maven-artifact-plugin:3.4.0:compare (default-cli) @ include-drp 
---
   ...
   [ERROR] size mismatch include-drp-1.0-SNAPSHOT.pom: investigate with 
diffoscope target/reference/include-drp-1.0-SNAPSHOT.pom pom.xml
   ...
   [INFO] 
------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   ```
   
   Closer inspection shows `dependency-reduced-pom.xml` and  
`target/reference/include-drp-1.0-SNAPSHOT.pom` to be the same (so the build IS 
reproducible!).
   Yet both are very different from the `pom.xml` against which the compare is 
done which fails the build.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to