diabonas commented on a change in pull request #9:
URL: https://github.com/apache/commons-parent/pull/9#discussion_r452463447



##########
File path: pom.xml
##########
@@ -898,8 +898,10 @@
           <instructions>
             <!-- stops the "uses" clauses being added to "Export-Package" 
manifest entry -->
             <_nouses>true</_nouses>
+            <!-- remove extra headers to improve bit for bit reproducibility 
-->
+            <_noextraheaders>true</_noextraheaders>
             <!-- Stop the JAVA_1_n_HOME variables from being treated as 
headers by Bnd -->
-            
<_removeheaders>JAVA_1_3_HOME,JAVA_1_4_HOME,JAVA_1_5_HOME,JAVA_1_6_HOME,JAVA_1_7_HOME,JAVA_1_8_HOME,JAVA_1_9_HOME</_removeheaders>
+            
<_removeheaders.commons-parent>JAVA_1_3_HOME,JAVA_1_4_HOME,JAVA_1_5_HOME,JAVA_1_6_HOME,JAVA_1_7_HOME,JAVA_1_8_HOME,JAVA_1_9_HOME</_removeheaders.commons-parent>

Review comment:
       See the explanations in 
https://github.com/bndtools/bnd/issues/4221#issuecomment-656258021 and 
https://github.com/apache/commons-lang/pull/578#issuecomment-656272161: 
`<_removeheaders>` overrides the defaults from `maven-bundle-plugin`, thus 
removing some values from this list that should have stayed there, in 
particular `Include-Resource`. On the other hand, using the *merged property* 
`<_removeheaders.commons-parent>` appends to the defaults, adding the values 
listed here to the ones already present in `maven-bundle-plugin`.




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


Reply via email to