]> source.dussan.org Git - archiva.git/commitdiff
make new module archiva-maven2-metadata an osgi bundle
authorOlivier Lamy <olamy@apache.org>
Sun, 11 Mar 2012 23:58:21 +0000 (23:58 +0000)
committerOlivier Lamy <olamy@apache.org>
Sun, 11 Mar 2012 23:58:21 +0000 (23:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1299491 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-maven2-metadata/pom.xml

index 95146e3d6a9149ac436d85b7dbbdf0963a07114e..e7c77d457e7dc903c49ce38826681c0b4c8b04d3 100644 (file)
 <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">\r
   <modelVersion>4.0.0</modelVersion>\r
   <parent>\r
-    <artifactId>archiva-base</artifactId>\r
     <groupId>org.apache.archiva</groupId>\r
+    <artifactId>archiva-base</artifactId>\r
     <version>1.4-M3-SNAPSHOT</version>\r
   </parent>\r
 \r
   <artifactId>archiva-maven2-metadata</artifactId>\r
   <version>1.4-M3-SNAPSHOT</version>\r
+  <packaging>bundle</packaging>\r
 \r
   <name>Archiva Base :: Maven 2 Metadata</name>\r
 \r
     </dependency>\r
   </dependencies>\r
 \r
+  <build>\r
+    <plugins>\r
+      <plugin>\r
+        <groupId>org.apache.felix</groupId>\r
+        <artifactId>maven-bundle-plugin</artifactId>\r
+        <configuration>\r
+          <instructions>\r
+            <Bundle-SymbolicName>org.apache.archiva.maven2.metadata</Bundle-SymbolicName>\r
+            <Bundle-Version>${project.version}</Bundle-Version>\r
+            <Export-Package>\r
+              org.apache.archiva.maven2.metadata*;version=${project.version}\r
+            </Export-Package>\r
+            <Import-Package>\r
+              org.apache.archiva.model;version=${project.version},\r
+              org.apache.archiva.xml;version=${project.version},\r
+              org.apache.commons.lang.math,\r
+              org.dom4j\r
+            </Import-Package>\r
+          </instructions>\r
+        </configuration>\r
+      </plugin>\r
+    </plugins>\r
+  </build>\r
+\r
 </project>\r