Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-2486

Parallel build fails with random Ivy resolution errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.3-rc-1

      Description

      We have a multi-project build with 30+ subprojects and we are using Ivy to resolve dependencies. The Ivy repository is located both on local and on a shared network file system for which we defined custom resolvers.

      With Gradle 1.2 the single threaded build works as expected however with the --parallel option we got random Ivy resolution errors.

      More specifically the errors are all java.text.ParseExceptions but the exception message and the Ivy module where it occurs is random.

      Some example exceptions:

      java.text.ParseException: Problem occurred while parsing ivy file: multiple points in file:////<SOME_PATH>/ivy-1.5.2.xml

      java.text.ParseException: Problem occurred while parsing ivy file: For input string: ".2001122E4.2001122E4" in file:////<SOME_PATH>/ivy-2012.07.10.xml

      java.text.ParseException: Problem occurred while parsing ivy file: For input string: "" in file:////<SOME_PATH>/ivy-1.1.1.xml

      I've attached a full exception from one of the builds. It looks to be a concurrency issue when multiple threads are trying to resolve dependencies. Unfortunately I cannot provide a reproduction project as it requires a large number of projects and dependencies so that it occurs.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            mspotasz Szabolcs Póta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: