Niraj Vatvani created FELIX-6199:
------------------------------------
Summary: Create new <force-ee> instruction for maven-bundle-plugin
to complement <_noee>
Key: FELIX-6199
URL: https://issues.apache.org/jira/browse/FELIX-6199
Project: Felix
Issue Type: New Feature
Components: Maven Bundle Plugin
Reporter: Niraj Vatvani
More and more projects are supporting multiple JDK versions ranging from Java8
all the way to Java13. Supporting a wide range of JDK versions mean that more
projects are having *module-info.class* which forces maven-bundle-plugin to
incorrectly set in the *MANIFEST_._MF* file:
*_Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=9.0))"_*
... despite the project being built for JDK8 compatibility.
Many OSGI projects, including mine, are being forced to use the *<_noee>
instruction* as a workaround to this issue, but soon when my project is to
support JDK9 and above as well as JDK8 - I will be forced to fork my project
into 2 master branches (one for JDK8 and the other for >JDK9).
The Maven Bundle Plugin would benefit from either having a new *<force-ee>
instruction* or some other alternative way to specify one or more JDK versions
that would result in the *MANIFEST.MF* file having the "*_Require-Capability_*"
field set to whatever is defined in *<force-ee>*.
Having "*_Require-Capability_*" automatically set to the compiler version being
used to build the OSGI project is a more invisible way to address this issue.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)