I am using Bundle-ClassPath and seeing the following error
Classes found in the wrong directory: {META-INF/versions/11/module-info.class=module-info}
I am guessing that the jar has java module info. I am not sure why BND cares. I am not unrolling the jar just including it.
Yes, this is well known about Multi-Release Jar support in Bnd. See https://github.com/bndtools/bnd/issues/2227.
You can elide the error message with a -fixupmessages
instruction. See the examples in the issue.
That worked. For the record …
-fixupmessages : ‘^Classes found in the wrong directory: .*’
1 Like
And for those using the Maven plugin, the corresponding instruction is:
<_fixupmessages>^Classes found in the wrong directory.*</_fixupmessages>