我试着从https://github.com/corda/cordapp-template-java.git上运行一个cordapp示例。然后我遇到了一个错误。

A problem occurred configuring root project 'cordapp-template-java-release-V4'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve net.corda.plugins:cordapp:5.0.12.
Required by:
project :
> Could not resolve net.corda.plugins:cordapp:5.0.12.
> Could not get resource 'https://repo.maven.apache.org/maven2/net/corda/plugins/cordapp/5.0.12/cordapp-5.0.12.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/net/corda/plugins/cordapp/5.0.12/cordapp-5.0.12.pom'.
> repo.maven.apache.org
> Could not resolve net.corda.plugins:cordapp:5.0.12.
> Could not get resource 'https://jcenter.bintray.com/net/corda/plugins/cordapp/5.0.12/cordapp-5.0.12.pom'.
> Could not GET 'https://jcenter.bintray.com/net/corda/plugins/cordapp/5.0.12/cordapp-5.0.12.pom'.
> jcenter.bintray.com
> Could not resolve net.corda.plugins:cordapp:5.0.12.
> Could not get resource 'https://software.r3.com/artifactory/corda-releases/net/corda/plugins/cordapp/5.0.12/cordapp-5.0.12.pom'.
> Could not GET 'https://software.r3.com/artifactory/corda-releases/net/corda/plugins/cordapp/5.0.12/cordapp-5.0.12.pom'.
> software.r3.com
> Could not resolve net.corda.plugins:cordformation:5.0.12.
Required by:
project :
> Could not resolve net.corda.plugins:cordformation:5.0.12.
> Could not get resource 'https://repo.maven.apache.org/maven2/net/corda/plugins/cordformation/5.0.12/cordformation-5.0.12.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/net/corda/plugins/cordformation/5.0.12/cordformation-5.0.12.pom'.
> repo.maven.apache.org
> Could not resolve net.corda.plugins:cordformation:5.0.12.
> Could not get resource 'https://jcenter.bintray.com/net/corda/plugins/cordformation/5.0.12/cordformation-5.0.12.pom'.
> Could not GET 'https://jcenter.bintray.com/net/corda/plugins/cordformation/5.0.12/cordformation-5.0.12.pom'.
> jcenter.bintray.com
> Could not resolve net.corda.plugins:cordformation:5.0.12.
> Could not get resource 'https://software.r3.com/artifactory/corda-releases/net/corda/plugins/cordformation/5.0.12/cordformation-5.0.12.pom'.
> Could not GET 'https://software.r3.com/artifactory/corda-releases/net/corda/plugins/cordformation/5.0.12/cordformation-5.0.12.pom'.
> software.r3.com
> Could not resolve net.corda.plugins:quasar-utils:5.0.12.
Required by:
project :
> Could not resolve net.corda.plugins:quasar-utils:5.0.12.
> Could not get resource 'https://repo.maven.apache.org/maven2/net/corda/plugins/quasar-utils/5.0.12/quasar-utils-5.0.12.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/net/corda/plugins/quasar-utils/5.0.12/quasar-utils-5.0.12.pom'.
> repo.maven.apache.org
> Could not resolve net.corda.plugins:quasar-utils:5.0.12.
> Could not get resource 'https://jcenter.bintray.com/net/corda/plugins/quasar-utils/5.0.12/quasar-utils-5.0.12.pom'.
> Could not GET 'https://jcenter.bintray.com/net/corda/plugins/quasar-utils/5.0.12/quasar-utils-5.0.12.pom'.
> jcenter.bintray.com
> Could not resolve net.corda.plugins:quasar-utils:5.0.12.
> Could not get resource 'https://software.r3.com/artifactory/corda-releases/net/corda/plugins/quasar-utils/5.0.12/quasar-utils-5.0.12.pom'.
> Could not GET 'https://software.r3.com/artifactory/corda-releases/net/corda/plugins/quasar-utils/5.0.12/quasar-utils-5.0.12.pom'.
> software.r3.com
> Could not resolve org.springframework.boot:spring-boot-gradle-plugin:2.0.2.RELEASE.
Required by:
project :
> Could not resolve org.springframework.boot:spring-boot-gradle-plugin:2.0.2.RELEASE.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-gradle-plugin/2.0.2.RELEASE/spring-boot-gradle-plugin-2.0.2.RELEASE.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-gradle-plugin/2.0.2.RELEASE/spring-boot-gradle-plugin-2.0.2.RELEASE.pom'.
> repo.maven.apache.org
> Could not resolve org.springframework.boot:spring-boot-gradle-plugin:2.0.2.RELEASE.
> Could not get resource 'https://jcenter.bintray.com/org/springframework/boot/spring-boot-gradle-plugin/2.0.2.RELEASE/spring-boot-gradle-plugin-2.0.2.RELEASE.pom'.
> Could not GET 'https://jcenter.bintray.com/org/springframework/boot/spring-boot-gradle-plugin/2.0.2.RELEASE/spring-boot-gradle-plugin-2.0.2.RELEASE.pom'.
> jcenter.bintray.com
> Could not resolve org.springframework.boot:spring-boot-gradle-plugin:2.0.2.RELEASE.
> Could not get resource 'https://software.r3.com/artifactory/corda-releases/org/springframework/boot/spring-boot-gradle-plugin/2.0.2.RELEASE/spring-boot-gradle-plugin-2.0.2.RELEASE.pom'.
> Could not GET 'https://software.r3.com/artifactory/corda-releases/org/springframework/boot/spring-boot-gradle-plugin/2.0.2.RELEASE/spring-boot-gradle-plugin-2.0.2.RELEASE.pom'.
> software.r3.com发布于 2021-03-02 02:37:54
感谢@opticlyptic在上面的评论中指出了这一点。值得一提的是,有时存储库确实会出现停机或停机。
如果这仍然是一个问题,请仔细检查您的gradle存储库。它的最新版本应该是software.r3.com。你可以在这里找到一个gradle仓库的例子:https://github.com/corda/cordapp-template-java/blob/release-V4/repositories.gradle
https://stackoverflow.com/questions/66416986
复制相似问题