summaryrefslogtreecommitdiffstats
path: root/archiva-modules/plugins
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2011-11-29 15:15:40 +0000
committerOlivier Lamy <olamy@apache.org>2011-11-29 15:15:40 +0000
commitd6fa8f7ad8325d4be06cdfcb52f187b915d7d064 (patch)
tree368aeb8700779233c2492b65b8486366ad093750 /archiva-modules/plugins
parent07a70248ebc9bb3d2f06f4dd256fe1b03bb3bd8d (diff)
downloadarchiva-d6fa8f7ad8325d4be06cdfcb52f187b915d7d064.tar.gz
archiva-d6fa8f7ad8325d4be06cdfcb52f187b915d7d064.zip
[MRM-1562]Update to Archiva as OSGi compliant application
turn xmlrpc, some plugins as OSGi bundles. Submitted by Jean Baptiste Onofre. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1207904 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/plugins')
-rw-r--r--archiva-modules/plugins/generic-metadata-support/pom.xml22
-rw-r--r--archiva-modules/plugins/metadata-store-file/pom.xml29
-rw-r--r--archiva-modules/plugins/metadata-store-jcr/pom.xml30
-rw-r--r--archiva-modules/plugins/npanday-support/pom.xml22
-rw-r--r--archiva-modules/plugins/stage-repository-merge/pom.xml24
5 files changed, 127 insertions, 0 deletions
diff --git a/archiva-modules/plugins/generic-metadata-support/pom.xml b/archiva-modules/plugins/generic-metadata-support/pom.xml
index bf08bd1c9..980ac88ab 100644
--- a/archiva-modules/plugins/generic-metadata-support/pom.xml
+++ b/archiva-modules/plugins/generic-metadata-support/pom.xml
@@ -25,6 +25,7 @@
<version>1.4-M2-SNAPSHOT</version>
</parent>
<artifactId>generic-metadata-support</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Core Plugins :: Generic Metadata Support</name>
<dependencies>
<dependency>
@@ -41,4 +42,25 @@
<scope>test</scope>
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.metadata.generic</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.metadata.generic;version=${project.version};-split-package:=merge-first
+ </Export-Package>
+ <Import-Package>
+ org.apache.archiva.metadata.model;version=${project.version},
+ org.springframework*;version="[3,4)"
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git a/archiva-modules/plugins/metadata-store-file/pom.xml b/archiva-modules/plugins/metadata-store-file/pom.xml
index b008bdf18..e818532c8 100644
--- a/archiva-modules/plugins/metadata-store-file/pom.xml
+++ b/archiva-modules/plugins/metadata-store-file/pom.xml
@@ -25,6 +25,7 @@
<version>1.4-M2-SNAPSHOT</version>
</parent>
<artifactId>metadata-store-file</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Core Plugins :: File System Backed Metadata Repository</name>
<dependencies>
<dependency>
@@ -70,4 +71,32 @@
<scope>test</scope>
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.metadata.repository.file</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.metadata.repository.file;version=${project.version};-split-package:=merge-first
+ </Export-Package>
+ <Import-Package>
+ javax.annotation,
+ javax.inject,
+ org.apache.archiva.configuration;version=${project.version},
+ org.apache.archiva.metadata.model;version=${project.version},
+ org.apache.archiva.metadata.repository;version=${project.version},
+ org.apache.commons.io;version="[1.4,2)",
+ org.apache.commons.lang;version="[2.4,3)",
+ org.springframework*;version="[3,4)",
+ org.slf4j;resolution:=optional
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git a/archiva-modules/plugins/metadata-store-jcr/pom.xml b/archiva-modules/plugins/metadata-store-jcr/pom.xml
index 9d325a0b3..0e21e1d09 100644
--- a/archiva-modules/plugins/metadata-store-jcr/pom.xml
+++ b/archiva-modules/plugins/metadata-store-jcr/pom.xml
@@ -26,6 +26,7 @@
<version>1.4-M2-SNAPSHOT</version>
</parent>
<artifactId>metadata-store-jcr</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Core Plugins :: JCR Storage for Metadata</name>
<dependencies>
<dependency>
@@ -80,5 +81,34 @@
<filtering>true</filtering>
</testResource>
</testResources>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.metadata.repository.jcr</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.metadata.repository.jcr;version=${project.version};-split-package:=merge-first
+ </Export-Package>
+ <Import-Package>
+ javax.annotation,
+ javax.inject,
+ javax.jcr,
+ javax.jcr.nodetype,
+ javax.jcr.query,
+ org.apache.archiva.metadata.model;version=${project.version},
+ org.apache.archiva.metadata.repository;version=${project.version},
+ org.apache.commons.lang;version="[2.4,3)",
+ org.apache.jackrabbit.commons;version="[2.3,3)",
+ org.apache.jackrabbit.core.config;version="[2.3,3)",
+ org.springframework*;version="[3,4)",
+ org.slf4j;resolution:=optional
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
</build>
</project>
diff --git a/archiva-modules/plugins/npanday-support/pom.xml b/archiva-modules/plugins/npanday-support/pom.xml
index 65b08d364..ba94c5dc2 100644
--- a/archiva-modules/plugins/npanday-support/pom.xml
+++ b/archiva-modules/plugins/npanday-support/pom.xml
@@ -26,6 +26,7 @@
<version>1.4-M2-SNAPSHOT</version>
</parent>
<artifactId>npanday-support</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Core Plugins :: NPanday Support for Archiva</name>
<dependencies>
<dependency>
@@ -37,4 +38,25 @@
<artifactId>spring-context</artifactId>
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.plugins.npanday</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.plugins.npanday;version=${project.version};-split-package:=merge-first
+ </Export-Package>
+ <Import-Package>
+ org.apache.archiva.metadata.repository.storage.maven2;version=${project.version},
+ org.springframework*;version="[3,4)"
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git a/archiva-modules/plugins/stage-repository-merge/pom.xml b/archiva-modules/plugins/stage-repository-merge/pom.xml
index 9d18ebdbb..491ad48ed 100644
--- a/archiva-modules/plugins/stage-repository-merge/pom.xml
+++ b/archiva-modules/plugins/stage-repository-merge/pom.xml
@@ -26,6 +26,7 @@
</parent>
<groupId>org.apache.archiva</groupId>
<artifactId>stage-repository-merge</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Core Plugins :: Stage Repository Merge</name>
<dependencies>
@@ -73,6 +74,29 @@
<build>
<plugins>
<plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.stagerepository.merge</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.stagerepository.merge;version=${project.version}
+ </Export-Package>
+ <Import-Package>
+ javax.inject,
+ org.apache.archiva.common.utils;version=${project.version},
+ org.apache.archiva.configuration;version=${project.version},
+ org.apache.archiva.metadata.*;version=${project.version},
+ org.apache.archiva.model;version=${project.version},
+ org.apache.archiva.repository*;version=${project.version},
+ org.apache.commons.io;version="[1.4,2)",
+ org.springframework*;version="[3,4)"
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>