[
https://issues.apache.org/jira/browse/FELIX-5592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15931968#comment-15931968
]
Mark Raynsford edited comment on FELIX-5592 at 3/19/17 9:18 PM:
----------------------------------------------------------------
Er, to clarify, ServiceLoader isn't used in OSGi. Generally though, if a piece
of code is written to work well with the ServiceLoader API, then it can be made
to work under OSGi with next to no effort. With OSGi's "declarative services",
it's just a couple of annotations that aren't retained in any form (they're
used to generate a small piece of XML metadata that's injected into the jar
file and used by the OSGi container).
was (Author: io7m):
Er, to clarify, ServiceLoader isn't used in OSGi. Generally though, if a piece
of code is written to work well with the ServiceLoader API, then it can be made
to work under OSGi with next to no effort.
> 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)