Re: does lein2 use repositories defined in ~/.m2/settings.xml?

2013-02-21 Thread Chas Emerick
On Feb 21, 2013, at 4:28 AM, Michael Klishin wrote: 2013/2/21 James Xu xumingming64398...@gmail.com Thanks! But it sounds odd to me that lein does not use ~/.m2/settings.xml, why this decision? I wasn't the one who's made this decision but here's my understanding. Leiningen 2 uses

Re: does lein2 use repositories defined in ~/.m2/settings.xml?

2013-02-21 Thread Phil Hagelberg
James Xu writes: Thanks! But it sounds odd to me that lein does not use ~/.m2/settings.xml, why this decision? Leiningen never explicitly supported settings.xml; it was checked by accident as an implementation detail due to lein1 using maven-ant-tasks rather than Aether. But the better answer

Re: does lein2 use repositories defined in ~/.m2/settings.xml?

2013-02-21 Thread David Powell
Just wondering; if you want to specify an internal nexus repo in one place, can you specify it in ~/.lein/profiles.clj ? It's possible, but highly discouraged. If your project requires certain repositories in order to operate, you should declare them in project.clj. Specifying

Re: does lein2 use repositories defined in ~/.m2/settings.xml?

2013-02-21 Thread Chris Jeris
On Thu, Feb 21, 2013 at 12:44 PM, Phil Hagelberg p...@hagelb.org wrote: It's possible, but highly discouraged. If your project requires certain repositories in order to operate, you should declare them in project.clj. Just as a data point, we're currently using a profiles.clj on each of our

Re: does lein2 use repositories defined in ~/.m2/settings.xml?

2013-02-21 Thread Phil Hagelberg
David Powell writes: Putting repos in profiles.clj seems to have the advantage that I'll be able to override all accesses to central / clojars / etc to go via the nexus proxy; and I won't have to start hacking at published project.cljs if infrastructure changes mean that the repo server