[Arakhnę-Dev] [163] Change pom to integrate osgi bundle

[ Thread Index | Date Index | More arakhne.org/dev Archives ]


Revision: 163
Author:   labset
Date:     2010-07-16 18:09:26 +0200 (Fri, 16 Jul 2010)
Log Message:
-----------
Change pom to integrate osgi bundle

Modified Paths:
--------------
    trunk/arakhneVmutils/java/pom.xml

Modified: trunk/arakhneVmutils/java/pom.xml
===================================================================
--- trunk/arakhneVmutils/java/pom.xml	2010-07-12 14:20:05 UTC (rev 162)
+++ trunk/arakhneVmutils/java/pom.xml	2010-07-16 16:09:26 UTC (rev 163)
@@ -15,31 +15,33 @@
 	</parent>
 
 	<artifactId>arakhneVmutils-java</artifactId>
-	<packaging>jar</packaging>
+	<packaging>bundle</packaging>
 	<groupId>org.arakhne.afc</groupId>
 	<version>5.0-SNAPSHOT</version>
 	<name>${pom.artifactId}</name>
 
 	<properties>
 		<manifest.file>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifest.file>
+		<felix.main.version>3.0.0</felix.main.version>
 	</properties>
 
 	<!-- ======================================= -->
 	<!-- ====       Project Information      === -->
 	<!-- ======================================= -->
 
-	<dependencies>
-		<dependency>
-			<groupId>junit</groupId>
-			<artifactId>junit</artifactId>
-			<scope>test</scope>
-		</dependency>
-	</dependencies>
-
 	<build>
 		<plugins>
 			<plugin>
 				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-compiler-plugin</artifactId>
+				<configuration>
+					<source>1.6</source>
+					<target>1.6</target>
+					<encoding>UTF-8</encoding>
+				</configuration>
+			</plugin>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-jar-plugin</artifactId>
 				<configuration>
 					<archive>
@@ -54,6 +56,8 @@
 			<plugin>
 				<groupId>org.apache.felix</groupId>
 				<artifactId>maven-bundle-plugin</artifactId>
+				<version>2.1.0</version>
+				<extensions>true</extensions>
 				<executions>
 					<execution>
 						<id>bundle-manifest</id>
@@ -64,23 +68,64 @@
 					</execution>
 				</executions>
 				<configuration>
+
+
+
 					<archive>
 						<manifestFile>${manifest.file}</manifestFile>
-						<manifest>
+						<!-- <manifest>
 							<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
 							<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
-						</manifest>
+						</manifest> -->
 					</archive>
 
 					<instructions>
+					
 						<Export-Package>org.arakhne.vmutil.*</Export-Package>
 						<Bundle-Name>arakhneVmutils</Bundle-Name>
 						<Bundle-SymbolicName>org.arakhne.afc.arakhneVmutils</Bundle-SymbolicName>
-						<Bundle-Classpath>arakhneVmutils-${pom.version}.jar</Bundle-Classpath>
+						<!-- <Bundle-Classpath>arakhneVmutils-${pom.version}.jar</Bundle-Classpath> -->
+						<Bundle-ClassPath>.,{maven-dependencies}</Bundle-ClassPath>						
+						<Import-Package>
+							!sun.reflect, *;resolution:=optional
+							!sun.misc, *;resolution:=optional
+							!sun, *;resolution:=optional
+						</Import-Package>
+						<Embed-Dependency>*;scope=compile|runtime;inline=false</Embed-Dependency>
 					</instructions>
 				</configuration>
 			</plugin>
 		</plugins>
 	</build>
 
+
+	<!-- ======================================== -->
+	<!-- ====       Project Dependencies      === -->
+	<!-- ======================================== -->
+
+
+	<dependencies>
+
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+			<scope>test</scope>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.felix</groupId>
+			<artifactId>org.osgi.core</artifactId>
+			<version>1.4.0</version>
+			<scope>provided</scope>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.felix</groupId>
+			<artifactId>org.apache.felix.main</artifactId>
+			<version>${felix.main.version}</version>
+			<scope>provided</scope>
+		</dependency>
+
+	</dependencies>
+
 </project>


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/