Return-Path: Delivered-To: apmail-buildr-users-archive@www.apache.org Received: (qmail 49183 invoked from network); 17 Oct 2010 08:46:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Oct 2010 08:46:50 -0000 Received: (qmail 75665 invoked by uid 500); 17 Oct 2010 08:46:50 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 75526 invoked by uid 500); 17 Oct 2010 08:46:47 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Received: (qmail 75518 invoked by uid 99); 17 Oct 2010 08:46:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Oct 2010 08:46:46 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of duncan@oneeyedmen.com designates 74.125.82.172 as permitted sender) Received: from [74.125.82.172] (HELO mail-wy0-f172.google.com) (74.125.82.172) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Oct 2010 08:46:40 +0000 Received: by wyb29 with SMTP id 29so2813961wyb.17 for ; Sun, 17 Oct 2010 01:46:19 -0700 (PDT) Received: by 10.216.47.140 with SMTP id t12mr3064165web.102.1287305145710; Sun, 17 Oct 2010 01:45:45 -0700 (PDT) Received: from [192.168.1.13] (94-193-106-238.zone7.bethere.co.uk [94.193.106.238]) by mx.google.com with ESMTPS id b10sm9324221wer.17.2010.10.17.01.45.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 17 Oct 2010 01:45:44 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1081) Subject: Re: Transitive dependencies problem From: Duncan McGregor In-Reply-To: Date: Sun, 17 Oct 2010 09:45:43 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <0DB863CE-9098-41C4-A457-768A08791E92@oneeyedmen.com> To: users@buildr.apache.org X-Mailer: Apple Mail (2.1081) X-Virus-Checked: Checked by ClamAV on apache.org Thanks for the swift replies. Good to know that it wasn't my early-hours = misunderstanding. I'll try explicit rejection and then work my way up. My understanding (based on staring at pages of -v output this morning = ;-) is that Maven uses the highest version of a dependency specified in = any of its transitive trawls. Is the same true for Buildr? Cheers Duncan On 17 Oct 2010, at 02:52, Alex Boisvert wrote: > Hi Duncan, >=20 > This looks like a bug in transitive() which isn't 100% = accurate/complete > compared to Maven's dependency resolution. >=20 > In the short term, I'd say you have two broad options: >=20 > 1) Explicit specify the dependencies (instead of using transitive). = You > could use Maven's resolved list if you have it. >=20 > 2) Override the POM that includes the invalid dependency using: >=20 > artifact('group:actifact-id:pom:1.5').from 'manually_fixed.pom' >=20 > and copying + editing 'manually_fixed.pom' into your project. >=20 > Fixing transitive dependency support to have full = accuracy/completeness > compared to Maven is on our roadmap but probably won't be ready until = Buildr > 1.5.0. >=20 > Finally, another alternative would be using the ivy4r plugin which = uses Ivy > to resolve artifacts. >=20 > alex >=20 >=20 > On Sat, Oct 16, 2010 at 3:54 PM, Duncan McGregor = wrote: >=20 >> First, thanks for Buildr. >>=20 >> I'm trying to migrate a Maven 2 project, but seem to be out of the = frying >> pan and into the fire. Cut right down, if I try to build this: >>=20 >> repositories.remote << 'http://www.ibiblio.org/maven2' >> repositories.remote << 'http://repo1.maven.org/maven2' >> repositories.remote << ' >> http://repository.jboss.org/nexus/content/groups/public-jboss' >>=20 >> define '2020iMP' do >> project.group =3D '2020iMP' >> project.version =3D '1.0-SNAPSHOT' >>=20 >> compile.with [ >> transitive('org.hibernate:hibernate-core:jar:3.5.6-Final'), >> ] >> end >>=20 >> it fails >>=20 >> $ buildr -f delmebuildfile --trace >> (in /Users/duncan/Documents/Work/2020iMP/2020iMP, development) >> ** Invoke delme (first_time) >> ** Execute delme >> Defining task delme:shell:bsh >> Defining task delme:shell:jirb >> Defining task delme:shell:clj >> ** Invoke >> = /Users/duncan/.m2/repository/org/hibernate/hibernate-core/3.5.6-Final/hibe= rnate-core-3.5.6-Final.pom >> (first_time, not_needed) >> Loading m2 pom file from >> = /Users/duncan/.m2/repository/org/hibernate/hibernate-core/3.5.6-Final/hibe= rnate-core-3.5.6-Final.pom >> ** Invoke >> = /Users/duncan/.m2/repository/org/hibernate/hibernate-parent/3.5.6-Final/hi= bernate-parent-3.5.6-Final.pom >> (first_time, not_needed) >> Loading m2 pom file from >> = /Users/duncan/.m2/repository/org/hibernate/hibernate-parent/3.5.6-Final/hi= bernate-parent-3.5.6-Final.pom >>=20 >> >>=20 >> ** Invoke >> /Users/duncan/.m2/repository/jboss/jboss-parent/1/jboss-parent-1.pom >> (first_time, not_needed) >> Loading m2 pom file from >> /Users/duncan/.m2/repository/jboss/jboss-parent/1/jboss-parent-1.pom >> ** Invoke >> = /Users/duncan/.m2/repository/org/jboss/javaee/jboss-servlet-api_3.0/1.0-SN= APSHOT/jboss-servlet-api_3.0-1.0-SNAPSHOT.pom >> (first_time) >> ** Execute >> = /Users/duncan/.m2/repository/org/jboss/javaee/jboss-servlet-api_3.0/1.0-SN= APSHOT/jboss-servlet-api_3.0-1.0-SNAPSHOT.pom >> Downloading org.jboss.javaee:jboss-servlet-api_3.0:pom:1.0-SNAPSHOT >> Downloading org.jboss.javaee:jboss-servlet-api_3.0:pom:1.0-SNAPSHOT >> Requesting >> = http://www.ibiblio.org/maven2/org/jboss/javaee/jboss-servlet-api_3.0/1.0-S= NAPSHOT/jboss-servlet-api_3.0-1.0-SNAPSHOT.pom >> Redirected to >> = http://mirrors.ibiblio.org/pub/mirrors/maven2/org/jboss/javaee/jboss-servl= et-api_3.0/1.0-SNAPSHOT/jboss-servlet-api_3.0-1.0-SNAPSHOT.pom >> Requesting >> = http://mirrors.ibiblio.org/pub/mirrors/maven2/org/jboss/javaee/jboss-servl= et-api_3.0/1.0-SNAPSHOT/jboss-servlet-api_3.0-1.0-SNAPSHOT.pom >> Requesting >> = http://repo1.maven.org/maven2/org/jboss/javaee/jboss-servlet-api_3.0/1.0-S= NAPSHOT/jboss-servlet-api_3.0-1.0-SNAPSHOT.pom >> Requesting >> = http://repository.jboss.org/nexus/content/groups/public-jboss/org/jboss/ja= vaee/jboss-servlet-api_3.0/1.0-SNAPSHOT/jboss-servlet-api_3.0-1.0-SNAPSHOT= .pom >> Requesting >> = http://www.ibiblio.org/maven2/org/jboss/javaee/jboss-servlet-api_3.0/1.0-S= NAPSHOT/maven-metadata.xml >> Redirected to >> = http://mirrors.ibiblio.org/pub/mirrors/maven2/org/jboss/javaee/jboss-servl= et-api_3.0/1.0-SNAPSHOT/maven-metadata.xml >> Requesting >> = http://mirrors.ibiblio.org/pub/mirrors/maven2/org/jboss/javaee/jboss-servl= et-api_3.0/1.0-SNAPSHOT/maven-metadata.xml >> Requesting >> = http://repo1.maven.org/maven2/org/jboss/javaee/jboss-servlet-api_3.0/1.0-S= NAPSHOT/maven-metadata.xml >> Requesting >> = http://repository.jboss.org/nexus/content/groups/public-jboss/org/jboss/ja= vaee/jboss-servlet-api_3.0/1.0-SNAPSHOT/maven-metadata.xml >> Buildr aborted! >> RuntimeError : Failed to download >> org.jboss.javaee:jboss-servlet-api_3.0:pom:1.0-SNAPSHOT, tried the = following >> repositories: >> ... >>=20 >> Now hibernate-core-3.5.6-Final.pom has >>=20 >> >> org.jboss.javaee >> jboss-jacc-api_JDK4 >> 1.1.0 >> provided >> >> >> org.jboss.javaee >> jboss-servlet-api_3.0 >> >>=20 >> and Maven makes no attempt to pull down this file (which doesn't seem = to >> exist - makes me wonder what the world is coming to). >>=20 >> Can anyone offer any advice? >>=20 >> Thanks in advance >>=20 >> Duncan McGregor >>=20 >>=20