Damn, I facepalmed hard now! Yes, it works when properly specified, too. :D
Now that this has been cleared, I have another question about repositories and artifacts: is there a way to keep buildr from spamming the console with the complete URL (with user and password) when downloading artifacts? On Tue, Jan 10, 2012 at 5:30 PM, Alex Boisvert <alex.boisv...@gmail.com> wrote: > Can you try this instead, > > repositories.remote << "http://user:p...@local.repo > /nexus/content/groups/public" > > (note the user + password location in the URL) > > alex > > > On Tue, Jan 10, 2012 at 2:25 PM, Khristian <der.ko...@gmail.com> wrote: > >> I forgot to mention, I'm using buildr with JRuby 1.6.5.1. I also added >> the test as you said, and it's really loading the file in my home >> directory. >> Now the error seems to be in my authenticated repository URLs: if I >> let buildr only try downloading the artifact from ibiblio, it fails >> with the "Failed to download artifact..." message, as expected. When I >> add the private repositories lines, it fails differently: >> >> f:\teste-ear>buildr compile --trace >> I'm loading! /o/ >> (in F:/teste-ear, development) >> ** Invoke >> f:/.m2/repo-temp/org/test/Test/1.0.6.0-SNAPSHOT/Test-1.0.6.0-SNAPSHOT.pom >> (first_time) >> ** Execute >> f:/.m2/repo-temp/org/test/Test/1.0.6.0-SNAPSHOT/Test-1.0.6.0-SNAPSHOT.pom >> Downloading org.test:Test:pom:1.0.6.0-SNAPSHOT >> Downloading org.test:Test:pom:1.0.6.0-SNAPSHOT >> Buildr aborted! >> NoMethodError : undefined method `[]' for nil:NilClass >> >> c:/prog/jruby-1.6.5.1/lib/ruby/gems/1.8/gems/buildr-1.4.6-java/lib/buildr/packaging/artifact.rb:428:in >> `download' >> org/jruby/RubyArray.java:1612:in `each' >> >> c:/prog/jruby-1.6.5.1/lib/ruby/gems/1.8/gems/buildr-1.4.6-java/lib/buildr/packaging/artifact.rb:428:in >> `download' >> >> c:/prog/jruby-1.6.5.1/lib/ruby/gems/1.8/gems/buildr-1.4.6-java/lib/buildr/packaging/artifact.rb:356:in >> `initialize' >> >> >> >> On Tue, Jan 10, 2012 at 5:17 PM, Alex Boisvert <alex.boisv...@gmail.com> >> wrote: >> > Oh, if you're using something like cygwin on Windows, it's possible that >> > your HOME directory may be set to a different location, e.g. >> > c:\cygwin\home\%name%. >> > >> > alex >> > >> > On Tue, Jan 10, 2012 at 2:15 PM, Alex Boisvert <alex.boisv...@gmail.com >> >wrote: >> > >> >> You can check if your "%userprofile%\.buildr\buildr.rb" profile is >> picked >> >> up by adding something like: >> >> >> >> puts "i'm loading!!!" >> >> >> >> in it. Secondly, I think "http://www.ibiblio.org/maven2/" is always >> >> added by default to new projects. Additional repositories defined in >> your >> >> profile should be used as well. >> >> >> >> alex >> >> >> >> >> >> On Tue, Jan 10, 2012 at 2:07 PM, Khristian <der.ko...@gmail.com> wrote: >> >> >> >>> Hi, >> >>> I'm trying to start a small project to test buildr, but I need to add >> >>> some repositories to the remote repositories list. Both the local and >> >>> remote repositories work with maven. >> >>> I've added my repositories like this: >> >>> >> >>> repositories.remote << >> >>> URI.parse("user:pass@http://local.repo/nexus/content/groups/public") >> >>> repositories.local = 'f:\buildr-repo' >> >>> >> >>> As per the instructions on buildr's manual, I've tried adding the >> >>> above lines to the "%userprofile%\.buildr\settings.yaml" (I'm on >> >>> Windows), "%userprofile%\.buildr\buildr.rb" and >> >>> "project_folder\buildr.rb" files. >> >>> >> >>> Now, when I invoke "buildr --generate pom.xml", it tries to download >> >>> the project's dependencies from "http://www.ibiblio.org/maven2/". What >> >>> am I doing wrong? >> >>> >> >>> Thanks, >> >>> >> >>> -- >> >>> Khristian Alexander Schönrock >> >>> >> >> >> >> >> >> >> >> -- >> Khristian Alexander Schönrock >> -- Khristian Alexander Schönrock