You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Jean-Baptiste Onofré <jb...@nanthrax.net> on 2022/05/10 19:10:35 UTC

[UPDATE] maven-bundle-plugin behavior change between 5.1.4 and 5.1.5

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

Re: [UPDATE] maven-bundle-plugin behavior change between 5.1.4 and 5.1.5

Posted by Raymond Augé <ra...@liferay.com.INVALID>.
+1 (binding)

On Tue, May 10, 2022 at 3:11 PM Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:

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


-- 
*Raymond Augé* (@rotty3000)
Senior Software Architect *Liferay, Inc.* (@Liferay)
OSGi Fellow, Java Champion