[ https://issues.apache.org/jira/browse/FELIX-5592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16281169#comment-16281169 ]
Neil Bartlett commented on FELIX-5592: -------------------------------------- You can continue using the maven-bundle-plugin with your multi-release JARs by adding the following configuration: {noformat} <configuration> <instructions> <_fixupmessages>"Classes found in the wrong directory";is:=warning</_fixupmessages> </instructions> </configuration> {noformat} Note that the Java-9-specific parts will not be visible in OSGi, because OSGi will need enhancements to its runtime (the problem is that the Java 9 parts could have different dependencies, and OSGi does not support dependencies that are conditional upon the runtime Java version). Work on addressing this limitation is underway. In the meantime, the above snippet will allow you to keep using the maven-bundle-plugin to support OSGi users running on Java 8 and below. > Maven bundle plugin does not support Java 9 Multi-Release jars > -------------------------------------------------------------- > > Key: FELIX-5592 > URL: https://issues.apache.org/jira/browse/FELIX-5592 > Project: Felix > Issue Type: Bug > Components: Maven Bundle Plugin > Affects Versions: maven-bundle-plugin-3.2.0 > Reporter: Ralph Goers > > Log4j 2 currently packages its jars with the maven-bundle-plugin. To support > Java 9 we are moving towards using Multi-Release jars to pick up the Java 9 > features. However, when the Maven bundle plugin encouters classes in > META-INF/versions/9 it emits an error message saying "Classes found in the > wrong directory:", which is incorrect for a Multi-Release jar in Java 9. -- This message was sent by Atlassian JIRA (v6.4.14#64029)