rotty3000 edited a comment on pull request #578: URL: https://github.com/apache/commons-lang/pull/578#issuecomment-656272161
I think what is happening here is that the maven-bundle-plugin defaults are being overloaded (but in a lossy manner) by the parent pom. the maven bundle-plugin has the defaults for `<_removeheaders>Include-Resource,Private-Package</_removeheaders>` but the parent pom has `<_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>` which loses the plugin defaults. Both the parent pom and the maven-bundle-plugin are sub-optimal in this regard in that they don't play nicely together, nor do they play nicely with consumers. The bnd solution to making everyone play nicely are _merged properties_ which allow several participantes to set values that won't simply be overloaded by other applications of the same instruction: if the parent pom used: `<_removeheaders.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.parent>` that would allow the sub-projects free reign over using `<_removeheaders>...</_removeheaders>` without lossy behaviour. finally, if the maven-bundle-plugin itself did: `<_removeheaders.defaults>Include-Resource,Private-Package</_removeheaders.defaults>` these would also be added to anything the plugin consumer or parent pom sets. ---------------------------------------------------------------- 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]
