Hi all,

I have a question about the default scope of dependencies in buildr. According to http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html the compile scope is the default, if no scope is specified.
However, if I run this code in buildr:

    pom = POM.load("pom.xml")
    puts pom.dependencies(:scopes=>"compile").inspect

it won't print anything, unless I explicitly specify the scope in the POM file.
Any reason why that is so? Could it not very easily be fixed by adding this:

{ :scope=>"compile" }.merge(hash)

to the method pom_to_hash in pom.rb file, like it is already done for the type, if none was specified?

Anything speaking against that?

Cheers, Ingo =;->

Reply via email to