我刚刚为我的家庭PC安装了一个新的操作系统,安装了IntelliJ并克隆了一个需要Corda的项目。(为了在这里解释这个问题,我使用了corda/samples存储库)。
导入gradle项目时,我会得到以下错误:
A problem occurred configuring root project 'cordapp-example'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve net.corda.plugins:cordapp:4.0.45.
Required by:
project :
> Could not resolve net.corda.plugins:cordapp:4.0.45.
> Could not get resource 'https://ci-artifactory.corda.r3cev.com/artifactory/corda-releases/net/corda/plugins/cordapp/4.0.45/cordapp-4.0.45.pom'.
> Could not GET 'https://ci-artifactory.corda.r3cev.com/artifactory/corda-releases/net/corda/plugins/cordapp/4.0.45/cordapp-4.0.45.pom'.
> Connect to ci-artifactory.corda.r3cev.com:443 [ci-artifactory.corda.r3cev.com/13.93.114.78] failed: Connection refused (Connection refused)
> Could not resolve net.corda.plugins:cordformation:4.0.45.
Required by:
project :
> Could not resolve net.corda.plugins:cordformation:4.0.45.
> Could not get resource 'https://ci-artifactory.corda.r3cev.com/artifactory/corda-releases/net/corda/plugins/cordformation/4.0.45/cordformation-4.0.45.pom'.
> Could not GET 'https://ci-artifactory.corda.r3cev.com/artifactory/corda-releases/net/corda/plugins/cordformation/4.0.45/cordformation-4.0.45.pom'.
> Connect to ci-artifactory.corda.r3cev.com:443 [ci-artifactory.corda.r3cev.com/13.93.114.78] failed: Connection refused (Connection refused)
> Could not resolve net.corda.plugins:quasar-utils:4.0.45.
Required by:
project :
> Could not resolve net.corda.plugins:quasar-utils:4.0.45.
> Could not get resource 'https://ci-artifactory.corda.r3cev.com/artifactory/corda-releases/net/corda/plugins/quasar-utils/4.0.45/quasar-utils-4.0.45.pom'.
> Could not GET 'https://ci-artifactory.corda.r3cev.com/artifactory/corda-releases/net/corda/plugins/quasar-utils/4.0.45/quasar-utils-4.0.45.pom'.
> Connect to ci-artifactory.corda.r3cev.com:443 [ci-artifactory.corda.r3cev.com/13.93.114.78] failed: Connection refused (Connection refused)总之..。
连接到ci-artifactory.corda.r3cev.com:443 ci-artifactory.corda.r3cev.com/13.93.114.78失败:连接被拒绝(连接被拒绝)
我在我的工作PC上尝试了同样的事情,它已经运行了IntelliJ和Corda一段时间了,但我没有遇到同样的问题,所以我的第一个假设是,这是我的家用PC的问题,尽管我并不完全相信,所以在我的工作机器上,强制清除了所有gradle缓存(失效缓存和从IntelliJ重新启动对您没有帮助)。
rm -rf $HOME/.gradle/caches/现在,我在我的工作PC上也遇到了同样的问题,这意味着,如果依赖项已经在本地缓存,gradle就不会费心去获取它们了,这是我所期望的。
对如何修复有什么想法吗?
发布于 2019-08-18 20:48:54
在这种情况下,R3的DevOps似乎在手工服务器上执行一些维护。这个问题不太可能经常出现,但我会保持开放,以防其他人碰巧遇到这个问题。
P.S.我还将我的gradle依赖项升级到现在使用以下内容:
repositories {
maven { url 'https://software.r3.com/artifactory/corda' }
...
}https://stackoverflow.com/questions/57539331
复制相似问题