From e909bfc5174b73d5bcf32199bc0f71dde7325c2f Mon Sep 17 00:00:00 2001 From: Deanna Garcia Date: Wed, 22 Feb 2023 13:49:28 -0800 Subject: [PATCH] Add OSGi headers to pom files. This addresses https://github.com/protocolbuffers/protobuf/issues/12017. PiperOrigin-RevId: 511587640 --- java/core/pom_template.xml | 20 ++++++++++++++++++++ java/lite/pom_template.xml | 19 +++++++++++++++++++ java/util/pom_template.xml | 19 +++++++++++++++++++ 3 files changed, 58 insertions(+) diff --git a/java/core/pom_template.xml b/java/core/pom_template.xml index 4a30ddc863..11bd41964f 100644 --- a/java/core/pom_template.xml +++ b/java/core/pom_template.xml @@ -18,4 +18,24 @@ {dependencies} + + + + + + org.apache.felix + maven-bundle-plugin + true + + + com.google.protobuf + https://developers.google.com/protocol-buffers/ + com.google.protobuf + com.google.protobuf;version=${project.version} + sun.misc;resolution:=optional,* + + + + + diff --git a/java/lite/pom_template.xml b/java/lite/pom_template.xml index fa6cfd2ae6..728c291a4b 100644 --- a/java/lite/pom_template.xml +++ b/java/lite/pom_template.xml @@ -19,4 +19,23 @@ {dependencies} + + + + + org.apache.felix + maven-bundle-plugin + true + + + com.google.protobuf + https://developers.google.com/protocol-buffers/ + com.google.protobuf + com.google.protobuf;version=${project.version} + sun.misc;resolution:=optional,* + + + + + diff --git a/java/util/pom_template.xml b/java/util/pom_template.xml index f897892510..74ef795f17 100644 --- a/java/util/pom_template.xml +++ b/java/util/pom_template.xml @@ -20,4 +20,23 @@ {dependencies} + + + + + org.apache.felix + maven-bundle-plugin + true + + + com.google.protobuf.util + https://developers.google.com/protocol-buffers/ + com.google.protobuf.util + com.google.protobuf.util;version=${project.version} + + + + + +