Richard S. Hall wrote:
Francesco Furfari wrote:

Richard S. Hall wrote:
The UPnP bundles were causing my build to fail (as pointed out to me by Stephane), so I commented them out of the main pom file. Once the issue is resolved, we need to uncomment them.

Sorry to which bundles are you referring to?
In the trunk there aren't dependencies between UPnP and MOSGi
... and actually they are not commented !!
Are you talking about my sandbox?

I tried to do a clean build of the trunk and I got an error which says that it could not resolve a dependency for one of the UPnP bundles...I don't remember which. It looked like the dependency was on 0.1.0-incubator-SNAPSHOT of the maven-osgi-plugin, but I hadn't heard of such a version.

Clear your .m2/repository and try to build from scratch using "ant" in the trunk and see what happens...that is what I did.
Hi All,
we have just made some tests and we found that the problem resides in the org.apache.felix.examples.spellcheckscr project that uses the bundle packaging even if it's in the profile for that uses the osgi-bundle packaging. In fact if you look at your repository you may find also the wireadmin bundle installed as .osgi-bundle artifact instead of .jar due to the famous maven bug ^_^

So we have solved the issue by defining the profiles for the examples pom.xml as you have done for the trunk pom.xml
        
        I have tried to send the patch but I get the following error message:
Sending        examples/pom.xml
svn: Commit failed (details follow):
svn: CHECKOUT of '/repos/asf/!svn/ver/534951/felix/trunk/examples/pom.xml': 403 Forbidden (https://svn.apache.org)

        So I'll attach the patch :S

Ciao,
Stefano "Kismet" Lenzi


Index: examples/pom.xml
===================================================================
--- examples/pom.xml    (revision 535345)
+++ examples/pom.xml    (working copy)
@@ -9,18 +9,40 @@
   <name>Apache Felix Examples: Build</name>
   <artifactId>build</artifactId>
 
-  <modules>
-    <module>eventlistener</module>
-    <module>dictionaryservice</module>
-    <module>dictionaryservice.itest</module>
-    <module>frenchdictionary</module>
-    <module>dictionaryclient</module>
-    <module>dictionaryclient2</module>
-    <module>spellcheckservice</module>
-    <module>spellcheckclient</module>
-    <module>spellcheckbinder</module>
-    <module>spellcheckscr</module>
-  </modules>
+  <profiles>
+    <profile>
+      <id>packaging-osgi-bundle</id>
+      <activation>
+        <property>
+          <name>packaging</name>
+          <value>osgi-bundle</value>
+        </property>
+      </activation>
+      <modules>
+          <module>eventlistener</module>
+          <module>dictionaryservice</module>
+          <module>dictionaryservice.itest</module>
+          <module>frenchdictionary</module>
+          <module>dictionaryclient</module>
+          <module>dictionaryclient2</module>
+          <module>spellcheckservice</module>
+          <module>spellcheckclient</module>
+          <module>spellcheckbinder</module>
+      </modules>
+    </profile>
+    <profile>
+      <id>packaging-bundle</id>
+      <activation>
+        <property>
+          <name>packaging</name>
+          <value>bundle</value>
+        </property>
+      </activation>
+      <modules>
+          <module>spellcheckscr</module>
+      </modules>
+    </profile>
+  </profiles>
 
   <dependencies>
     <dependency>

Reply via email to