我尝试从命令提示符运行cordapp-example。但是当我输入“gradlew.bat deployNodes”命令时,我得到了如下错误。
Execution failed for task ':kotlin-source:compileKotlin'.
Could not resolve all dependencies for configuration ':kotlin-source:compileClasspath'.
Could not determine artifacts for org.jolokia:jolokia-war:1.3.7
Could not get resource 'https://jcenter.bintray.com/org/jolokia/jolokia-war/1.3.7/jolokia-war-1.3.7.war'.
Could not HEAD 'https://jcenter.bintray.com/org/jolokia/jolokia-war/1.3.7/jolokia-war-1.3.7.war'.
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
我已经完成了“keytool -importcert”命令将jolokia-war的证书导入java cacerts,但错误仍然存在。
有谁知道如何解决这个问题?
答案 0 :(得分:0)
错误消息表明编译失败,因为您的计算机无法在以下位置下载资源:https://jcenter.bintray.com/org/jolokia/jolokia-war/1.3.7/jolokia-war-1.3.7.war
。
该URL对我有用,我能够下载该资源。您很可能在防火墙后面,否则将无法下载此资源。您需要使您的计算机能够访问此资源以编译和部署节点。