should be added to the docs imho by someone who has access.. that's quite useful :)
K 2010/8/27 Khristian Alexander Schönrock <[email protected]>: > Update: > I found some messages about patches enabling basic auth in http access with > Buildr, but I couldn't find how to do it anywhere. > I did, however, stumble upon this line in a changelog: > "request.should_receive(:basic_auth).with('john', 'secret') > URI("http://john:sec...@#{@host_domain}").read end" > So I tried, in my repositories line, the following: > repositories.remote << URI.parse("http://user:[email protected]..."). And it > worked! > I hope this helps someone else, because I feel pretty dumb here :) > > -----Original Message----- From: Khristian Alexander Schönrock > Sent: Tuesday, August 24, 2010 1:57 PM > To: [email protected] > Subject: Authenticated access to maven repo > > Hello, > I'm trying out Buildr for some of my company's projects, and I'm already > speeding up some previously tedious tasks (at least packaging, so far). > For these tasks, I need to access our maven repo to download artifacts, > but I didn't have much success so far. Our repository manager (archiva) > only listens to secure connections(https), but, from what I see printed > in the output, Buildr converts them to regular HTTP. > The output contains this: "Failed to download > http://repo-url/archiva/repository/snapshots/[path-to-artifact].jar: > Unauthorized > Buildr aborted!" > > How do I specify these settings? Also, how can I import these settings > from my maven settings.xml file? > > Thanks in advance, > Khristian Schönrock >
