buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacek Sokulski <jsokul...@dotsystems.pl>
Subject transitive() fails with POM variables
Date Mon, 12 Jul 2010 10:36:59 GMT
Hi
when using transitive for maven artifacts buildr fails in case when POM 
uses maven variables

example buildfile:
repositories.remote << "http://repository.jboss.com/maven2/"
transitive("org.hibernate:hibernate-ehcache:jar:3.3.1.GA")

POM contains dependency:

        <dependency>
            <groupId>${groupId}</groupId>
            <artifactId>hibernate-core</artifactId>
            <version>${version}</version>
        </dependency>


and the trace is:
Downloading :hibernate-core:pom:
Buildr aborted!
RuntimeError : Failed to download :hibernate-core:pom:, tried the 
following repositories:
http://repository.jboss.com/maven2//
/opt/workspaceSMM/smm-web/gui/buildfile:14
/usr/lib/ruby/gems/1.8/gems/buildr-1.4.1/lib/buildr/core/application.rb:398:in 
`raw_load_buildfile'
/usr/lib/ruby/gems/1.8/gems/buildr-1.4.1/lib/buildr/core/application.rb:218:in 
`load_buildfile'
/usr/lib/ruby/gems/1.8/gems/buildr-1.4.1/lib/buildr/core/application.rb:213:in 
`load_buildfile'

So it seems  that ${groupId} and ${version} variables are not resolved
Jacek

Mime
View raw message