[ 
https://issues.apache.org/jira/browse/FELIX-5592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15931863#comment-15931863
 ] 

Mark Raynsford commented on FELIX-5592:
---------------------------------------

I think the main issue is that OSGi doesn't have any way of representing 
"classes that are only loaded in a specific jvm environment". As I mentioned in 
that thread, the right way to do this is via services (both in OSGi and Java 
9), but that's not much help for existing code that isn't structured as 
services.

> 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.3.15#6346)

Reply via email to