Error resolving dependencies


(Konstantin) #1

After upgrading to milestone-5 we frequently get the following strange error when building on CI server (TeamCity):

Could not resolve all dependencies for configuration ':charts-gui:compile':
    - unresolved dependency: com.haulmont.cuba#cuba-global;3.1-SNAPSHOT: java.text.ParseException: [[Fatal Error] ivy-3.1-SNAPSHOT.xml:1:1: Content is not allowed in prolog. in file:/home/haulmont/gradle-work/charts/caches/artifacts-3/com.haulmont.cuba/cuba-global/a9a200a8fc181d720fc1137e77221d1a/ivy.originals/ivy-3.1-SNAPSHOT.xml
]
Cause: [[Fatal Error] ivy-3.1-SNAPSHOT.xml:1:1: Content is not allowed in prolog. in file:/home/haulmont/gradle-work/charts/caches/artifacts-3/com.haulmont.cuba/cuba-global/a9a200a8fc181d720fc1137e77221d1a/ivy.originals/ivy-3.1-SNAPSHOT.xml
]

The file …/ivy.originals/ivy-3.1-SNAPSHOT.xml is actually not an XML file, but symlink to the JAR containing cuba-global artifact.

The same problem repeats on different builds with different artifacts, but all of them are published in our local Nexus repository.

After restarting the build manually the problem usually disappears for a while.

Do you have an idea what may be the cause?


(Adam Murdoch) #2

Can you try the 1.0-milestone-6 snapshot? I suspect this problem is fixed in milestone 6.

See http://forums.gradle.org/gradle/topics/new_gradle_1_0_milestone_6_snapshot_available-1js19c


(Konstantin) #3

Thanks for the suggestion. I moved one of our projects to milestone-6 snapshot.

So far so good :slight_smile: