summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base
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/archiva-base
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/archiva-base')
-rw-r--r--archiva-modules/archiva-base/archiva-artifact-converter/pom.xml26
-rw-r--r--archiva-modules/archiva-base/archiva-checksum/pom.xml21
-rw-r--r--archiva-modules/archiva-base/archiva-common/pom.xml21
-rw-r--r--archiva-modules/archiva-base/archiva-configuration/pom.xml31
-rw-r--r--archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/pom.xml27
-rw-r--r--archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/pom.xml2
-rw-r--r--archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/pom.xml38
-rw-r--r--archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/pom.xml32
-rw-r--r--archiva-modules/archiva-base/archiva-consumers/archiva-metadata-consumer/pom.xml32
-rw-r--r--archiva-modules/archiva-base/archiva-converter/pom.xml37
-rw-r--r--archiva-modules/archiva-base/archiva-indexer/pom.xml27
-rwxr-xr-xarchiva-modules/archiva-base/archiva-model/pom.xml18
-rw-r--r--archiva-modules/archiva-base/archiva-plexus-bridge/pom.xml31
-rw-r--r--archiva-modules/archiva-base/archiva-policies/pom.xml23
-rw-r--r--archiva-modules/archiva-base/archiva-proxy-common/pom.xml26
-rw-r--r--archiva-modules/archiva-base/archiva-proxy/pom.xml38
-rw-r--r--archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/pom.xml21
-rw-r--r--archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml39
-rw-r--r--archiva-modules/archiva-base/archiva-repository-layer/pom.xml36
-rw-r--r--archiva-modules/archiva-base/archiva-repository-scanner/pom.xml28
-rw-r--r--archiva-modules/archiva-base/archiva-security-common/pom.xml21
-rw-r--r--archiva-modules/archiva-base/archiva-transaction/pom.xml22
-rw-r--r--archiva-modules/archiva-base/archiva-xml-tools/pom.xml23
23 files changed, 612 insertions, 8 deletions
diff --git a/archiva-modules/archiva-base/archiva-artifact-converter/pom.xml b/archiva-modules/archiva-base/archiva-artifact-converter/pom.xml
index 345cc7832..5eff81f01 100644
--- a/archiva-modules/archiva-base/archiva-artifact-converter/pom.xml
+++ b/archiva-modules/archiva-base/archiva-artifact-converter/pom.xml
@@ -26,6 +26,7 @@
<version>1.4-M2-SNAPSHOT</version>
</parent>
<artifactId>archiva-artifact-converter</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Artifact Converter</name>
<description>Converts between Legacy and Modern Layout Artifacts.</description>
<dependencies>
@@ -83,6 +84,31 @@
<build>
<plugins>
<plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.artifact.converter</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.converter.artifact*;version=${project.version};-split-package:=merge-first
+ </Export-Package>
+ <Import-Package>
+ javax.annotation,
+ javax.inject,
+ org.apache.archiva.common.plexusbridge;version=${project.version},
+ org.apache.archiva.transaction;version=${project.version},
+ org.apache.commons.io;version="[1.4,2)",
+ org.springframework*;version="[3,4)",
+ org.apache.maven.artifact*,
+ org.apache.maven.model*,
+ org.codehaus.plexus.digest,
+ org.codehaus.plexus.util*
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
diff --git a/archiva-modules/archiva-base/archiva-checksum/pom.xml b/archiva-modules/archiva-base/archiva-checksum/pom.xml
index 8e5f94d18..f06b385e8 100644
--- a/archiva-modules/archiva-base/archiva-checksum/pom.xml
+++ b/archiva-modules/archiva-base/archiva-checksum/pom.xml
@@ -25,6 +25,7 @@
<version>1.4-M2-SNAPSHOT</version>
</parent>
<artifactId>archiva-checksum</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Base :: Checksum</name>
<dependencies>
@@ -52,6 +53,26 @@
</dependencies>
<build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.checksum</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.checksum;version=${project.version}
+ </Export-Package>
+ <Import-Package>
+ org.apache.commons.io*;version="[1.4,2)",
+ org.apache.commons.lang;version="[2.4,3)",
+ org.slf4j;resolution:=optional
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
<pluginManagement>
<plugins>
<plugin>
diff --git a/archiva-modules/archiva-base/archiva-common/pom.xml b/archiva-modules/archiva-base/archiva-common/pom.xml
index 545662491..97bd943cc 100644
--- a/archiva-modules/archiva-base/archiva-common/pom.xml
+++ b/archiva-modules/archiva-base/archiva-common/pom.xml
@@ -26,6 +26,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>archiva-common</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Base :: Common</name>
<dependencies>
<!-- TO OTHER DEVELOPERS:
@@ -72,6 +73,26 @@
</dependency>
</dependencies>
<build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.common</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.common*;version=${project.version}
+ </Export-Package>
+ <Import-Package>
+ org.apache.commons.lang*;version="[2,3)",
+ org.codehaus.plexus.logging,
+ org.slf4j;resolution:=optional
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
<pluginManagement>
<plugins>
<plugin>
diff --git a/archiva-modules/archiva-base/archiva-configuration/pom.xml b/archiva-modules/archiva-base/archiva-configuration/pom.xml
index 78ae4c7f0..d9a84f1ed 100644
--- a/archiva-modules/archiva-base/archiva-configuration/pom.xml
+++ b/archiva-modules/archiva-base/archiva-configuration/pom.xml
@@ -26,6 +26,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>archiva-configuration</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Base :: Configuration</name>
<dependencies>
<dependency>
@@ -168,6 +169,36 @@
</systemPropertyVariables>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.configuration</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.configuration*;version=${project.version}
+ </Export-Package>
+ <Import-Package>
+ javax.annotation,
+ javax.inject,
+ org.apache.archiva.common;version=${project.version},
+ org.apache.archiva.policies;version=${project.version},
+ org.apache.commons.collections;version="[3.2,4)",
+ org.apache.commons.lang;version="[2.4,3)",
+ org.apache.commons.configuration;version="[1.3,2)",
+ org.apache.commons.io;version="[1.4,2)",
+ org.codehaus.plexus.evaluator*,
+ org.codehaus.plexus.registry,
+ org.codehaus.plexus.util,
+ org.codehaus.redback.components.registry.commons,
+ org.codehaus.redback.components.springutils,
+ org.springframework.stereotype;version="[3,4)",
+ org.slf4j;resolution:=optional
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
</plugins>
<pluginManagement>
<plugins>
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/pom.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/pom.xml
index 560fd4aff..38cf37cd9 100644
--- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/pom.xml
+++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/pom.xml
@@ -25,10 +25,9 @@
<artifactId>archiva-consumers</artifactId>
<version>1.4-M2-SNAPSHOT</version>
</parent>
-
<artifactId>archiva-consumer-api</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Base :: Consumers :: API</name>
-
<dependencies>
<dependency>
<groupId>org.apache.archiva</groupId>
@@ -43,4 +42,28 @@
<artifactId>commons-collections</artifactId>
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.consumers.api</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.consumers*;version=${project.version}
+ </Export-Package>
+ <Import-Package>
+ org.apache.archiva.admin.model.beans;version=${project.version},
+ org.apache.archiva.common*;version=${project.version},
+ org.apache.commons.collections;version="[3.2,4)",
+ org.apache.commons.io;version="[1.4,2)",
+ org.codehaus.plexus.util
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/pom.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/pom.xml
index 1ea1ec1a7..ffce72a73 100644
--- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/pom.xml
+++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/pom.xml
@@ -26,14 +26,12 @@
<version>1.4-M2-SNAPSHOT</version>
</parent>
<artifactId>archiva-consumer-archetype</artifactId>
-
<packaging>maven-archetype</packaging>
<name>Archiva Consumers :: Consumers Archetype</name>
<description>Simple archetype to create archiva consumers</description>
<properties>
<archivaVersion>${project.version}</archivaVersion>
</properties>
-
<build>
<resources>
<resource>
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/pom.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/pom.xml
index 0367aa66d..863b1eccc 100644
--- a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/pom.xml
+++ b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/pom.xml
@@ -25,10 +25,9 @@
<artifactId>archiva-consumers</artifactId>
<version>1.4-M2-SNAPSHOT</version>
</parent>
-
<artifactId>archiva-core-consumers</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Base :: Consumers :: Core Consumers</name>
-
<dependencies>
<!-- TODO: remove this hard dependency by using an event mechanism -->
<dependency>
@@ -139,6 +138,41 @@
</pluginManagement>
<plugins>
<plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.consumers.core</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.consumers.core*;version=${project.version}
+ </Export-Package>
+ <Import-Package>
+ javax.annotation,
+ javax.inject,
+ org.apache.archiva.admin.model*;version=${project.version},
+ org.apache.archiva.checksum;version=${project.version},
+ org.apache.archiva.common.utils;version=${project.version},
+ org.apache.archiva.configuration;version=${project.version},
+ org.apache.archiva.common.plexusbridge;version=${project.version},
+ org.apache.archiva.consumers;version=${project.version},
+ org.apache.archiva.metadata.repository;version=${project.version},
+ org.apache.archiva.model;version=${project.version},
+ org.apache.archiva.repository;version=${project.version},
+ org.apache.archiva.repository.events;version=${project.version},
+ org.apache.archiva.repository.layout;version=${project.version},
+ org.apache.archiva.repository.metadata;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.codehaus.plexus.digest,
+ org.codehaus.plexus.registry,
+ org.slf4j;resolution:=optional
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/pom.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/pom.xml
index 2146f3a26..f1dce8b69 100644
--- a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/pom.xml
+++ b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/pom.xml
@@ -25,10 +25,9 @@
<artifactId>archiva-consumers</artifactId>
<version>1.4-M2-SNAPSHOT</version>
</parent>
-
<artifactId>archiva-lucene-consumers</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Base :: Consumers :: Lucene</name>
-
<dependencies>
<dependency>
<groupId>org.apache.archiva</groupId>
@@ -102,6 +101,35 @@
</dependency>
</dependencies>
<build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.consumers.lucene</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.consumers.lucene;version=${project.version}
+ </Export-Package>
+ <Import-Package>
+ javax.annotation,
+ javax.inject,
+ org.apache.archiva.admin.model*;version=${project.version},
+ org.apache.archiva.common.plexusbridge;version=${project.version},
+ org.apache.archiva.configuration;version=${project.version},
+ org.apache.archiva.consumers;version=${project.version},
+ org.apache.archiva.scheduler*;version=${project.version},
+ org.springframework*;version="[3,4)",
+ org.apache.maven.index*,
+ org.codehaus.plexus.registry,
+ org.codehaus.plexus.taskqueue,
+ org.slf4j;resolution:=optional
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
<pluginManagement>
<plugins>
<plugin>
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-metadata-consumer/pom.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-metadata-consumer/pom.xml
index 3157a0e89..97c8101b9 100644
--- a/archiva-modules/archiva-base/archiva-consumers/archiva-metadata-consumer/pom.xml
+++ b/archiva-modules/archiva-base/archiva-consumers/archiva-metadata-consumer/pom.xml
@@ -26,6 +26,7 @@
<version>1.4-M2-SNAPSHOT</version>
</parent>
<artifactId>archiva-metadata-consumer</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Base :: Consumers :: Metadata</name>
<dependencies>
<dependency>
@@ -57,4 +58,35 @@
<artifactId>spring-registry-api</artifactId>
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.consumers.metadata</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.consumers.metadata;version=${project.version}
+ </Export-Package>
+ <Import-Package>
+ javax.annotation,
+ javax.inject,
+ org.apache.archiva.admin.model.beans;version=${project.version},
+ org.apache.archiva.common.utils;version=${project.version},
+ org.apache.archiva.configuration;version=${project.version},
+ org.apache.archiva.consumers;version=${project.version},
+ org.apache.archiva.metadata.model;version=${project.version},
+ org.apache.archiva.metadata.repository;version=${project.version},
+ org.apache.archiva.metadata.repository.storage;version=${project.version},
+ org.springframework*;version="[3,4)",
+ org.codehaus.plexus.registry,
+ org.slf4j;resolution:=optional
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git a/archiva-modules/archiva-base/archiva-converter/pom.xml b/archiva-modules/archiva-base/archiva-converter/pom.xml
index 433167e0e..be5162abe 100644
--- a/archiva-modules/archiva-base/archiva-converter/pom.xml
+++ b/archiva-modules/archiva-base/archiva-converter/pom.xml
@@ -26,6 +26,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>archiva-converter</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Base :: Repository Converter</name>
<dependencies>
<dependency>
@@ -63,6 +64,42 @@
</dependency>
</dependencies>
<build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.converter</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.converter*;version=${project.version};-split-package:=merge-first
+ </Export-Package>
+ <Import-Package>
+ javax.annotation,
+ javax.inject,
+ org.apache.archiva.admin.model.beans;version=${project.version},
+ org.apache.archiva.common.plexusbridge;version=${project.version},
+ org.apache.archiva.common.utils;version=${project.version},
+ org.apache.archiva.model;version=${project.version},
+ org.apache.archiva.consumers;version=${project.version},
+ org.apache.archiva.repository;version=${project.version},
+ org.apache.archiva.repository.content;version=${project.version},
+ org.apache.archiva.repository.layout;version=${project.version},
+ org.apache.archiva.repository.scanner;version=${project.version},
+ org.apache.archiva.transaction;version=${project.version},
+ org.apache.commons.io;version="[1.4,2)",
+ org.springframework*;version="[3,4)",
+ org.apache.maven.artifact*,
+ org.apache.maven.model*,
+ org.codehaus.plexus.digest,
+ org.codehaus.plexus.util*,
+ org.slf4j;resolution:=optional
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
<pluginManagement>
<plugins>
<plugin>
diff --git a/archiva-modules/archiva-base/archiva-indexer/pom.xml b/archiva-modules/archiva-base/archiva-indexer/pom.xml
index 426f6d34e..c589f4e8d 100644
--- a/archiva-modules/archiva-base/archiva-indexer/pom.xml
+++ b/archiva-modules/archiva-base/archiva-indexer/pom.xml
@@ -26,6 +26,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>archiva-indexer</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Base :: Indexer</name>
<dependencies>
@@ -163,6 +164,32 @@
</pluginManagement>
<plugins>
<plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.indexer</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.indexer.*;version=${project.version};-split-package:=merge-first
+ </Export-Package>
+ <Import-Package>
+ javax.annotation,
+ javax.inject,
+ com.google.common.io,
+ org.apache.archiva.admin.model*;version=${project.version},
+ org.apache.archiva.common.plexusbridge;version=${project.version},
+ org.apache.commons.io;version="[1.4,2)",
+ org.apache.commons.lang*;version="[2.4,3)",
+ org.apache.lucene*;version="[3,4)",
+ org.springframework*;version="[3,4)",
+ org.apache.maven.index*,
+ org.slf4j;resolution:=optional
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
diff --git a/archiva-modules/archiva-base/archiva-model/pom.xml b/archiva-modules/archiva-base/archiva-model/pom.xml
index eeb02c513..ad2ba2df1 100755
--- a/archiva-modules/archiva-base/archiva-model/pom.xml
+++ b/archiva-modules/archiva-base/archiva-model/pom.xml
@@ -26,6 +26,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>archiva-model</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Base :: Model</name>
<dependencies>
<dependency>
@@ -85,6 +86,23 @@
</instrumentation>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.model</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.model;version=${project.version}
+ </Export-Package>
+ <Import-Package>
+ org.apache.archiva.common.utils;version=${project.version},
+ org.apache.commons.lang;version="[2.4,3)"
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
</plugins>
</build>
</project>
diff --git a/archiva-modules/archiva-base/archiva-plexus-bridge/pom.xml b/archiva-modules/archiva-base/archiva-plexus-bridge/pom.xml
index 0a20fcd39..78d1b10f2 100644
--- a/archiva-modules/archiva-base/archiva-plexus-bridge/pom.xml
+++ b/archiva-modules/archiva-base/archiva-plexus-bridge/pom.xml
@@ -26,6 +26,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>archiva-plexus-bridge</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Base :: Plexus Bridge</name>
<dependencies>
@@ -64,4 +65,34 @@
</exclusions>
</dependency>
</dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.common.plexusbridge</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.common.plexusbridge;version=${project.version}
+ </Export-Package>
+ <Import-Package>
+ javax.annotation,
+ javax.inject,
+ org.codehaus.plexus,
+ org.codehaus.plexus.classworlds*,
+ org.codehaus.plexus.component.repository.exception,
+ org.codehaus.plexus.digest,
+ org.springframework.stereotype,
+ org.apache.maven.index.context;resolution:=optional,
+ org.slf4j;resolution:=optional
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
diff --git a/archiva-modules/archiva-base/archiva-policies/pom.xml b/archiva-modules/archiva-base/archiva-policies/pom.xml
index e8600a0e4..fc6efe90e 100644
--- a/archiva-modules/archiva-base/archiva-policies/pom.xml
+++ b/archiva-modules/archiva-base/archiva-policies/pom.xml
@@ -26,6 +26,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>archiva-policies</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Base :: Policies</name>
<dependencies>
<dependency>
@@ -107,6 +108,28 @@
</systemPropertyVariables>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.policies</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.policies*;version=${project.version}
+ </Export-Package>
+ <Import-Package>
+ javax.inject,
+ org.apache.archiva.checksum;version=${project.version},
+ org.apache.archiva.common*;version=${project.version},
+ org.apache.commons.lang;version="[2,3)",
+ org.springframework.stereotype;version="[3,4)",
+ org.codehaus.plexus.cache,
+ org.slf4j;resolution:=optional
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
</plugins>
<pluginManagement>
<plugins>
diff --git a/archiva-modules/archiva-base/archiva-proxy-common/pom.xml b/archiva-modules/archiva-base/archiva-proxy-common/pom.xml
index f84335d7d..7101710b5 100644
--- a/archiva-modules/archiva-base/archiva-proxy-common/pom.xml
+++ b/archiva-modules/archiva-base/archiva-proxy-common/pom.xml
@@ -25,6 +25,7 @@
<version>1.4-M2-SNAPSHOT</version>
</parent>
<artifactId>archiva-proxy-common</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Base :: Proxy Common</name>
<dependencies>
<dependency>
@@ -61,4 +62,29 @@
<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.proxy.common</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.proxy.common;version=${project.version}
+ </Export-Package>
+ <Import-Package>
+ javax.inject,
+ org.apache.archiva.common.plexusbridge;version=${project.version},
+ org.apache.commons.lang;version="[2.4,3)",
+ org.springframework.stereotype;version="[3,4)",
+ org.apache.maven.wagon*,
+ org.slf4j;resolution:=optional
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git a/archiva-modules/archiva-base/archiva-proxy/pom.xml b/archiva-modules/archiva-base/archiva-proxy/pom.xml
index 62e485ed2..942da4a43 100644
--- a/archiva-modules/archiva-base/archiva-proxy/pom.xml
+++ b/archiva-modules/archiva-base/archiva-proxy/pom.xml
@@ -26,6 +26,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>archiva-proxy</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Base :: Proxy</name>
<dependencies>
<dependency>
@@ -152,6 +153,43 @@
<build>
<plugins>
<plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.proxy</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.proxy;version=${project.version}
+ </Export-Package>
+ <Import-Package>
+ javax.annotation,
+ javax.inject,
+ com.google.common.collect,
+ org.apache.archiva.admin.model.beans;version=${project.version},
+ org.apache.archiva.configuration;version=${project.version},
+ org.apache.archiva.model;version=${project.version},
+ org.apache.archiva.policies*;version=${project.version},
+ org.apache.archiva.proxy.common;version=${project.version},
+ org.apache.archiva.repository*;version=${project.version},
+ org.apache.archiva.scheduler*;version=${project.version},
+ org.apache.commons.collections;version="[3.2,4)",
+ org.apache.commons.io;version="[1.4,2)",
+ org.apache.commons.lang;version="[2.4,3)",
+ org.springframework.stereotype;version="[3,4)",
+ org.codehaus.plexus.registry,
+ org.codehaus.plexus.taskqueue,
+ org.codehaus.plexus.util,
+ org.apache.maven.wagon,
+ org.apache.maven.wagon.authentication,
+ org.apache.maven.wagon.proxy,
+ org.apache.maven.wagon.repository,
+ org.slf4j;resolution:=optional
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/pom.xml b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/pom.xml
index f27fc91d1..77a776831 100644
--- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/pom.xml
+++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/pom.xml
@@ -26,6 +26,7 @@
<version>1.4-M2-SNAPSHOT</version>
</parent>
<artifactId>archiva-repository-admin-api</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Base :: Repository Admin Api</name>
<dependencies>
<dependency>
@@ -83,6 +84,26 @@
<build>
<plugins>
<plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.repository.admin.api</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.admin.model*;version=${project.version}
+ </Export-Package>
+ <Import-Package>
+ javax.xml.bind.annotation,
+ org.apache.commons.collections;version="[3.2,4)",
+ org.apache.commons.lang;version="[2.4,3)",
+ org.codehaus.plexus.redback.users,
+ org.apache.maven.index.context;resolution:=optional
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml
index 4e4524e2d..1d0f5020c 100644
--- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml
+++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml
@@ -26,6 +26,7 @@
<version>1.4-M2-SNAPSHOT</version>
</parent>
<artifactId>archiva-repository-admin-default</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Base :: Repository Admin Default</name>
<dependencies>
<dependency>
@@ -205,6 +206,44 @@
<build>
<plugins>
<plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.repository.admin.default</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.admin.repository*;version=${project.version}
+ </Export-Package>
+ <Import-Package>
+ javax.annotation,
+ javax.inject,
+ net.sf.beanlib.provider.replicator,
+ org.apache.archiva.admin.model*;version=${project.version},
+ org.apache.archiva.audit;version=${project.version},
+ org.apache.archiva.common.plexusbridge;version=${project.version},
+ org.apache.archiva.configuration*;version=${project.version},
+ org.apache.archiva.metadata*;version=${project.version},
+ org.apache.archiva.scheduler*;version=${project.version},
+ org.apache.commons.collections;version="[3.2,4)",
+ org.apache.commons.io;version="[1.4,2)",
+ org.apache.commons.lang*;version="[2.4,3)",
+ org.apache.commons.validator;version="[1.3,2)",
+ org.apache.http*;version="[4,5)",
+ org.springframework*;version="[3,4)",
+ org.apache.maven.index*,
+ org.apache.maven.wagon*,
+ org.codehaus.plexus.redback.role,
+ org.codehaus.plexus.redback.users,
+ org.codehaus.plexus.registry,
+ org.codehaus.plexus.taskqueue,
+ org.codehaus.redback.components.scheduler,
+ org.slf4j;resolution:=optional
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
diff --git a/archiva-modules/archiva-base/archiva-repository-layer/pom.xml b/archiva-modules/archiva-base/archiva-repository-layer/pom.xml
index 5256cfbe2..e1289172b 100644
--- a/archiva-modules/archiva-base/archiva-repository-layer/pom.xml
+++ b/archiva-modules/archiva-base/archiva-repository-layer/pom.xml
@@ -26,6 +26,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>archiva-repository-layer</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Base :: Repository Interface Layer</name>
<dependencies>
<dependency>
@@ -78,6 +79,41 @@
<build>
<plugins>
<plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.repository.layer</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.repository;version=${project.version};-split-package:=merge-first,
+ org.apache.archiva.repository.connector;version=${project.version};-split-package:=merge-first,
+ org.apache.archiva.repository.content;version=${project.version};-split-package:=merge-first,
+ org.apache.archiva.repository.layout;version=${project.version};-split-package:=merge-first,
+ org.apache.archiva.repository.metadata;version=${project.version};-split-package:=merge-first
+ </Export-Package>
+ <Import-Package>
+ javax.annotation,
+ javax.inject,
+ org.apache.archiva.model*;version=${project.version},
+ org.apache.archiva.admin.model*;version=${project.version},
+ org.apache.archiva.common*;version=${project.version},
+ org.apache.archiva.checksum;version=${project.version},
+ org.apache.archiva.configuration;version=${project.version},
+ org.apache.archiva.metadata*;version=${project.version},
+ org.apache.archiva.xml;version=${project.version},
+ org.apache.commons.collections;version="[3.2,4)",
+ org.apache.commons.io;version="[1.4,2)",
+ org.apache.commons.lang*;version="[2.4,3)",
+ org.springframework*;version="[3,4)",
+ org.dom4j;version="[1.6,2)",
+ org.codehaus.plexus.registry,
+ org.slf4j;resolution:=optional
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
diff --git a/archiva-modules/archiva-base/archiva-repository-scanner/pom.xml b/archiva-modules/archiva-base/archiva-repository-scanner/pom.xml
index 330e95b9e..a6f4621d4 100644
--- a/archiva-modules/archiva-base/archiva-repository-scanner/pom.xml
+++ b/archiva-modules/archiva-base/archiva-repository-scanner/pom.xml
@@ -26,6 +26,7 @@
<version>1.4-M2-SNAPSHOT</version>
</parent>
<artifactId>archiva-repository-scanner</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Base :: Repository Scanner</name>
<dependencies>
<dependency>
@@ -59,6 +60,33 @@
</dependency>
</dependencies>
<build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.repository.scanner</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.repository.scanner*;version=${project.version}
+ </Export-Package>
+ <Import-Package>
+ javax.inject,
+ org.apache.archiva.admin.model*;version=${project.version},
+ org.apache.archiva.common*;version=${project.version},
+ org.apache.archiva.configuration;version=${project.version},
+ org.apache.archiva.consumers*;version=${project.version},
+ org.apache.commons.collections*;version="[3.2,4)",
+ org.apache.commons.lang;version="[2.4,3)",
+ org.springframework*;version="[3,4)",
+ org.codehaus.plexus.util,
+ org.slf4j;resolution:=optional
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
<pluginManagement>
<plugins>
<plugin>
diff --git a/archiva-modules/archiva-base/archiva-security-common/pom.xml b/archiva-modules/archiva-base/archiva-security-common/pom.xml
index ef3241db8..bbfd3e2ab 100644
--- a/archiva-modules/archiva-base/archiva-security-common/pom.xml
+++ b/archiva-modules/archiva-base/archiva-security-common/pom.xml
@@ -26,5 +26,26 @@
</parent>
<groupId>org.apache.archiva</groupId>
<artifactId>archiva-security-common</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Base :: Security Common</name>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.security.common</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.security.common;version=${project.version};-split-package:=merge-first
+ </Export-Package>
+ <Import-Package>
+
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git a/archiva-modules/archiva-base/archiva-transaction/pom.xml b/archiva-modules/archiva-base/archiva-transaction/pom.xml
index a6465856b..d685983c3 100644
--- a/archiva-modules/archiva-base/archiva-transaction/pom.xml
+++ b/archiva-modules/archiva-base/archiva-transaction/pom.xml
@@ -25,6 +25,7 @@
<version>1.4-M2-SNAPSHOT</version>
</parent>
<artifactId>archiva-transaction</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Base :: Transactions</name>
<description>API for managing transaction.</description>
<dependencies>
@@ -61,4 +62,25 @@
<scope>runtime</scope>
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.transaction</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.transaction;version=${project.version};-split-package:=merge-first
+ </Export-Package>
+ <Import-Package>
+ org.apache.commons.io;version="[1.4,2)",
+ org.codehaus.plexus.digest
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git a/archiva-modules/archiva-base/archiva-xml-tools/pom.xml b/archiva-modules/archiva-base/archiva-xml-tools/pom.xml
index fa54cdc1e..71d29cfe6 100644
--- a/archiva-modules/archiva-base/archiva-xml-tools/pom.xml
+++ b/archiva-modules/archiva-base/archiva-xml-tools/pom.xml
@@ -26,6 +26,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>archiva-xml-tools</artifactId>
+ <packaging>bundle</packaging>
<name>Archiva Base :: XML Tools</name>
<dependencies>
<dependency>
@@ -54,6 +55,28 @@
</dependency>
</dependencies>
<build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.xml.tools</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.xml;version=${project.version}
+ </Export-Package>
+ <Import-Package>
+ org.apache.archiva.common;version=${project.version},
+ org.apache.commons.collections;version="[3.2,4)",
+ org.apache.commons.io;version="[1.4,2)",
+ org.apache.commons.lang;version="[2.4,3)",
+ org.dom4j*;version="[1.6,2)"
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
<pluginManagement>
<plugins>
<plugin>