From b75395949cab09decd74400180870f2f6f6a79a5 Mon Sep 17 00:00:00 2001
From: Gaetan Boismal <gaetan.boismal@forgerock.com>
Date: Wed, 21 Oct 2015 16:05:43 +0000
Subject: [PATCH] OPENDJ-2226 PR-96 Make jar modules OSGI ready
---
opendj-sdk/opendj-grizzly/pom.xml | 20 ++++++++++++++------
1 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/opendj-sdk/opendj-grizzly/pom.xml b/opendj-sdk/opendj-grizzly/pom.xml
index cfb188d..e4adbe0 100644
--- a/opendj-sdk/opendj-grizzly/pom.xml
+++ b/opendj-sdk/opendj-grizzly/pom.xml
@@ -21,7 +21,7 @@
!
! CDDL HEADER END
!
- ! Copyright 2013 ForgeRock AS
+ ! Copyright 2013-2015 ForgeRock AS
!
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
@@ -70,12 +70,13 @@
<scope>test</scope>
</dependency>
</dependencies>
+
<properties>
- <opendj.osgi.import>
- com.sun.security.auth*;resolution:=optional,
- *
- </opendj.osgi.import>
+ <opendj.osgi.import.additional>
+ org.forgerock.opendj.*;provide:=true
+ </opendj.osgi.import.additional>
</properties>
+
<build>
<plugins>
<plugin>
@@ -98,7 +99,14 @@
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
- <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <!-- Export only public APIs of this module-->
+ <Export-Package>
+ org.forgerock.opendj.grizzly*
+ </Export-Package>
+ </instructions>
+ </configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
--
Gitblit v1.10.0