Ported these projects to use the Bundle Plugin.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@548447 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index 9c3b93b..f216911 100644
--- a/pom.xml
+++ b/pom.xml
@@ -131,6 +131,8 @@
<module>main</module>
<module>shell</module>
<module>shell.tui</module>
+ <module>shell.gui</module>
+ <module>shell.gui.plugin</module>
<module>bundlerepository</module>
<module>log</module>
<module>eventadmin</module>
@@ -139,6 +141,8 @@
<module>configadmin</module>
<module>metatype</module>
<module>dependencymanager</module>
+ <module>servicebinder</module>
+ <module>wireadmin</module>
<module>ipojo/core</module>
<module>ipojo/metadata</module>
@@ -154,14 +158,10 @@
</property>
</activation>
<modules>
- <module>shell.gui</module>
- <module>shell.gui.plugin</module>
<module>org.apache.felix.daemon</module>
<module>examples</module>
- <module>servicebinder</module>
- <module>wireadmin</module>
<module>upnp.extra</module>
<module>upnp.basedriver</module>
<module>upnp.tester</module>
diff --git a/servicebinder/pom.xml b/servicebinder/pom.xml
index 978a3df..6ea4985 100644
--- a/servicebinder/pom.xml
+++ b/servicebinder/pom.xml
@@ -5,7 +5,7 @@
<version>0.9.0-incubator-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
- <packaging>osgi-bundle</packaging>
+ <packaging>bundle</packaging>
<name>Apache Felix Service Binder</name>
<artifactId>org.apache.felix.servicebinder</artifactId>
<dependencies>
@@ -24,38 +24,28 @@
<build>
<plugins>
<plugin>
- <groupId>org.apache.felix.plugins</groupId>
- <artifactId>maven-osgi-plugin</artifactId>
- <version>${pom.version}</version>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
- <osgiManifest>
- <entries>
- <property>
- <name>Metadata-Location</name>
- <value>metadata.xml</value>
- </property>
- </entries>
- <bundleSymbolicName>${pom.artifactId}</bundleSymbolicName>
- <bundleName>Service Binder</bundleName>
- <bundleVendor>Apache Software Foundation</bundleVendor>
- <!--<bundleVersion>1.1.2</bundleVersion>-->
- <bundleDescription>
+ <instructions>
+ <Bundle-Name>Service Binder</Bundle-Name>
+ <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+ <Bundle-Vendor>Apache Felix</Bundle-Vendor>
+ <!--<Bundle-Version>1.1.2</Bundle-Version>-->
+ <Bundle-Description>
This bundle provides a mechanism to automate service dependency management.
- </bundleDescription>
- <bundleActivator>
+ </Bundle-Description>
+ <Bundle-Activator>
org.apache.felix.servicebinder.impl.Activator
- </bundleActivator>
- <exportPackage>
+ </Bundle-Activator>
+ <Export-Package>
org.apache.felix.servicebinder; specification-version="1.1.0",org.apache.felix.servicebinder.architecture; specification-version="1.1.0"
- </exportPackage>
- <importPackage>
- org.osgi.framework
- </importPackage>
- <metadataLocation>
- metadata.xml
- </metadataLocation>
- </osgiManifest>
+ </Export-Package>
+ <Private-Package>org.apache.felix.servicebinder.*,org.kxml2.*,org.xmlpull.*</Private-Package>
+ <Import-Package>!org.apache.felix.servicebinder.*,*</Import-Package>
+ <Metadata-Location>metadata.xml</Metadata-Location>
+ </instructions>
</configuration>
</plugin>
</plugins>
diff --git a/shell.gui.plugin/pom.xml b/shell.gui.plugin/pom.xml
index 0aa755c..234204d 100644
--- a/shell.gui.plugin/pom.xml
+++ b/shell.gui.plugin/pom.xml
@@ -5,7 +5,7 @@
<version>0.9.0-incubator-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
- <packaging>osgi-bundle</packaging>
+ <packaging>bundle</packaging>
<name>Apache Felix Shell GUI Plugin</name>
<artifactId>org.apache.felix.shell.gui.plugin</artifactId>
<dependencies>
@@ -37,22 +37,19 @@
<build>
<plugins>
<plugin>
- <groupId>org.apache.felix.plugins</groupId>
- <artifactId>maven-osgi-plugin</artifactId>
- <version>${pom.version}</version>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
- <osgiManifest>
- <bundleName>ShellGUIPlugin</bundleName>
- <bundleDescription>A simple set of plugins for the ShellGUI bundle.</bundleDescription>
- <bundleActivator>auto-detect</bundleActivator>
- <bundleDocUrl>http://oscar-osgi.sf.net/obr2/${pom.artifactId}/</bundleDocUrl>
- <bundleUrl>http://oscar-osgi.sf.net/obr2/${pom.artifactId}/${pom.artifactId}-${pom.version}.jar</bundleUrl>
- <bundleSource>http://oscar-osgi.sf.net/obr2/${pom.artifactId}/${pom.artifactId}-${pom.version}-src.jar</bundleSource>
- <bundleSymbolicName>${pom.artifactId}</bundleSymbolicName>
- <exportService>org.apache.felix.shell.gui.Plugin</exportService>
- <importService>org.apache.felix.shell.ShellService,org.apache.felix.bundlerepository.RepostioryAdmin</importService>
- </osgiManifest>
+ <instructions>
+ <Bundle-Name>ShellGUIPlugin</Bundle-Name>
+ <Bundle-Description>A simple set of plugins for the ShellGUI bundle.</Bundle-Description>
+ <Bundle-Activator>org.apache.felix.shell.gui.plugin.Activator</Bundle-Activator>
+ <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+ <Export-Service>org.apache.felix.shell.gui.Plugin</Export-Service>
+ <Import-Service>org.apache.felix.shell.ShellService,org.apache.felix.bundlerepository.RepostioryAdmin</Import-Service>
+ <Private-Package>org.apache.felix.shell.gui.plugin.*</Private-Package>
+ </instructions>
</configuration>
</plugin>
</plugins>
diff --git a/shell.gui/pom.xml b/shell.gui/pom.xml
index 10dc3d5..4aa0099 100644
--- a/shell.gui/pom.xml
+++ b/shell.gui/pom.xml
@@ -5,7 +5,7 @@
<version>0.9.0-incubator-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
- <packaging>osgi-bundle</packaging>
+ <packaging>bundle</packaging>
<name>Apache Felix Shell GUI</name>
<artifactId>org.apache.felix.shell.gui</artifactId>
<dependencies>
@@ -19,21 +19,18 @@
<build>
<plugins>
<plugin>
- <groupId>org.apache.felix.plugins</groupId>
- <artifactId>maven-osgi-plugin</artifactId>
- <version>${pom.version}</version>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
- <osgiManifest>
- <bundleName>ShellGUI</bundleName>
- <bundleDescription>A simple plugin-oriented GUI shell.</bundleDescription>
- <bundleActivator>auto-detect</bundleActivator>
- <bundleDocUrl>http://oscar-osgi.sf.net/obr2/${pom.artifactId}/</bundleDocUrl>
- <bundleUrl>http://oscar-osgi.sf.net/obr2/shellgui/${pom.artifactId}-${pom.version}.jar</bundleUrl>
- <bundleSource>http://oscar-osgi.sf.net/obr2/${pom.artifactId}/${pom.artifactId}-${pom.version}-src.jar</bundleSource>
- <bundleSymbolicName>${pom.artifactId}</bundleSymbolicName>
- <exportPackage>${pom.artifactId}; specification-version="1.0.0"</exportPackage>
- </osgiManifest>
+ <instructions>
+ <Bundle-Name>ShellGUI</Bundle-Name>
+ <Bundle-Description>A simple plugin-oriented GUI shell.</Bundle-Description>
+ <Bundle-Activator>org.apache.felix.shell.gui.impl.Activator</Bundle-Activator>
+ <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+ <Export-Package>org.apache.felix.shell.gui; specification-version="1.0.0"</Export-Package>
+ <Private-Package>org.apache.felix.shell.gui.impl</Private-Package>
+ </instructions>
</configuration>
</plugin>
</plugins>
diff --git a/wireadmin/pom.xml b/wireadmin/pom.xml
index fda5b67..259f9dd 100644
--- a/wireadmin/pom.xml
+++ b/wireadmin/pom.xml
@@ -5,8 +5,8 @@
<version>0.9.0-incubator-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
- <packaging>osgi-bundle</packaging>
- <name>Apache Felix WireAdmin</name>
+ <packaging>bundle</packaging>
+ <name>Apache Felix Wire Admin</name>
<artifactId>org.apache.felix.wireadmin</artifactId>
<dependencies>
<dependency>
@@ -25,25 +25,22 @@
<build>
<plugins>
<plugin>
- <groupId>org.apache.felix.plugins</groupId>
- <artifactId>maven-osgi-plugin</artifactId>
- <version>${pom.version}</version>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
- <osgiManifest>
- <bundleName>WireAdmin</bundleName>
- <bundleVendor>Apache Software Foundation</bundleVendor>
- <bundleDescription>
+ <instructions>
+ <Bundle-Name>WireAdmin</Bundle-Name>
+ <Bundle-Vendor>Apache Felix</Bundle-Vendor>
+ <Bundle-Description>
Implementation of the WireAdmin Service.
- </bundleDescription>
- <bundleActivator>
+ </Bundle-Description>
+ <Bundle-Activator>
org.apache.felix.wireadmin.Activator
- </bundleActivator>
- <bundleSymbolicName>org.apache.felix.wireadmin</bundleSymbolicName>
- <importPackage>
- org.osgi.framework, org.osgi.service.wireadmin; specification-version=1.0.0
- </importPackage>
- </osgiManifest>
+ </Bundle-Activator>
+ <Bundle-SymbolicName>org.apache.felix.wireadmin</Bundle-SymbolicName>
+ <Private-Package>org.apache.felix.wireadmin.*</Private-Package>
+ </instructions>
</configuration>
</plugin>
</plugins>