【问题标题】:A problem occurred configuring root project 'cordapp-template-java-release-V4'配置根项目“cordapp-template-java-release-V4”时出现问题
【发布时间】:2021-05-30 16:10:36
【问题描述】:

试图从 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

【问题讨论】:

标签: java corda


【解决方案1】:

感谢@opticlyptic 在上面的 cmets 中指出这一点。值得一提的是,有时存储库确实会出现故障或中断。

如果这仍然是一个问题,请仔细检查您的 gradle 存储库。最新版本应该是 software.r3.com。 您可以在此处找到 gradle 存储库的示例:https://github.com/corda/cordapp-template-java/blob/release-V4/repositories.gradle

【讨论】:

  • 我已根据您的共享链接更改了 gradle repo,但存在同样的问题。
猜你喜欢
  • 2020-10-17
  • 2020-08-24
  • 2021-05-15
  • 2021-04-09
  • 2020-06-28
  • 1970-01-01
  • 1970-01-01
  • 2020-11-23
  • 1970-01-01
相关资源
最近更新 更多