Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-4307

Grapes doesn't handle properties correctly used in the organisation field of a POM.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.3
    • 1.7.4, 1.8-beta-1
    • Grape
    • None
    • Linux laptop 2.6.32-24-generic #38-Ubuntu
      Groovy Version: 1.7.3 JVM: 1.6.0_20

    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='${parent.groupId}';

      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}';

      Attachments

        Activity

          People

            paulk Paul King
            seanparsons Sean Parsons
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: