|
|
c0e520 |
From d71aa7acc93b944b159ac63f85d9ba1a566f5a8d Mon Sep 17 00:00:00 2001
|
|
|
c0e520 |
From: Mikolaj Izdebski <mizdebsk@redhat.com>
|
|
|
c0e520 |
Date: Tue, 29 Jul 2014 09:00:03 +0200
|
|
|
c0e520 |
Subject: [PATCH 1/2] Generate different Bundle-SymbolicName for different JARs
|
|
|
c0e520 |
|
|
|
c0e520 |
---
|
|
|
c0e520 |
pom.xml | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
c0e520 |
1 file changed, 55 insertions(+)
|
|
|
c0e520 |
|
|
|
c0e520 |
diff --git a/pom.xml b/pom.xml
|
|
|
c0e520 |
index cdad31c..5707595 100644
|
|
|
c0e520 |
--- a/pom.xml
|
|
|
c0e520 |
+++ b/pom.xml
|
|
|
c0e520 |
@@ -179,6 +179,52 @@ under the License.
|
|
|
c0e520 |
<build>
|
|
|
c0e520 |
<plugins>
|
|
|
c0e520 |
|
|
|
c0e520 |
+ <plugin>
|
|
|
c0e520 |
+ <groupId>org.apache.felix</groupId>
|
|
|
c0e520 |
+ <artifactId>maven-bundle-plugin</artifactId>
|
|
|
c0e520 |
+ <executions>
|
|
|
c0e520 |
+ <execution>
|
|
|
c0e520 |
+ <id>tests-bundle-manifest</id>
|
|
|
c0e520 |
+ <phase>process-classes</phase>
|
|
|
c0e520 |
+ <goals>
|
|
|
c0e520 |
+ <goal>manifest</goal>
|
|
|
c0e520 |
+ </goals>
|
|
|
c0e520 |
+ <configuration>
|
|
|
c0e520 |
+ <manifestLocation>${project.build.directory}/osgi-tests</manifestLocation>
|
|
|
c0e520 |
+ <instructions>
|
|
|
c0e520 |
+ <Bundle-SymbolicName>${commons.osgi.symbolicName}.tests</Bundle-SymbolicName>
|
|
|
c0e520 |
+ </instructions>
|
|
|
c0e520 |
+ </configuration>
|
|
|
c0e520 |
+ </execution>
|
|
|
c0e520 |
+ <execution>
|
|
|
c0e520 |
+ <id>api-bundle-manifest</id>
|
|
|
c0e520 |
+ <phase>process-classes</phase>
|
|
|
c0e520 |
+ <goals>
|
|
|
c0e520 |
+ <goal>manifest</goal>
|
|
|
c0e520 |
+ </goals>
|
|
|
c0e520 |
+ <configuration>
|
|
|
c0e520 |
+ <manifestLocation>${project.build.directory}/osgi-api</manifestLocation>
|
|
|
c0e520 |
+ <instructions>
|
|
|
c0e520 |
+ <Bundle-SymbolicName>${commons.osgi.symbolicName}.api</Bundle-SymbolicName>
|
|
|
c0e520 |
+ </instructions>
|
|
|
c0e520 |
+ </configuration>
|
|
|
c0e520 |
+ </execution>
|
|
|
c0e520 |
+ <execution>
|
|
|
c0e520 |
+ <id>adapters-bundle-manifest</id>
|
|
|
c0e520 |
+ <phase>process-classes</phase>
|
|
|
c0e520 |
+ <goals>
|
|
|
c0e520 |
+ <goal>manifest</goal>
|
|
|
c0e520 |
+ </goals>
|
|
|
c0e520 |
+ <configuration>
|
|
|
c0e520 |
+ <manifestLocation>${project.build.directory}/osgi-adapters</manifestLocation>
|
|
|
c0e520 |
+ <instructions>
|
|
|
c0e520 |
+ <Bundle-SymbolicName>${commons.osgi.symbolicName}.adapters</Bundle-SymbolicName>
|
|
|
c0e520 |
+ </instructions>
|
|
|
c0e520 |
+ </configuration>
|
|
|
c0e520 |
+ </execution>
|
|
|
c0e520 |
+ </executions>
|
|
|
c0e520 |
+ </plugin>
|
|
|
c0e520 |
+
|
|
|
c0e520 |
|
|
|
c0e520 |
- We want to create four jarfiles from this project: normal, tests, api
|
|
|
c0e520 |
- and adapters. The first two are handled by the normal jar:jar and
|
|
|
c0e520 |
@@ -202,6 +248,9 @@ under the License.
|
|
|
c0e520 |
</goals>
|
|
|
c0e520 |
<configuration>
|
|
|
c0e520 |
<jarName>commons-logging</jarName>
|
|
|
c0e520 |
+ <archive>
|
|
|
c0e520 |
+ <manifestFile>${project.build.directory}/osgi-tests/MANIFEST.MF</manifestFile>
|
|
|
c0e520 |
+ </archive>
|
|
|
c0e520 |
</configuration>
|
|
|
c0e520 |
</execution>
|
|
|
c0e520 |
|
|
|
c0e520 |
@@ -213,6 +262,9 @@ under the License.
|
|
|
c0e520 |
</goals>
|
|
|
c0e520 |
<configuration>
|
|
|
c0e520 |
<jarName>${project.artifactId}-api-${project.version}</jarName>
|
|
|
c0e520 |
+ <archive>
|
|
|
c0e520 |
+ <manifestFile>${project.build.directory}/osgi-api/MANIFEST.MF</manifestFile>
|
|
|
c0e520 |
+ </archive>
|
|
|
c0e520 |
<includes>
|
|
|
c0e520 |
<include>org/apache/commons/logging/*.class</include>
|
|
|
c0e520 |
<include>org/apache/commons/logging/impl/LogFactoryImpl*.class</include>
|
|
|
c0e520 |
@@ -237,6 +289,9 @@ under the License.
|
|
|
c0e520 |
</goals>
|
|
|
c0e520 |
<configuration>
|
|
|
c0e520 |
<jarName>${project.artifactId}-adapters-${project.version}</jarName>
|
|
|
c0e520 |
+ <archive>
|
|
|
c0e520 |
+ <manifestFile>${project.build.directory}/osgi-adapters/MANIFEST.MF</manifestFile>
|
|
|
c0e520 |
+ </archive>
|
|
|
c0e520 |
<includes>
|
|
|
c0e520 |
<include>org/apache/commons/logging/impl/**.class</include>
|
|
|
c0e520 |
<include>META-INF/LICENSE.txt</include>
|
|
|
c0e520 |
--
|
|
|
c0e520 |
2.5.5
|
|
|
c0e520 |
|