Several questions:
1) What's going to happen if a 3rd party dependency is not OSGi bundled?
2) How does it deal with "Require-Bundle"? It seems that it can populate
"Import-Package" automatically.
3) Can you post a sample MANIFEST.MF generated by the plugin?
I found this document useful:
http://docs.safehaus.org/display/OSGI/OSGi+Plugin+for+Maven+2.0
Thanks,
Raymond
----- Original Message -----
From: "Jeremy Boynes" <[EMAIL PROTECTED]>
To: <tuscany-dev@ws.apache.org>
Sent: Friday, July 21, 2006 3:00 PM
Subject: Re: Using osgi plugin to generate manifests
Sometimes they work and sometimes they don't ... let's try this
Index: pom.xml
===================================================================
--- pom.xml (revision 424385)
+++ pom.xml (working copy)
@@ -18,13 +18,19 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.osoa</groupId>
<artifactId>sca-api-r0.95</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>osgi-bundle</packaging>
<name>SCA API</name>
- <version>1.0-SNAPSHOT</version>
+ <description>API classes for the Service Component Architecture</
description>
<prerequisites>
<maven>2.0.4</maven>
</prerequisites>
+ <organization>
+ <name>The Apache Software Foundation</name>
+ <url>http://www.apache.org</url>
+ </organization>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
@@ -40,9 +46,9 @@
<url>scp:///www/people.apache.org/repo/m2-snapshot-
repository</url>
</repository>
<snapshotRepository>
- <id>apache-snapshot-repository</id>
- <name>Apache SNAPSHOT Repository</name>
- <url>scp:///www/people.apache.org/repo/m2-snapshot-
repository</url>
+ <id>apache-snapshot-repository</id>
+ <name>Apache SNAPSHOT Repository</name>
+ <url>scp:///www/people.apache.org/repo/m2-snapshot-
repository</url>
</snapshotRepository>
</distributionManagement>
@@ -61,6 +67,13 @@
</dependency>
</dependencies>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>apache-snapshot-repository</id>
+ <name>Apache SNAPSHOT Repository</name>
+ <url>http://people.apache.org/repo/m2-snapshot-
repository</url>
+ </pluginRepository>
+ </pluginRepositories>
<build>
<plugins>
<plugin>
@@ -72,12 +85,18 @@
</configuration>
</plugin>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
+ <groupId>org.apache.felix.plugins</groupId>
+ <artifactId>maven-osgi-plugin</artifactId>
+ <extensions>true</extensions>
<configuration>
- <archive>
- <manifestFile>src/main/resources/META-INF/
MANIFEST.MF</manifestFile>
- </archive>
+ <osgiManifest>
+ <bundleName>${pom.name}</bundleName>
+ <bundleDescription>${pom.description}</
bundleDescription>
+ <bundleVendor>${pom.organization.name}</
bundleVendor>
+ <bundleLocalization>plugin</bundleLocalization>
+ <bundleSymbolicName>org.osoa.sca</
bundleSymbolicName>
+ <exportPackage>org.osoa.sca,
org.osoa.sca.annotations</exportPackage>
+ </osgiManifest>
</configuration>
</plugin>
</plugins>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]