Repository navigation
Conversation
…imes Added configuration to prevent Import-Package generation for java.*
|
How old are we talking about here? I'm not sure this is a good idea. Please explain the pros and cons. |
|
Please look at https://docs.osgi.org/specification/osgi.core/7.0.0/framework.module.html#framework.module-execution.environment
The only drawback is that potentially the bundle will fail at runtime instead of at resolution time when executed in a trimmed down JRE not exposing all relevant packages. We are talking about Felix 6 (https://mvnrepository.com/artifact/org.apache.felix/org.apache.felix.framework/6.0.5), released in 2021 not yet supporting this properly (https://issues.apache.org/jira/browse/FELIX-5843). I deliberately provided a fix for parent as it affects all commons artifacts running inside an OSGi container in the same way! |
|
So the cons are, for all of Apache Commons:
Dealing with an old version of one OSGi vendor is not enough to justify the loss IMO. To be fair, the risk is likely small for "normal" JDK/JRE deployments, but still clutters things up for all of Commons. Let's see what other folks have to say either way. |
…imes
Added configuration to prevent Import-Package generation for java.*
Thanks for your contribution to Apache Commons! Your help is appreciated!
Before you push a pull request, review this list:
mvn; that'smvnon the command line by itself.