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