Ivy
  1. Ivy
  2. IVY-1036

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

    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)
      
      1. IVY-1036.patch.txt
        3 kB
        Matt Benson
      2. MavenSnapshotResolver.java
        23 kB
        Carlo de Wolf

        Activity

        Carlo de Wolf created issue -
        Carlo de Wolf made changes -
        Field Original Value New Value
        Attachment MavenSnapshotResolver.java [ 12401092 ]
        Carlo de Wolf made changes -
        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. 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>
           <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>
           <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)}}
        Carlo de Wolf made changes -
        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>
           <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>
           <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)}}
        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}
        <ivysettings>
           <settings defaultResolver="snapshots.jboss.org"/>
           <resolvers>
              <ibiblio name="snapshots.jboss.org" m2compatible="true" usepoms="true" root="http://snapshots.jboss.org/maven2"/>
           </resolvers>
        </ivysettings>
        {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}
        <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>
        {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}
        Nicolas Lalevée made changes -
        Labels patch
        Matt Benson made changes -
        Attachment IVY-1036.patch.txt [ 12549222 ]
        Matt Benson made changes -
        Summary latest.integration isn't resolved against a maven snapshot repository latest.integration isn't resolved against a Maven snapshot repository (when uniqueVersion = true)
        Assignee Matt Benson [ mbenson ]
        Matt Benson made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Matt Benson made changes -
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Resolved [ 5 ]
        Fix Version/s trunk [ 12320744 ]
        Maarten Coene made changes -
        Issue Type New Feature [ 2 ] Bug [ 1 ]
        Fix Version/s 2.3.0 [ 12320743 ]
        Fix Version/s trunk [ 12320744 ]
        Component/s Maven Compatibility [ 12312101 ]

          People

          • Assignee:
            Matt Benson
            Reporter:
            Carlo de Wolf
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development