diabonas commented on pull request #578: URL: https://github.com/apache/commons-lang/pull/578#issuecomment-656138294
> These sound like bugs in the Maven plugin or more likely the underlying bnd library. I can see that this kind of change will be wanted for all Commons projects. So... we should, IMO, get bnd to fix this or feature it, then make any changes if needed in Commons Parent so all components become reproducible. That seems to be the better solution indeed, so https://github.com/apache/commons-parent would be the right place to submit this? > In the meantime, yeah, we could bring this PR in... but, and please: > * If bnd or the plugin is not following the rules for `Bnd-LastModified` and system properties, please create a bug report there. I think this part is probably working as intended, from the [upstream Bnd README](https://github.com/bndtools/bnd/blob/cc61fa32da6b779a9607d02b78c2052015493eb6/maven/bnd-maven-plugin/README.md#reproducible-builds) it seems as if having the `Bnd-LastModified` header by default is a deliberate decision, for reproducible builds it is recommended to use `-noextraheaders: true` in order to remove it. > * I can't say if the `Include-Resource` issue is a bug or feature request from bnd's POV, but it deserve a ticket there for sure. Either it can be fixed straight up (sort'em) or a feature to optionally sort can be added. Agreed, I opened https://github.com/bndtools/bnd/issues/4221 upstream. > * WRT Tool, it would be nice to exclude this specifically as I thought of this version as part of repro just like using the same Java version and Maven plugins is part of repro. The current goal is to be able to reproduce the JAR with the exact same version of the tool chain, so keeping the `Tool` header would be fine by me. This is easily achieved by replacing `<_noextraheaders>true</_noextraheaders>` by `<_removeheaders>Bnd-LastModified</_removeheaders>`, see the updated PR (that should probably directed to Commons Parent instead, see my question above). ---------------------------------------------------------------- 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: [email protected]
