maven及clojars镜像
lbp0200
#1
2赞
stardiviner
#2
貌似设置了没有改变URL啊。
设置后,重新运行命令 $ lein
输出:
Aug 19, 2016 8:55:15 AM org.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request to {s}->https://clojars.org:443: Network is unreachable
Aug 19, 2016 8:55:15 AM org.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request to {s}->https://clojars.org:443
Could not find artifact com.android.support:multidex:aar:1.0.0 in central (https://repo1.maven.org/maven2/)
Could not find artifact com.android.support:multidex:aar:1.0.0 in clojars (https://clojars.org/repo/)
Could not find artifact com.android.support:multidex:aar:1.0.0 in android-support (file://extras/android/m2repository)
Could not find artifact com.android.support:multidex:aar:1.0.0 in android-play-services (file://extras/google/m2repository)
This could be due to a typo in :dependencies or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
lbp0200
#9
Clojure/Lein 配置
vim ~/.lein/profiles.clj
{:user
{:mirrors
{
"central" {:name "daocloud-lbp0200" :url "http://lbp0200-maven.daoapp.io/maven2"}
"clojars" {:name "clojars-daocloud" :url "http://lbp0200-maven.daoapp.io/repo" :repo-manager true}
}
}
}
我刚才试了下,有缓存时,下载速度可以到8M,跑满公司的带宽。