Hi everyone,

I would like to share a behavior change between maven-bundle-plugin
5.1.4 and 5.1.5, thanks to Benjamin Graf.

maven-bundle-plugin 5.1.5 upgraded to bnd 6.x, both to benefit the
latest bnd features, and also better support JDK 18.

bnd 6.x now generates bundles importing java.* packages (which is
valid in OSGi R7):

https://bnd.bndtools.org/instructions/noimportjava.html

Concretely, maven-bundle-plugin 5.1.4 generates bundles without java.*
packages import, whereas maven-bundle-plugin 5.1.5 generates bundles
with java.* packages import.

Anyway, if you can have 5.1.4 behavior with maven-bundle-plugin 5.1.5
by using the following configuration:

<_noimportjava>true<_noimport>

I wanted to share this detail.
I will work on a PR to update the maven-bundle-plugin documentation:
https://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html

Regards
JB

Reply via email to