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

Artifacts that have a .pom but no .jar in local Maven cache should be skipped

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      For Maven users the local cache repo can easily contain a .pom for a dependency but no corresponding .jar. Ivy treats this as a resolved dependency that does not exist, and hence fails, whereas it would actually be perfectly sane to skip it (and allow another resolver to have a go). Groovy and Gradle users experience this a lot (e.g. http://issues.gradle.org/browse/GRADLE-2034).

      A simple workaround is to use a custom Repository in the localm2 (in Groovy Grab terms) resolver which answers false to exists() for the .pom resource if the corresponding .jar is not present.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              david_syer Dave Syer
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: