Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.7.3
-
Fix Version/s: 1.7.4, 1.8-beta-1
-
Component/s: Grape
-
Labels:None
-
Environment:Linux laptop 2.6.32-24-generic #38-Ubuntu
Groovy Version: 1.7.3 JVM: 1.6.0_20
-
Number of attachments :
Description
It would appear that properties can't be used in the organisation field (potentially others) of a POM, which is certainly valid for Maven projects. I'm not sure how many other things relating to parent projects (as in my example).
Here's the top lines of the stack trace I get from depending on a project that in turn depends on Guava:
General error during conversion: Error grabbing Grapes – [unresolved dependency: com.google.guava#guava-collections;r03: java.text.ParseException: inconsistent module descriptor file found in 'file:/home/sean/.m2/repository/com/google/guava/guava-collections/r03/guava-collections-r03.pom': bad organisation: expected='com.google.guava' found='$
java.lang.RuntimeException: Error grabbing Grapes – [unresolved dependency: com.google.guava#guava-collections;r03: java.text.ParseException: inconsistent module descriptor file found in 'file:/home/sean/.m2/repository/com/google/guava/guava-collections/r03/guava-collections-r03.pom': bad organisation: expected='com.google.guava' found='${parent.groupId}
'; ]
I think this is a known problem with Ivy. Can you drop the Ivy jar from here:
http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.2.0-rc1/ivy-2.2.0-rc1.jar
into your Groovy distribution (removing the old one - probably called something like ivy-2.1.0.jar) and see if that helps?
Cheers, Paul.