Return-Path: Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: (qmail 30920 invoked from network); 6 Apr 2010 14:42:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Apr 2010 14:42:04 -0000 Received: (qmail 49424 invoked by uid 500); 6 Apr 2010 14:42:00 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 49374 invoked by uid 500); 6 Apr 2010 14:42:00 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 49331 invoked by uid 99); 6 Apr 2010 14:42:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Apr 2010 14:42:00 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [77.238.184.65] (HELO smtp134.mail.ukl.yahoo.com) (77.238.184.65) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 06 Apr 2010 14:41:54 +0000 Received: (qmail 40066 invoked from network); 6 Apr 2010 14:41:32 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=reXTIU1pQqlYVG7nwouB0Z9p0n4Ohbc+vFCyCtB4SO+GBJbgvyG4tlv9cFdwrl0REqlfFhoKoJGrcjrEHWnuJbtllJcx3G3YtlIjWBM1UyLq46jwhM2kvZsyEnCvJwLVfzoE6WeCcAVFAjOxUDDG6/eUPe+uyYko307tQ5/NY3w= ; Received: from dslb-094-217-242-255.pools.arcor-ip.net (hussdl1985-felix@94.217.242.255 with plain) by smtp134.mail.ukl.yahoo.com with SMTP; 06 Apr 2010 14:41:32 +0000 GMT X-Yahoo-SMTP: I8_YL16swBD6UPHbafDkgkhXONuvshsPLBc2 X-YMail-OSG: cIVSiqkVM1lfOcrIgp6WCkOcr7z2Jp_whuMBoQbJQI7CvAf5lXnzPX7AjA1ZOq.M3pNcohp9NkIaJRxzAsvn0_V5ZjgMrwyYtxha9OGKu50nAGs5g2NVZmoDRfo_g7vXmr2Q5udRDW16SjnR6YNMf0E9vEa6JZ__OkbqmPmaayzUS.FBxyVhAQl.pJxFnHVrU7lFlCPYjgcNnEa_ZU9tVBi.KC7KBSOTOcC2DqCoC_lbB9Sed3wF3_6pTanShcQdwLxjA5qV X-Yahoo-Newman-Property: ymail-3 Message-ID: <4BBB4828.9060005@yahoo.de> Date: Tue, 06 Apr 2010 16:41:44 +0200 From: Dan H User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: users@felix.apache.org Subject: Re: Embedding Hibernate in an OSGi bundle using maven-bundle-plugin is hard References: <4BB9286A.2000603@yahoo.de> <4BB92969.6030603@ungoverned.org> <4BB9FD75.4040703@yahoo.de> In-Reply-To: <4BB9FD75.4040703@yahoo.de> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Just found out that a similar issue has already been addressed here: http://issues.apache.org/jira/browse/FELIX-954 I checked out the current trunk, only to find out that the problem remains. Looking at the code was very helpful, I now suspect that the problem is actually caused by a cyclic dependency that causes MavenProject.getArtifacts() to return an incomplete (?) collection in BundlePlugin.getEmbeddableArtifacts(). The cycle exists in dom4j-1.6.1 which depends on dom4j-1.5.2 which depends on jaxen1.1-beta which depends on dom4j-1.5.2 (see http://jira.codehaus.org/browse/MNG-1944) This is backed up by the dependency plugin which states: [INFO] The following files have been resolved: [INFO] antlr:antlr:jar:2.7.6:compile [INFO] c3p0:c3p0:jar:0.9.1:compile [INFO] cglib:cglib:jar:2.1.3:compile [INFO] commons-collections:commons-collections:jar:3.1:compile [INFO] de.huss:kurt:jar:1.0.0:provided [INFO] dom4j:dom4j:jar:1.6.1:compile [INFO] javax.transaction:jta:jar:1.1:compile [INFO] junit:junit:jar:4.6:test [INFO] mysql:mysql-connector-java:jar:5.1.12:compile [INFO] org.apache.felix:javax.servlet:jar:1.0.0:provided [INFO] org.apache.felix:org.osgi.compendium:jar:1.4.0:provided [INFO] org.apache.felix:org.osgi.core:jar:1.4.0:provided [INFO] org.apache.felix:org.osgi.foundation:jar:1.2.0:provided [INFO] org.hibernate:hibernate-c3p0:jar:3.3.2.GA:compile [INFO] org.hibernate:hibernate-core:jar:3.3.2.GA:compile [INFO] org.slf4j:slf4j-api:jar:1.5.8:compile [INFO] xml-apis:xml-apis:jar:1.0.b2:compile All of the dom4j dependencies are missing. I assume it is not easily possible to detect this situation since no exception appears to be thrown by MavenProject.getArtifacts() when a cyclic dependency stops the resolve process. Anyway, I'm giving up on Maven integration. Thanks again for all your help. -Dan --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org