swannodette / textmate-clojure

TextMate bundle for Clojure
91 stars 25 forks source link

Failure behind proxy #16

Open jdmuys opened 13 years ago

jdmuys commented 13 years ago

At home it works: The first time I evaluate an expression (using ctrl-X), the output says it's downloading something. Clojure, AFAICS.

At work it doesn't work at all: the download fails every time. Here is the error output I get:

[deps] Fetching dependencies... Downloading: org/clojure/clojure/1.2.0/clojure-1.2.0.pom from repository clojure at http://build.clojure.org/releases Unable to locate resource in repository [INFO] Unable to find resource 'org.clojure:clojure:pom:1.2.0' in repository clojure (http://build.clojure.org/releases)

(and it goes on and on for at least two pages, with no line break...).

I suspect this is because at work, we are behind a proxy. For example, to install cake, I could just simply do:

sudo gem install cake

But:

sudo gem install cake -p http://x.x.x.x:ppp

(where x.x.x.x is our local proxy IP address, and ppp is its port).

So my question is: how can I tell the bundle to use a proxy for its downloads?

jdmuys commented 13 years ago

I took the plunge and actually started to read all the error logorrhea. Somewhere in there, is the following suggestion:

Try Downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.clojure -DartifactId=clojure -Dversion=1.2.0 -Dpackaging=jar -Dfile=/path/to/file

So I did download clojure 1.2 from its web site. I even built it with ant as suggested in readme.txt (successfully according to the output).

But then I am at loss on how to install. The command suggested implies I should pass it /path/to/file. But which file? I tried using clojure-1.2.0.pom, but it fails too, this time with error such as:

[INFO] Error building POM (may not be this project's POM).
Project ID: org.apache.maven.plugins:maven-install-plugin
Reason: POM 'org.apache.maven.plugins:maven-install-plugin' not found in repository: Unable to download the artifact from any repository

The barrier to entry to this stuff is getting very high.

Any help appreciated.