Return-Path: X-Original-To: apmail-ant-notifications-archive@minotaur.apache.org Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4465AD4A9 for ; Mon, 15 Oct 2012 20:01:04 +0000 (UTC) Received: (qmail 41557 invoked by uid 500); 15 Oct 2012 20:01:04 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 41501 invoked by uid 500); 15 Oct 2012 20:01:04 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 41409 invoked by uid 99); 15 Oct 2012 20:01:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Oct 2012 20:01:04 +0000 Date: Mon, 15 Oct 2012 20:01:04 +0000 (UTC) From: "Matt Benson (JIRA)" To: notifications@ant.apache.org Message-ID: <554973285.46998.1350331264100.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (IVY-1036) latest.integration isn't resolved against a maven snapshot repository MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IVY-1036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13476375#comment-13476375 ] Matt Benson commented on IVY-1036: ---------------------------------- I have a failing test for this, cloned from {{ResolveTest#testResolveMaven2Snapshot1()}} : {code} public void testResolveMaven2Snapshot1AsLatestIntegration() throws Exception { // test case for IVY-1036 // here we test maven SNAPSHOT versions handling, // with m2 snapshotRepository/uniqueVersion set to true // but retrieving by latest.integration Ivy ivy = new Ivy(); ivy.configure(new File("test/repositories/m2/ivysettings.xml")); ResolveReport report = ivy.resolve( ModuleRevisionId.newInstance("org.apache", "test-SNAPSHOT1", "latest.integration"), getResolveOptions(new String[] {"*"}), true); assertNotNull(report); assertFalse(report.hasError()); // dependencies assertTrue(getIvyFileInCache( ModuleRevisionId.newInstance("org.apache", "test-SNAPSHOT1", "2.0.2-SNAPSHOT")).exists()); assertTrue(getArchiveFileInCache(ivy, "org.apache", "test-SNAPSHOT1", "2.0.2-SNAPSHOT", "test-SNAPSHOT1", "jar", "jar").exists()); } {code} What I am lacking is any idea how to go about addressing the issue. :( > latest.integration isn't resolved against a maven snapshot repository > --------------------------------------------------------------------- > > Key: IVY-1036 > URL: https://issues.apache.org/jira/browse/IVY-1036 > Project: Ivy > Issue Type: New Feature > Affects Versions: 2.0 > Reporter: Carlo de Wolf > Labels: patch > Attachments: MavenSnapshotResolver.java > > > When latest.integration is the requested revision the ibiblio resolver doesn't go through the snapshots. So in effect you'll always end up with the latest.release. > Given the following ivysettings: > {code:title=ivysettings.xml} > > > > > > > {code} > Ivy won't go through the unique snapshot versions: > {noformat} > listing revisions from maven-metadata: http://snapshots.jboss.org/maven2/org/jboss/ejb3/jboss-ejb3-cache/maven-metadata.xml > found revs: [0.13.1-SNAPSHOT, 1.0.1-SNAPSHOT] > HTTP response status: 404 url=http://snapshots.jboss.org/maven2/org/jboss/ejb3/jboss-ejb3-cache/0.13.1-SNAPSHOT/jboss-ejb3-cache-0.13.1-SNAPSHOT.pom > CLIENT ERROR: Not Found url=http://snapshots.jboss.org/maven2/org/jboss/ejb3/jboss-ejb3-cache/0.13.1-SNAPSHOT/jboss-ejb3-cache-0.13.1-SNAPSHOT.pom > HTTP response status: 404 url=http://snapshots.jboss.org/maven2/org/jboss/ejb3/jboss-ejb3-cache/1.0.1-SNAPSHOT/jboss-ejb3-cache-1.0.1-SNAPSHOT.pom > CLIENT ERROR: Not Found url=http://snapshots.jboss.org/maven2/org/jboss/ejb3/jboss-ejb3-cache/1.0.1-SNAPSHOT/jboss-ejb3-cache-1.0.1-SNAPSHOT.pom > {noformat} > With the maven-snapshot-resolver it will: > {code:title=ivysettings.xml} > > > > > > > > {code} > {noformat} > listing revisions from maven-metadata: http://snapshots.jboss.org/maven2/org/jboss/ejb3/jboss-ejb3-cache/maven-metadata.xml > found revs: [0.13.1-SNAPSHOT, 1.0.1-SNAPSHOT] > snapshots.jboss.org: found md file for org.jboss.ejb3#jboss-ejb3-cache;latest.integration > => http://snapshots.jboss.org/maven2/org/jboss/ejb3/jboss-ejb3-cache//1.0.1-SNAPSHOT/jboss-ejb3-cache-1.0.1-20090303.040911-22.pom (1.0.1-20090303.040911-22) > {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira