search task should honor proxy and mirror config #281

Closed
klauern opened this Issue Sep 29, 2011 · 6 comments

Comments

3 participants
@klauern

klauern commented Sep 29, 2011

I have had Maven installed on my Windows laptop for a while, and I have been behind a proxy for it, too. However, lein search something always throws an error that makes me wonder if it's not handling the proxy and that it isn't reading the settings.xml either:

PS C:\mydocs> lein search hadoop
Warning: couldn't download index for http://repo1.maven.org/maven2
Warning: couldn't download index for http://clojars.org/repo/
PS C:\mydocs>

But if I create a new project:

PS C:\mydocs> lein new thing
Created new project in: C:\mydocs\thing

PS C:\mydocs> cd thing

PS C:\mydocs\thing> lein deps
Downloading: org/clojure/clojure/1.2.1/clojure-1.2.1.pom from central
Transferring 1K from central
Downloading: org/clojure/clojure/1.2.1/clojure-1.2.1.jar from central
Transferring 3165K from central
Copying 1 file to C:\mydocs\thing\lib

PS C:\mydocs\thing>

Also, wouldn't Leiningen take my settings.xml and parse the <mirror> settings for it? I have a corporate Maven repo (Nexus) that has a lot of dependencies that I could/would use, but why wouldn't lein search traverse that repo instead of just M2 Central and CloJars?

@technomancy

This comment has been minimized.

Show comment
Hide comment
@technomancy

technomancy Oct 24, 2011

Owner

This is not likely to happen in Leiningen 1.x since we're going to ditch maven-ant-tasks in favour of Aether for 2.0.

Owner

technomancy commented Oct 24, 2011

This is not likely to happen in Leiningen 1.x since we're going to ditch maven-ant-tasks in favour of Aether for 2.0.

@klauern

This comment has been minimized.

Show comment
Hide comment
@klauern

klauern Nov 17, 2011

Referencing #332: would this be something I could handle in the init.clj file instead?

klauern commented Nov 17, 2011

Referencing #332: would this be something I could handle in the init.clj file instead?

@Raynes

This comment has been minimized.

Show comment
Hide comment
@Raynes

Raynes Feb 25, 2012

Collaborator

@technomancy What is going on with this issue? Looks like you didn't respond.

Collaborator

Raynes commented Feb 25, 2012

@technomancy What is going on with this issue? Looks like you didn't respond.

@technomancy

This comment has been minimized.

Show comment
Hide comment
@technomancy

technomancy Feb 25, 2012

Owner

Unifying proxy settings between aether and search is on the table for 2.0 after the preview. (or before if someone wants to submit a patch)

Owner

technomancy commented Feb 25, 2012

Unifying proxy settings between aether and search is on the table for 2.0 after the preview. (or before if someone wants to submit a patch)

@technomancy

This comment has been minimized.

Show comment
Hide comment
@technomancy

technomancy Aug 16, 2012

Owner

Since the search task was rewritten to use Maven's indexer library, we might get this for free. Could someone try it with preview8?

Owner

technomancy commented Aug 16, 2012

Since the search task was rewritten to use Maven's indexer library, we might get this for free. Could someone try it with preview8?

@technomancy technomancy referenced this issue in cemerick/pomegranate Aug 23, 2012

Closed

Expose mirror-selector logic #41

@technomancy

This comment has been minimized.

Show comment
Hide comment
@technomancy

technomancy Jan 15, 2013

Owner

Going to close this; if it's still an issue we can reopen with details.

Owner

technomancy commented Jan 15, 2013

Going to close this; if it's still an issue we can reopen with details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment