+1 (binding)

On Tue, May 10, 2022 at 3:11 PM Jean-Baptiste Onofré <[email protected]>
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

Reply via email to