Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-695

transitive doesn't support ${project.parent.version} in POM.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.15
    • 1.5
    • Dependency management
    • None
    • Ubuntu 12.04, ruby 1.9.3

    Description

      having the following sample buildfile

      define "test_project" do
      compile.with(transitive('com.mangofactory:swagger-springmvc:jar:0.6.6'))
      end

      >>buildr compile
      Downloading com.wordnik:swagger-annotations_2.9.1:pom:
      Buildr aborted!
      RuntimeError : Missing version for {:group=>"com.wordnik", :id=>"swagger-annotations_2.9.1", :type=>"jar"}

      Reason:
      in the depedencies tree, there is one swagger-core_2.9.1-1.2.0.pom. It has the following dependecny:

      <dependency>
      <groupId>com.wordnik</groupId>
      <artifactId>swagger-annotations_2.9.1</artifactId>
      <version>${project.parent.version}</version>
      </dependency>
      </dependencies>

      At the top of the POM, it defines the parent project
      <parent>
      <groupId>com.wordnik</groupId>
      <artifactId>swagger-project_2.9.1</artifactId>
      <version>1.2.0</version>
      <relativePath>../..</relativePath>
      </parent>

      The ${project.parent.version} is referencing swagger-project_2.9.1's <version> node.

      Seems that transitive doesn't recognize the parent project definition?

      Attachments

        Activity

          People

            toulmean Antoine Toulme
            ryang.sei@gmail.com Rui Yang
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: