UPnP Base Driver now depends on the version 1.8.0-SNAPSHOT of the
CyberLink UPnP Stack
All the UPnP projects moved to the maven-bundle-plugin
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@569167 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom/pom.xml b/pom/pom.xml
index 95a7500..034f2c3 100644
--- a/pom/pom.xml
+++ b/pom/pom.xml
@@ -127,6 +127,12 @@
</property>
</activation>
<modules>
+ <module>../upnp.extra</module>
+ <module>../upnp.basedriver</module>
+ <module>../upnp.tester</module>
+ <module>../upnp.sample.tv</module>
+ <module>../upnp.sample.clock</module>
+ <module>../upnp.sample.binaryLight</module>
<module>../org.osgi.foundation</module>
<module>../javax.servlet</module>
<module>../org.osgi.core</module>
@@ -169,13 +175,6 @@
<modules>
<module>../org.apache.felix.daemon</module>
- <module>../upnp.extra</module>
- <module>../upnp.basedriver</module>
- <module>../upnp.tester</module>
- <module>../upnp.sample.tv</module>
- <module>../upnp.sample.clock</module>
- <module>../upnp.sample.binaryLight</module>
-
<!-- <module>tools/mangen</module> -->
diff --git a/upnp.basedriver/pom.xml b/upnp.basedriver/pom.xml
index a9da21d..25f8fb0 100644
--- a/upnp.basedriver/pom.xml
+++ b/upnp.basedriver/pom.xml
@@ -7,17 +7,17 @@
<relativePath>../pom/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
- <packaging>osgi-bundle</packaging>
+ <packaging>bundle</packaging>
<groupId>org.apache.felix</groupId>
<name>Apache Felix UPnP Base Driver</name>
<artifactId>org.apache.felix.upnp.basedriver</artifactId>
- <version>0.1.0-SNAPSHOT</version>
+ <version>0.2.0-SNAPSHOT</version>
<repositories>
<!-- For snapshots (no release jars or non-apache jars) -->
<repository>
- <id>domoware.isti.cnr.it</id>
- <name>DomoWare Repository for Missing Artifacts</name>
- <url>http://domoware.isti.cnr.it/maven2</url>
+ <id>cgupnpjava.sourceforge.net</id>
+ <name>CyberLink for Java repository</name>
+ <url>http://cgupnpjava.sourceforge.net/snapshots-repository/</url>
</repository>
</repositories> <!-- <url>http://maven.apache.org</url> -->
<dependencies>
@@ -40,38 +40,38 @@
<scope>provided</scope>
</dependency>
<dependency>
- <groupId>org-cybergarage</groupId>
- <artifactId>cyberlink-upnp-patched</artifactId>
- <version>1.7.2</version>
- <scope>provided</scope>
+ <groupId>org.cybergarage.cyberlink</groupId>
+ <artifactId>upnp-stack</artifactId>
+ <version>1.8.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
- <groupId>org.apache.felix.plugins</groupId>
- <artifactId>maven-osgi-plugin</artifactId>
- <version>0.9.0-SNAPSHOT</version>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
<extensions>true</extensions>
<configuration>
- <osgiManifest>
- <bundleName>UPnPBaseDriver</bundleName>
- <bundleVendor>Apache Software Foundation</bundleVendor>
- <bundleVersion>0.1.0</bundleVersion>
- <bundleDescription>
+ <instructions>
+ <Bundle-Name>${pom.name}</Bundle-Name>
+ <Bundle-Activator>org.apache.felix.upnp.basedriver.Activator</Bundle-Activator>
+ <Bundle-Vendor>Apache Software Foundation</Bundle-Vendor>
+ <Bundle-Version>0.2.0</Bundle-Version>
+ <Bundle-Author><![CDATA[Matteo Demuru <demuru@apache.org>,Francesco Furfari <furfari@apache.org>,Stefano "Kismet" Lenzi <lenzi@apache.org>]]></Bundle-Author>
+ <Bundle-Description>
A Bundle implementation of the UPnP Service Specification R4
- </bundleDescription>
- <bundleSymbolicName>org.apache.felix.upnp.basedriver</bundleSymbolicName>
- <bundleActivator>org.apache.felix.upnp.basedriver.Activator</bundleActivator>
- </osgiManifest>
- <manifestFile>src/main/resources/release/META-INF/Manifest.mf</manifestFile>
+ </Bundle-Description>
+ <Bundle-SymbolicName>org.apache.felix.upnp.basedriver</Bundle-SymbolicName>
+ <Export-Package>org.cybergarage.upnp</Export-Package>
+ <Import-Package>
+ org.apache.felix.upnp.extra.*, org.xml.sax.*, org.osgi.*, javax.*, org.w3c.*,
+ !org.apache.xerces.*, !org.kxml2.io, !org.xmlpull.v1
+ </Import-Package>
+ <Private-Package>org.apache.felix.upnp.basedriver.*,org.cybergarage.*</Private-Package>
+ </instructions>
</configuration>
</plugin>
</plugins>
- <resources>
- <resource>
- <directory>src/main/resources/release</directory>
- </resource>
- </resources>
</build>
</project>
diff --git a/upnp.basedriver/src/main/java/org/apache/felix/upnp/basedriver/Activator.java b/upnp.basedriver/src/main/java/org/apache/felix/upnp/basedriver/Activator.java
index fa62ceb..e37d516 100644
--- a/upnp.basedriver/src/main/java/org/apache/felix/upnp/basedriver/Activator.java
+++ b/upnp.basedriver/src/main/java/org/apache/felix/upnp/basedriver/Activator.java
@@ -76,6 +76,8 @@
Activator.logger.setCyberDebug(cyberLog);
UPnP.setXMLParser(new JaxpParser());
+ UPnP.setEnable(UPnP.USE_ONLY_IPV4_ADDR);
+ UPnP.setDisable(UPnP.USE_LOOPBACK_ADDR);
//Setting up Base Driver Exporter
this.queue = new RootDeviceExportingQueue();
diff --git a/upnp.basedriver/src/main/java/org/apache/felix/upnp/basedriver/export/BuildDevice.java b/upnp.basedriver/src/main/java/org/apache/felix/upnp/basedriver/export/BuildDevice.java
index 14217e1..2784ba8 100644
--- a/upnp.basedriver/src/main/java/org/apache/felix/upnp/basedriver/export/BuildDevice.java
+++ b/upnp.basedriver/src/main/java/org/apache/felix/upnp/basedriver/export/BuildDevice.java
@@ -28,6 +28,7 @@
import org.cybergarage.upnp.Device;
import org.cybergarage.upnp.Service;
import org.cybergarage.upnp.StateVariable;
+import org.cybergarage.upnp.RootDescription;
import org.cybergarage.upnp.xml.DeviceData;
import org.cybergarage.xml.Node;
@@ -38,8 +39,6 @@
import org.osgi.service.upnp.UPnPService;
import org.osgi.service.upnp.UPnPStateVariable;
-import org.ungoverned.device.RootDescription;
-
import org.apache.felix.upnp.basedriver.Activator;
import org.apache.felix.upnp.extra.util.Converter;
/*
diff --git a/upnp.basedriver/src/main/resources/debug/META-INF/Manifest.mf b/upnp.basedriver/src/main/resources/debug/META-INF/Manifest.mf
deleted file mode 100644
index 90db319..0000000
--- a/upnp.basedriver/src/main/resources/debug/META-INF/Manifest.mf
+++ /dev/null
@@ -1,6 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ClassPath: .,lib/cyberlink-1.7.3-patched-debug.jar
-Bundle-Author: Matteo Demuru <matte-d@users.sourceforge.net>,Stefano "
- Kismet" Lenzi <kismet-sl@users.sourceforge.net>,Francesco Furfari <fr
- ancesco.furfari@isti.cnr.it>,Satoshi Konno
-
diff --git a/upnp.basedriver/src/main/resources/debug/lib/cyberlink-1.7.3-patched-debug.jar b/upnp.basedriver/src/main/resources/debug/lib/cyberlink-1.7.3-patched-debug.jar
deleted file mode 100644
index da9b05b..0000000
--- a/upnp.basedriver/src/main/resources/debug/lib/cyberlink-1.7.3-patched-debug.jar
+++ /dev/null
Binary files differ
diff --git a/upnp.basedriver/src/main/resources/release/META-INF/Manifest.mf b/upnp.basedriver/src/main/resources/release/META-INF/Manifest.mf
deleted file mode 100644
index 2875f65..0000000
--- a/upnp.basedriver/src/main/resources/release/META-INF/Manifest.mf
+++ /dev/null
@@ -1,6 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ClassPath: .,lib/cyberlink-1.7.3-patched-release.jar
-Bundle-Author: Matteo Demuru <matte-d@users.sourceforge.net>,Stefano "
- Kismet" Lenzi <kismet-sl@users.sourceforge.net>,Francesco Furfari <fr
- ancesco.furfari@isti.cnr.it>,Satoshi Konno
-
diff --git a/upnp.basedriver/src/main/resources/release/lib/cyberlink-1.7.3-patched-release.jar b/upnp.basedriver/src/main/resources/release/lib/cyberlink-1.7.3-patched-release.jar
deleted file mode 100644
index b93ee9e..0000000
--- a/upnp.basedriver/src/main/resources/release/lib/cyberlink-1.7.3-patched-release.jar
+++ /dev/null
Binary files differ
diff --git a/upnp.extra/pom.xml b/upnp.extra/pom.xml
index ac9f7db..206061f 100644
--- a/upnp.extra/pom.xml
+++ b/upnp.extra/pom.xml
@@ -7,11 +7,11 @@
<relativePath>../pom/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
- <packaging>osgi-bundle</packaging>
+ <packaging>bundle</packaging>
<groupId>org.apache.felix</groupId>
<name>Apache Felix UPnP Extra </name>
<artifactId>org.apache.felix.upnp.extra</artifactId>
- <version>0.1.0-SNAPSHOT</version>
+ <version>0.2.0-SNAPSHOT</version>
<!-- <url>http://maven.apache.org</url> -->
<dependencies>
<dependency>
@@ -24,23 +24,23 @@
<build>
<plugins>
<plugin>
- <groupId>org.apache.felix.plugins</groupId>
- <artifactId>maven-osgi-plugin</artifactId>
- <version>0.9.0-SNAPSHOT</version>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
<extensions>true</extensions>
<configuration>
- <osgiManifest>
- <bundleName>UPnPExtra</bundleName>
- <bundleVendor>Apache Software Foundation</bundleVendor>
- <bundleVersion>0.1.0</bundleVersion>
- <bundleDescription>
+ <instructions>
+ <Bundle-Name>${pom.name}</Bundle-Name>
+ <Bundle-Vendor>Apache Software Foundation</Bundle-Vendor>
+ <Bundle-Version>0.2.0</Bundle-Version>
+ <Bundle-Author><![CDATA[Matteo Demuru <demuru@apache.org>,Francesco Furfari <furfari@apache.org>,Stefano "Kismet" Lenzi <lenzi@apache.org>]]></Bundle-Author>
+ <Bundle-Description>
A library used to extend the integration between UPnP and OSGi that is not part of the standard. Also services that allow to change the beahviour of the UPnP Base Driver
- </bundleDescription>
- <bundleSymbolicName>org.apache.felix.upnp.extra</bundleSymbolicName>
- <exportPackage>
- org.apache.felix.upnp.extra.util;specification-version=1.0,org.apache.felix.upnp.extra.controller;specification-version=1.0
- </exportPackage>
- </osgiManifest>
+ </Bundle-Description>
+ <Bundle-SymbolicName>org.apache.felix.upnp.extra</Bundle-SymbolicName>
+ <Export-Package>org.apache.felix.upnp.extra.*</Export-Package>
+ <Private-Package>org.apache.xerces.impl.dv.util</Private-Package>
+ </instructions>
</configuration>
</plugin>
</plugins>
diff --git a/upnp.sample.binaryLight/pom.xml b/upnp.sample.binaryLight/pom.xml
index 7e3eb30..33ac102 100644
--- a/upnp.sample.binaryLight/pom.xml
+++ b/upnp.sample.binaryLight/pom.xml
@@ -7,11 +7,11 @@
<relativePath>../pom/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
- <packaging>osgi-bundle</packaging>
+ <packaging>bundle</packaging>
<groupId>org.apache.felix</groupId>
<name>Apache Felix UPnP Sample Binary-Light</name>
<artifactId>org.apache.felix.upnp.sample.binaryLight</artifactId>
- <version>0.1.0-SNAPSHOT</version>
+ <version>0.2.0-SNAPSHOT</version>
<!-- <url>http://maven.apache.org</url> -->
<dependencies>
<dependency>
@@ -36,29 +36,26 @@
<build>
<plugins>
<plugin>
- <groupId>org.apache.felix.plugins</groupId>
- <artifactId>maven-osgi-plugin</artifactId>
- <version>0.9.0-SNAPSHOT</version>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
<extensions>true</extensions>
<configuration>
- <osgiManifest>
- <bundleName>UPnPBinaryLight</bundleName>
- <bundleVendor>Apache Software Foundation</bundleVendor>
- <bundleVersion>0.1.0</bundleVersion>
- <bundleDescription>
+ <instructions>
+ <Bundle-Name>${pom.name}</Bundle-Name>
+ <Bundle-Vendor>Apache Software Foundation</Bundle-Vendor>
+ <Bundle-Version>0.2.0</Bundle-Version>
+ <Bundle-Author><![CDATA[Matteo Demuru <demuru@apache.org>,Francesco Furfari <furfari@apache.org>,Stefano "Kismet" Lenzi <lenzi@apache.org>]]></Bundle-Author>
+ <Bundle-Description>
Standardized BinaryLight DCPs to test UPnP Base Driver
- </bundleDescription>
- <bundleSymbolicName>org.apache.felix.upnp.sample.binaryLight</bundleSymbolicName>
- <bundleActivator>org.apache.felix.upnp.sample.binaryLight.Activator</bundleActivator>
- </osgiManifest>
- <manifestFile>src/main/resources/META-INF/Manifest.mf</manifestFile>
+ </Bundle-Description>
+ <Bundle-SymbolicName>org.apache.felix.upnp.sample.binaryLight</Bundle-SymbolicName>
+ <Bundle-Activator>org.apache.felix.upnp.sample.binaryLight.Activator</Bundle-Activator>
+ <Private-Package>org.apache.felix.upnp.sample.binaryLight.*</Private-Package>
+ <Import-Package>*</Import-Package>
+ </instructions>
</configuration>
</plugin>
</plugins>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- </resource>
- </resources>
</build>
</project>
diff --git a/upnp.sample.clock/pom.xml b/upnp.sample.clock/pom.xml
index c5e769f..87249b5 100644
--- a/upnp.sample.clock/pom.xml
+++ b/upnp.sample.clock/pom.xml
@@ -7,11 +7,11 @@
<relativePath>../pom/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
- <packaging>osgi-bundle</packaging>
+ <packaging>bundle</packaging>
<groupId>org.apache.felix</groupId>
<name>Apache Felix UPnP Sample Clock</name>
<artifactId>org.apache.felix.upnp.sample.clock</artifactId>
- <version>0.1.0-SNAPSHOT</version>
+ <version>0.2.0-SNAPSHOT</version>
<!-- <url>http://maven.apache.org</url> -->
<dependencies>
<dependency>
@@ -30,29 +30,26 @@
<build>
<plugins>
<plugin>
- <groupId>org.apache.felix.plugins</groupId>
- <artifactId>maven-osgi-plugin</artifactId>
- <version>0.9.0-SNAPSHOT</version>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
<extensions>true</extensions>
<configuration>
- <osgiManifest>
- <bundleName>UPnPClock</bundleName>
- <bundleVendor>Apache Software Foundation</bundleVendor>
- <bundleVersion>0.1.0</bundleVersion>
- <bundleDescription>
+ <instructions>
+ <Bundle-Name>${pom.name}</Bundle-Name>
+ <Bundle-Vendor>Apache Software Foundation</Bundle-Vendor>
+ <Bundle-Version>0.2.0</Bundle-Version>
+ <Bundle-Author><![CDATA[Matteo Demuru <demuru@apache.org>,Francesco Furfari <furfari@apache.org>,Stefano "Kismet" Lenzi <lenzi@apache.org>]]></Bundle-Author>
+ <Bundle-Description>
CyberLink Clock clone to test UPnPBase driver
- </bundleDescription>
- <bundleSymbolicName>org.apache.felix.upnp.sample.clock</bundleSymbolicName>
- <bundleActivator>org.apache.felix.upnp.sample.clock.Activator</bundleActivator>
- </osgiManifest>
- <manifestFile>src/main/resources/META-INF/Manifest.mf</manifestFile>
+ </Bundle-Description>
+ <Bundle-SymbolicName>org.apache.felix.upnp.sample.clock</Bundle-SymbolicName>
+ <Bundle-Activator>org.apache.felix.upnp.sample.clock.Activator</Bundle-Activator>
+ <Private-Package>org.apache.felix.upnp.sample.clock.*</Private-Package>
+ <Import-Package>*</Import-Package>
+ </instructions>
</configuration>
</plugin>
</plugins>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- </resource>
- </resources>
</build>
</project>
diff --git a/upnp.sample.tv/pom.xml b/upnp.sample.tv/pom.xml
index b0b2521..6b3f37b 100644
--- a/upnp.sample.tv/pom.xml
+++ b/upnp.sample.tv/pom.xml
@@ -7,11 +7,11 @@
<relativePath>../pom/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
- <packaging>osgi-bundle</packaging>
+ <packaging>bundle</packaging>
<groupId>org.apache.felix</groupId>
<name>Apache Felix UPnP Sample TV</name>
<artifactId>org.apache.felix.upnp.sample.tv</artifactId>
- <version>0.1.0-SNAPSHOT</version>
+ <version>0.2.0-SNAPSHOT</version>
<!-- <url>http://maven.apache.org</url> -->
<dependencies>
<dependency>
@@ -30,29 +30,25 @@
<build>
<plugins>
<plugin>
- <groupId>org.apache.felix.plugins</groupId>
- <artifactId>maven-osgi-plugin</artifactId>
- <version>0.9.0-SNAPSHOT</version>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
<extensions>true</extensions>
<configuration>
- <osgiManifest>
- <bundleName>UPnPTV</bundleName>
- <bundleVendor>Apache Software Foundation</bundleVendor>
- <bundleVersion>0.1.0</bundleVersion>
- <bundleDescription>
+ <instructions>
+ <Bundle-Name>${pom.name}</Bundle-Name>
+ <Bundle-Vendor>Apache Software Foundation</Bundle-Vendor>
+ <Bundle-Author><![CDATA[Matteo Demuru <demuru@apache.org>,Francesco Furfari <furfari@apache.org>,Stefano "Kismet" Lenzi <lenzi@apache.org>]]></Bundle-Author>
+ <Bundle-Description>
CyberLink Tv clone to test UPnPBase driver
- </bundleDescription>
- <bundleSymbolicName>org.apache.felix.upnp.sample.tv</bundleSymbolicName>
- <bundleActivator>org.apache.felix.upnp.sample.tv.Activator</bundleActivator>
- </osgiManifest>
- <manifestFile>src/main/resources/META-INF/Manifest.mf</manifestFile>
+ </Bundle-Description>
+ <Bundle-SymbolicName>org.apache.felix.upnp.sample.tv</Bundle-SymbolicName>
+ <Bundle-Activator>org.apache.felix.upnp.sample.tv.Activator</Bundle-Activator>
+ <Private-Package>org.apache.felix.upnp.sample.tv.*</Private-Package>
+ <Import-Package>*</Import-Package>
+ </instructions>
</configuration>
</plugin>
</plugins>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- </resource>
- </resources>
</build>
</project>
diff --git a/upnp.tester/pom.xml b/upnp.tester/pom.xml
index 376030d..2be565c 100644
--- a/upnp.tester/pom.xml
+++ b/upnp.tester/pom.xml
@@ -7,11 +7,11 @@
<relativePath>../pom/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
- <packaging>osgi-bundle</packaging>
+ <packaging>bundle</packaging>
<groupId>org.apache.felix</groupId>
<name>Apache Felix UPnP Tester</name>
<artifactId>org.apache.felix.upnp.tester</artifactId>
- <version>0.1.0-SNAPSHOT</version>
+ <version>0.2.0-SNAPSHOT</version>
<!-- <url>http://maven.apache.org</url> -->
<dependencies>
<dependency>
@@ -36,29 +36,25 @@
<build>
<plugins>
<plugin>
- <groupId>org.apache.felix.plugins</groupId>
- <artifactId>maven-osgi-plugin</artifactId>
- <version>0.9.0-SNAPSHOT</version>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
<extensions>true</extensions>
<configuration>
- <osgiManifest>
- <bundleName>UPnPTester</bundleName>
- <bundleVendor>Apache Software Foundation</bundleVendor>
- <bundleVersion>0.1.0</bundleVersion>
- <bundleDescription>
+ <instructions>
+ <Bundle-Name>${pom.name}</Bundle-Name>
+ <Bundle-Vendor>Apache Software Foundation</Bundle-Vendor>
+ <Bundle-Author><![CDATA[Matteo Demuru <demuru@apache.org>,Francesco Furfari <furfari@apache.org>,Stefano "Kismet" Lenzi <lenzi@apache.org>]]></Bundle-Author>
+ <Bundle-Description>
OSGi Generic Control Point to control UPnPDevice services
- </bundleDescription>
- <bundleSymbolicName>org.apache.felix.upnp.tester</bundleSymbolicName>
- <bundleActivator>org.apache.felix.upnp.tester.Activator</bundleActivator>
- </osgiManifest>
- <manifestFile>src/main/resources/META-INF/Manifest.mf</manifestFile>
+ </Bundle-Description>
+ <Bundle-SymbolicName>org.apache.felix.upnp.tester</Bundle-SymbolicName>
+ <Bundle-Activator>org.apache.felix.upnp.tester.Activator</Bundle-Activator>
+ <Private-Package>org.apache.felix.upnp.tester.*</Private-Package>
+ <Import-Package>*</Import-Package>
+ </instructions>
</configuration>
</plugin>
</plugins>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- </resource>
- </resources>
</build>
</project>