reficio / p2-maven-plugin

Maven3 plugin that automates the third-party dependency management for Eclipse RCP
http://reficio.org
230 stars 100 forks source link

create binary identical JARs for unmodified input #247

Closed Bananeweizen closed 3 years ago

Bananeweizen commented 3 years ago

The current 1.5.1 snapshot creates reproducible versions finally (due to the update of the maven-bundle-plugin dependency 4 weeks ago), if one configures the necessary settings as described here: https://maven.apache.org/guides/mini/guide-reproducible-builds.html.

That's great, now my p2 bundles are binary identical when running the build again, thereby not consuming another GB on artifactory after each build. However, JARs of transitive dependencies are still binary different, since they miss the same settings as described in the link above. Is there any way to influence the BND configuration for transitive dependencies except for making them explicit dependencies and configuring the same settings explicitly?

Would it eventually be possible to set these options internally for all calls of BND, no matter whether explicit artifact or transitive dependency artifact?

<_removeheaders>Bnd-LastModified</_removeheaders>
<_reproducible>true</_reproducible>
sparsick commented 3 years ago

@Bananeweizen Thanks for your hint. I will check it when I will start with issue #242 .