Fork me on GitHub
#leiningen
<
2017-12-07
>
ibcoleman15:12:03

Hi, sorry if this is a basic question, but… Does anyone know why leiningen seems to be trying to use localhost to hit the maven repos?

lein new droid second-droid-clj --snapshot
Could not find metadata droid:lein-template/maven-metadata.xml in local (/Users/ian/.m2/repository)
Could not transfer metadata droid:lein-template/maven-metadata.xml from/to central (): Connect to  [localhost/127.0.0.1] failed: Connection refused (Connection refused)
Could not transfer metadata droid:lein-template/maven-metadata.xml from/to clojars (): Connect to  [localhost/127.0.0.1] failed: Connection refused (Connection refused)
This could be due to a typo in :dependencies, file system permissions, or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
Could not find template droid on the classpath.

danielcompton17:12:11

@ibcoleman do you have a proxy?

ibcoleman17:12:25

Not that I know of--at least ping returns a reasonable IP and so does Maven…

ibcoleman17:12:39

is there a verbose flag for executing leiningen?

Alex Miller (Clojure team)19:12:16

yes, just set DEBUG env var to anything

ibcoleman21:12:04

Thanks @U064X3EF3; I see the library the lein process is using, but otherwise just the same error.

danielcompton17:12:00

lein looks up an HTTP_PROXY and HTTPS_PROXY env var to use

danielcompton17:12:45

that is weird though,

ibcoleman18:12:52

➜  clojure-droid echo $HTTP_PROXY

➜  clojure-droid echo $HTTPS_PROXY

➜  clojure-droid 

ibcoleman18:12:14

Hmm, so no env settings for those…

dottedmag19:12:15

Hello. I’d like to add a dependency for a cljs project, only to be used when running tests (using lein doo), where do I put it? The project.clj in question is https://github.com/flexsurfer/re-frisk/blob/master/project.clj