From users-return-54408-apmail-maven-users-archive=maven.apache.org@maven.apache.org Thu Aug 24 13:46:01 2006 Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 85474 invoked from network); 24 Aug 2006 13:46:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Aug 2006 13:46:00 -0000 Received: (qmail 16150 invoked by uid 500); 24 Aug 2006 13:45:52 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 16102 invoked by uid 500); 24 Aug 2006 13:45:52 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 16090 invoked by uid 99); 24 Aug 2006 13:45:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Aug 2006 06:45:52 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [134.98.65.18] (HELO gateway.elsag.de) (134.98.65.18) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Aug 2006 06:45:50 -0700 Received: from vwall.elsag.de by gateway.elsag.de via smtpd (for asf.osuosl.org [140.211.166.49]) with ESMTP; Thu, 24 Aug 2006 15:45:29 +0200 Received: from esmail ([192.168.2.88]) by vwall-vs.elsag.de with InterScan Messaging Security Suite; Thu, 24 Aug 2006 15:45:28 +0200 Received: from esmail by esmail via smtpd (for vwall.elsag.de [192.168.100.108]) with ESMTP; Thu, 24 Aug 2006 15:45:28 +0200 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Subject: RE: [m2] Updates of transitive dependencies not working? Date: Thu, 24 Aug 2006 15:45:28 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [m2] Updates of transitive dependencies not working? Thread-Index: AcbHgPziC/szeGvyTey3jvoz/txkNAAASy1A From: =?iso-8859-1?Q?J=F6rg_Schaible?= To: "Maven Users List" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ArneD wrote on Thursday, August 24, 2006 3:27 PM: > J=F6rg Schaible wrote: >>=20 >> ArneD wrote on Thursday, August 24, 2006 2:43 PM: >>=20 >>> I defined two repositories in the settings.xml, both with >>> updatePolicy set to always.=20 >>>=20 >>> My project A has a dependency to version 5.0-SNAPSHOT of a JAR B. >>> That JAR B has a dependency to version 1.6 of another JAR C. In my >>> local repository there's an outdated version 1.6 of JAR C (i.e. >>> version 1.6 has been redeployed after a bug has been found). >>>=20 >>> The problem is: During my build of project A Maven is looking for >>> an update of JAR B, but NOT of JAR C. >>>=20 >>> Is this a bug or am I missing some setting? >>=20 >> Yes. You cannot upgrade a final version! Therefore it is final. >> Maven will *never* look for an update. That's what snapshots are for >>=20 >=20 > I know that you normally should use snapshot versions for > that. Anyway, > Maven *does* allow to overwrite an existing version in the repository > by re-deploying it. Your own risk. > To make builds repeatable, I believe, Maven has > to look for updates, even for released versions, not only snapshot > versions.=20 It does not. > Isn't that what the > always setting > is for? "updatePolicy" defines how often *SNAPSHOTS* are looked for. Although it = is also defined for the releases section, it is IMHO just ignored there = (or maybe it is the same as with the bug for the snapshots). Raise an = issue ... >> (although it does also not work because of a bug). >>=20 >=20 > Do you know the bug number? http://jira.codehaus.org/browse/MNG-1908 - J=F6rg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org