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

ivy won't resolve updated maven SNAPSHOT artifacts with classifiers from local repo

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.0-RC1
    • Fix Version/s: None
    • Component/s: Maven Compatibility
    • Labels:
    • Environment:

      Mac OS X 10.6, Ant 1.7.1, Maven 2.2.1

      Description

      The situation I'm running into is as follows: I have a maven project that produces two artifacts foo-SNAPSHOT.jar and foo-SNAPSHOT-tests.jar. When I resolve these via ivy, they are both pulled properly initially, however with the following ivysettings ibiblio, only the foo-SNAPSHOTS.jar is getting updated on resolve after re-installing via maven.

      <ibiblio name="local_m2_repo"
      m2compatible="true"
      usepoms="true"
      changingPattern=".-SNAPSHOT."
      changingMatcher="regexp"
      checkmodified="true"
      root="${localm2repo.url}"/>

      I started out trying the pattern ".*-SNAPSHOT" which I would have expected to pick up the tests jar, but tried this in the hopes of getting it to work, which of course it did not. This doesn't seem to be a retrieve issue either, the modified date of the foo-SNAPSHOT.jar in the local ivy cache is being updated while foo-SNAPSHOT-test.jar is not.

        Attachments

        1. fix3.patch
          7 kB
          William Price

          Issue Links

            Activity

              People

              • Assignee:
                maartenc Maarten Coene
                Reporter:
                nbonatsakis Nick Bonatsakis
              • Votes:
                9 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated: