当lein run命令从xterm引发异常时失败



nOb级别-

我无法让它运行。依赖项要先下载,然后跳到-main(这是我的理解)。

项目.clj是:

(defproject todo-list "0.1.0-SNAPSHOT"   
 :description "FIXME: write description"   
 :url "http://example.com/FIXME"   
 :license {:name "Eclipse Public License"
        :url "http://www.eclipse.org/legal/epl-v10.html"}     
:dependencies [
              [org.clojure/clojure "1.8.0"]
              [ring "1.4.0"]
              [compojure "1.3.4"]
              ]
:main todo-list.core
:profiles {:dev
         {:main todo-list.core/-dev-main}}   

错误消息为:无法将工件org.clojure:clojure:pom:1.8.0从/转移到中心(https://repo1.maven.org/maven2/):sun.security.validator.ValidatorException:PKIX路径生成失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到到请求目标的有效证书路径等……等

无法将工件clojure complete:clojure full:pom:0.2.4从/转移到中心(https://repo1.maven.org/maven2/):sun.security.validator.ValidatorException:PKIX路径生成失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到到请求目标的有效证书路径这可能是由于中的拼写错误:依赖项或网络问题。如果您使用代理,请尝试设置"http_proxy"环境变量。

我已经考虑过其他解决方案,但似乎都不适用。

由于我在家庭网络上的xterm中使用Ubuntu 15.10,没有使用UniFi EdgeRouter提供连接的广告屏蔽程序。我在电脑上没有配置防火墙。

当我使用"lein-deps"时也有同样的问题

顺便说一句,我的OSX安装运行良好,我已经将相同的代码库镜像到Ubuntu。

有什么建议吗?

我有解决方案:如果您在Ubuntu上使用的是java7或java8,并且遇到了如上所述的类似问题,请参阅本页-[stackoverflow](尝试运行lein时出现异常)在xterm中执行以下操作:

"sudo-i"输入您的PWD

剪切并粘贴这个-"/var/lib/dpkg/info/ca-certificates-java.postinst-configure"

完成了!

Ubuntu的根本问题没有在certs区域中包含到java的链接。

解决了!所有cre3dit都转到IRC#clojure家伙!

最新更新