-
-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Classes found in the wrong directory: {META-INF/versions/9/module-info.class=module-info} #3514
Comments
See #2227. We still do not have any support for multi-release jars. |
Closing as duplicate. |
maven-bundle-plugin:4.2.1 still having issues Classes found in the wrong directory: {META-INF/versions/9/module-info.class=module-info}. Working with a felix OSGi container, JDK8 only. Is there Maven support to suppress the problem? |
The issue can be ignored with: |
Apply workaround from bndtools/bnd#3514
dilemma: unfortunatelly bnd in 6.4.0 does not support multi-release jars. It starts being support in 7.0.0 but this requires min.JDK 17. So the only way is to suppress the warning via -fixupmessage (see bndtools/bnd#3514 and https://bnd.bndtools.org/instructions/fixupmessages.html)
dilemma: unfortunatelly bnd in 6.4.0 does not support multi-release jars. It starts being support in 7.0.0 but this requires min.JDK 17. So the only way is to suppress the warning via -fixupmessage (see bndtools/bnd#3514 and https://bnd.bndtools.org/instructions/fixupmessages.html)
dilemma: unfortunatelly bnd in 6.4.0 does not support multi-release jars. It starts being support in 7.0.0 but this requires min.JDK 17. So the only way is to suppress the warning via -fixupmessage (see bndtools/bnd#3514 and https://bnd.bndtools.org/instructions/fixupmessages.html)
As it turns out, even with
Multi-Release: true
, bnd doesn't like finding classes in the multi version directories. We should try to handle this a little better.You can elide the error with
-fixupmessages
but you'd think the multi-release flag would capture that aspect and know what's going on.The text was updated successfully, but these errors were encountered: