Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.4.15
-
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?