aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/metadata
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2011-11-22 14:17:04 +0000
committerOlivier Lamy <olamy@apache.org>2011-11-22 14:17:04 +0000
commit9d3a7193810cef52b0edc71cd2dd8f247bce5c96 (patch)
tree7a8e368987016dca282c0cada5488d74d64b34cd /archiva-modules/metadata
parent7328b600d5d4d8304c09f2c51d2e1691b104d09b (diff)
downloadarchiva-9d3a7193810cef52b0edc71cd2dd8f247bce5c96.tar.gz
archiva-9d3a7193810cef52b0edc71cd2dd8f247bce5c96.zip
[MRM-1562] Update to Archiva as OSGi compliant application.
Submitted by Jean-Baptiste Onofre. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1205009 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/metadata')
-rw-r--r--archiva-modules/metadata/metadata-model/pom.xml21
-rw-r--r--archiva-modules/metadata/metadata-repository-api/pom.xml23
2 files changed, 44 insertions, 0 deletions
diff --git a/archiva-modules/metadata/metadata-model/pom.xml b/archiva-modules/metadata/metadata-model/pom.xml
index ada7ee84d..0154fcca5 100644
--- a/archiva-modules/metadata/metadata-model/pom.xml
+++ b/archiva-modules/metadata/metadata-model/pom.xml
@@ -24,5 +24,26 @@
<version>1.4-M2-SNAPSHOT</version>
</parent>
<artifactId>metadata-model</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Metadata :: Model</name>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.metadata.model</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.metadata.model;version=${project.version};-split-package:=merge-first
+ </Export-Package>
+ <Import-Package>
+
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git a/archiva-modules/metadata/metadata-repository-api/pom.xml b/archiva-modules/metadata/metadata-repository-api/pom.xml
index 0ab8ae0aa..c87e9eba5 100644
--- a/archiva-modules/metadata/metadata-repository-api/pom.xml
+++ b/archiva-modules/metadata/metadata-repository-api/pom.xml
@@ -25,6 +25,7 @@
<version>1.4-M2-SNAPSHOT</version>
</parent>
<artifactId>metadata-repository-api</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Metadata :: Repository API</name>
<dependencies>
<dependency>
@@ -56,6 +57,28 @@
<build>
<plugins>
<plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.metadata.repository.api</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.metadata.repository;version=${project.version};-split-package:=merge-first,
+ org.apache.archiva.metadata.repository.filter;version=${project.version};-split-package:=merge-first,
+ org.apache.archiva.metadata.repository.storage;version=${project.version};-split-package:=merge-first,
+ org.apache.archiva.repository.events;version=${project.version};-split-package:=merge-first
+ </Export-Package>
+ <Import-Package>
+ javax.inject,
+ org.apache.archiva.metadata.model;version=${project.version},
+ org.springframework.stereotype;version="[3,4)",
+ org.slf4j;resolution:=optional
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>