You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2011/01/16 14:28:25 UTC

svn commit: r1059554 - /directory/shared/trunk/ldap-schema/pom.xml

Author: akarasulu
Date: Sun Jan 16 13:28:25 2011
New Revision: 1059554

URL: http://svn.apache.org/viewvc?rev=1059554&view=rev
Log:
Converted ldap-schema to an OSGi bundle:

  o Used maven-bundle-plugin just to generate the MANIFEST.MF
  o Using Maven Jar Archiver to assemble the jar merging it's manifest entries
    with the entries generated from the bundle plugin.
  o Need to test the bundle classpath is setup propertly for the export of
    schema files to occur without issues in OSGi environment.


Modified:
    directory/shared/trunk/ldap-schema/pom.xml

Modified: directory/shared/trunk/ldap-schema/pom.xml
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap-schema/pom.xml?rev=1059554&r1=1059553&r2=1059554&view=diff
==============================================================================
--- directory/shared/trunk/ldap-schema/pom.xml (original)
+++ directory/shared/trunk/ldap-schema/pom.xml Sun Jan 16 13:28:25 2011
@@ -109,6 +109,47 @@
           </execution>
         </executions>
       </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <configuration>
+          <archive>
+            <manifestFile>
+              ${project.build.outputDirectory}/META-INF/MANIFEST.MF
+            </manifestFile>
+          </archive>
+        </configuration>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <inherited>true</inherited>
+        <extensions>true</extensions>
+        <executions>
+          <execution>
+            <id>bundle-manifest</id>
+            <phase>process-classes</phase>
+            <goals>
+              <goal>manifest</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <instructions>
+            <Bundle-SymbolicName>
+              ${pom.groupId}.ldap.schema
+            </Bundle-SymbolicName>
+            <Bundle-Name>${pom.artifactId}</Bundle-Name>
+            <Bundle-Version>${pom.version}</Bundle-Version>
+            <Export-Package>
+              org.apache.directory.shared.ldap.schema.*
+            </Export-Package>
+          </instructions>
+        </configuration>
+      </plugin>
+
     </plugins>
     <resources>
       <resource>