CUBA新建项目报错问题

A problem occurred configuring root project 'untitled12'.

> Could not resolve all artifacts for configuration ':classpath'.

   > Could not resolve com.haulmont.gradle:cuba-plugin:7.2.13.

     Required by:

         project :

      > Could not resolve com.haulmont.gradle:cuba-plugin:7.2.13.

         > Could not get resource 'https://nexus.cuba-platform.cn/repository/cuba/com/haulmont/gradle/cuba-plugin/7.2.13/cuba-plugin-7.2.13.pom'.

            > Could not GET 'https://nexus.cuba-platform.cn/repository/cuba/com/haulmont/gradle/cuba-plugin/7.2.13/cuba-plugin-7.2.13.pom'.

               > Connect to 172.16.3.197:3128 [/172.16.3.197] failed: Connection refused: connect

      > Could not resolve com.haulmont.gradle:cuba-plugin:7.2.13.

         > Could not get resource 'https://maven.aliyun.com/repository/public/com/haulmont/gradle/cuba-plugin/7.2.13/cuba-plugin-7.2.13.pom'.

            > Could not GET 'https://maven.aliyun.com/repository/public/com/haulmont/gradle/cuba-plugin/7.2.13/cuba-plugin-7.2.13.pom'.

               > Connect to 172.16.3.197:3128 [/172.16.3.197] failed: Connection refused: connect



* Try:

Run with --info or --debug option to get more log output. Run with --scan to get full insights.

《以上为报错内容》
使用中国仓库创建项目失败 参考 了这篇帖子,5楼的设置 没看懂具体设置 哪里,也不知道是否使用于上述 错误。请问有啥好的解决方案

1 个赞

你这个问题跟那个帖子不太一样,你这个感觉是连接不上的问题。

为啥会连不上。。。网络是正常的。。。

我这边刚新建了个项目,没有这个问题哦。

你可以换个网络试试,比如连一下手机的共享 wifi。

好的 好像是证书 认证方面的问题,暂时不解决了 换了一台电脑正常了。感谢解答

image
新建项目是没问题。这项目在本机运行正常,但是换一台机器就显示本错误

换一台机器是怎么换的呢?

我当前这个项目是在GIT上的,然后别人电脑拉取下来的项目,打开后下载依赖就出现这个问题。

哦,那你用 @weborld 帖子里面提到的方法试试看:

  1. 在 chrome 浏览器打开 https://nexus.cuba-platform.cn/repository/cuba/com/haulmont/gradle/cuba-plugin/7.2.13/cuba-plugin-7.2.13.pom 这个网址,然后点击 网址前面的那个 :lock: 图标, 选择 “链接是安全的” -> “证书有效” , 在弹出的证书框中,选择 “详细信息” tab,点击 “复制到文件…” 按钮
  2. 选择导出 DER 格式。记住你导出的 cer 文件位置。
  3. 查找本地 jre 的 security 的 cert 存放目录,运行 keytool -import -alias example -keystore <JRE 的 cert 存放目录> -file <导出的 cer 文件> ,这里要求输入密码,默认 changeit
  4. 重启JVM或者电脑。

好的,容我试一下。