Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-1036

latest.integration isn't resolved against a Maven snapshot repository (when uniqueVersion = true)

    XMLWordPrintableJSON

Details

    Description

      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:

      ivysettings.xml
      <ivysettings>
         <settings defaultResolver="snapshots.jboss.org"/>
         <resolvers>
            <ibiblio name="snapshots.jboss.org" m2compatible="true" usepoms="true" root="http://snapshots.jboss.org/maven2"/>
         </resolvers>
      </ivysettings>
      

      Ivy won't go through the unique snapshot versions:

      	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
      

      With the maven-snapshot-resolver it will:

      ivysettings.xml
      <ivysettings>
         <typedef name="maven-snapshot-resolver" classname="org.jboss.ejb3.ivy.plugins.resolver.MavenSnapshotResolver"/>
         <settings defaultResolver="snapshots.jboss.org"/>
         <resolvers>
            <maven-snapshot-resolver name="snapshots.jboss.org" m2compatible="true" usepoms="true" root="http://snapshots.jboss.org/maven2"/>
         </resolvers>
      </ivysettings>
      
      	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)
      

      Attachments

        1. MavenSnapshotResolver.java
          23 kB
          Carlo de Wolf
        2. IVY-1036.patch.txt
          3 kB
          Matthew Jason Benson

        Activity

          People

            mbenson Matthew Jason Benson
            wolfc Carlo de Wolf
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: