Closed
Description
Bundles need to include extra metadata to support java.util.ServiceLoader
inside an OSGi framework. Jackson's bundles are all missing this metadata.
In theory, it should just be a matter of applying Bnd's @ServiceConsumer
and @ServiceProvider
annotations in the correct places as described here, where these annotations can be provided like this:
diff --git a/base/pom.xml b/base/pom.xml
index 6235a67..4972957 100644
--- a/base/pom.xml
+++ b/base/pom.xml
@@ -30,9 +30,17 @@ of Jackson: application code should only rely on `jackson-bom`
parent pom, and then also allow override as need be
-->
<jackson-bom.version>${project.parent.version}</jackson-bom.version>
+
+ <version.bnd.annotation>6.3.1</version.bnd.annotation>
</properties>
<dependencies>
+ <dependency>
+ <groupId>biz.aQute.bnd</groupId>
+ <artifactId>biz.aQute.bnd.annotation</artifactId>
+ <version>${version.bnd.annotation}</version>
+ <scope>provided</scope>
+ </dependency>
<dependency> <!-- all components use junit for testing -->
<groupId>junit</groupId>
<artifactId>junit</artifactId>
I am struggling to wrap my head around your myriad of separate repositories, and so you may have a better way of providing this dependency.
Metadata
Metadata
Assignees
Labels
No labels