Fork me on GitHub
#leiningen
<
2017-11-24
>
tengstrand07:11:43

When you depend on a jar, is it possible to exclude one or more namespaces from that jar?

jumar07:11:19

I don't think so - why do you want to do that?

noisesmith16:11:54

it could be an issue if two projects defined the same namespace

greg_arcara17:11:53

can anyone give me a hand figuring out how to resolve this error?

$ lein repl
Could not transfer artifact org.clojure:tools.nrepl:jar:0.2.12 from/to central (): Connect to  [localhost/127.0.0.1] failed: Connection refused (Connection refused)
Could not transfer artifact org.clojure:tools.nrepl:jar:0.2.12 from/to clojars (): Connect to  [localhost/127.0.0.1] failed: Connection refused (Connection refused)
Could not transfer artifact clojure-complete:clojure-complete:jar:0.2.4 from/to central (): Connect to  [localhost/127.0.0.1] failed: Connection refused (Connection refused)
Could not transfer artifact clojure-complete:clojure-complete:jar:0.2.4 from/to clojars (): Connect to  [localhost/127.0.0.1] failed: Connection refused (Connection refused)
Could not transfer artifact org.clojure:tools.nrepl:pom:0.2.12 from/to central (): Connect to  [localhost/127.0.0.1] failed: Connection refused (Connection refused)
Could not transfer artifact clojure-complete:clojure-complete:pom:0.2.4 from/to central (): 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.
Exception in thread "Thread-1" clojure.lang.ExceptionInfo: Could not resolve dependencies {:suppress-msg true, :exit-code 1}

greg_arcara17:11:00

I've tried a complete reinstall and haven't had luck

noisesmith17:11:20

@greg_arcara what operating system?

greg_arcara18:11:29

@noisesmith any ideas? I am close to reinstalling my OS

noisesmith18:11:47

how did you install leiningen - did you get it from apt?

greg_arcara18:11:14

I downloaded the script and put it into my path

noisesmith18:11:43

in that case I don't know why that would be failing, unless you have a weird host config for http://repo1.maven.org or maybe ~/.m2/ has bad permissions (eg. if you ran lein as root and now your user can't write to it)

noisesmith18:11:58

but those are just wild guesses, sorry

greg_arcara18:11:42

Yea, I deleted both my /.m2 and /.lein folders before I installed the script

noisesmith18:11:44

oh - is there a stack trace or anything? there are issues with keystores on ubuntu

greg_arcara18:11:54

It's not keystore

greg_arcara18:11:22

I don't know why it says connect to localhost

greg_arcara18:11:25

that seems weird to me

greg_arcara18:11:34

host is normal stuff

noisesmith18:11:44

right, which is what made me think something might be up with your hosts config

noisesmith18:11:50

but honestly I have no idea what's going on here

greg_arcara18:11:08

$ cat /etc/hosts
127.0.0.1	localhost
127.0.1.1	ComputerName

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

greg_arcara18:11:26

ok thanks, I appreciate you taking a look

greg_arcara18:11:47

ah maybe I should try freenode

noisesmith18:11:13

yeah, that's where the actual leiningen devs hang out

greg_arcara18:11:39

I just noticed in the topic, thanks

Alex Miller (Clojure team)23:11:06

Check your Java version too - older ones don’t handle the SNI SSL used by new Clojars CDN which is used by default in latest lein