AMQ-1429: Package ActiveMQ as OSGi bundles instead of plain jars

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@577760 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Guillaume Nodet 2007-09-20 14:16:12 +00:00
parent 00895cecc1
commit 8032375531
3 changed files with 48 additions and 0 deletions

View File

@ -29,9 +29,26 @@
</parent>
<artifactId>activemq-core</artifactId>
<packaging>bundle</packaging>
<name>ActiveMQ :: Core</name>
<description>The ActiveMQ Message Broker and Client implementations</description>
<properties>
<activemq.osgi.import.pkg>
javax.jmdns*;resolution:=optional,
org.apache.activeio*;resolution:=optional,
org.apache.commons.pool*;resolution:=optional,
org.apache.derby*;resolution:=optional,
org.apache.tools.ant*;resolution:=optional,
org.apache.xbean*;resolution:=optional,
org.apache.xpath*;resolution:=optional,
org.codehaus.jam*;resolution:=optional,
org.springframework*;resolution:=optional,
org.w3c.dom.traversal*;resolution:=optional,
*
</activemq.osgi.import.pkg>
</properties>
<dependencies>
<!-- =============================== -->

View File

@ -31,9 +31,14 @@
</parent>
<artifactId>activemq-jaas</artifactId>
<packaging>bundle</packaging>
<name>ActiveMQ :: JAAS</name>
<description>A collection of generic JAAS Login Modules</description>
<properties>
<activemq.osgi.import.pkg>*</activemq.osgi.import.pkg>
</properties>
<build>
<plugins>

26
pom.xml
View File

@ -74,9 +74,18 @@
<xmlpull-version>1.1.3.4d_b4_min</xmlpull-version>
<xstream-version>1.1.2</xstream-version>
<xbean-version>3.2-SNAPSHOT</xbean-version>
<felix-version>1.0.0</felix-version>
<dist-repo-url>scpexe://people.apache.org/www/people.apache.org/repo/m2-incubating-repository</dist-repo-url>
<m1-dist-repo-url>scpexe://people.apache.org/www/people.apache.org/repo/m1-snapshot-repository</m1-dist-repo-url>
<site-repo-url>scpexe://people.apache.org/www/activemq.apache.org/maven/</site-repo-url>
<!-- OSGi bundles properties -->
<activemq.osgi.import.pkg>*</activemq.osgi.import.pkg>
<activemq.osgi.export.pkg>org.apache.activemq*</activemq.osgi.export.pkg>
<activemq.osgi.private.pkg>!*</activemq.osgi.private.pkg>
<activemq.osgi.export>${activemq.osgi.export.pkg}*;version=${activemq.osgi.export.version}</activemq.osgi.export>
<activemq.osgi.export.version>${project.version}</activemq.osgi.export.version>
<activemq.osgi.import>${activemq.osgi.import.pkg}</activemq.osgi.import>
<activemq.osgi.symbolic.name>${groupId}.${artifactId}</activemq.osgi.symbolic.name>
</properties>
<prerequisites>
<maven>2.0.4</maven>
@ -978,6 +987,23 @@
-->
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>${felix-version}</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-Name>${artifactId}</Bundle-Name>
<Bundle-SymbolicName>${activemq.osgi.symbolic.name}</Bundle-SymbolicName>
<Export-Package>${activemq.osgi.export}</Export-Package>
<Import-Package>${activemq.osgi.import}</Import-Package>
<Private-Package>${activemq.osgi.private.pkg}</Private-Package>
<Implementation-Title>Apache ActiveMQ</Implementation-Title>
<Implementation-Version>${project.version}</Implementation-Version>
</instructions>
</configuration>
</plugin>
<plugin>
<artifactId>maven-one-plugin</artifactId>