【问题标题】:repo.grails.org - cert expiredrepo.grails.org - 证书过期
【发布时间】:2018-08-29 01:40:33
【问题描述】:

由于 repo 证书已过期,无法再构建我的项目。我试过使用 --offline 但它似乎仍然试图点击 url 并失败。对替代方案有什么想法吗?

build.gradle...

repositories {
    mavenLocal()
    maven { url "https://repo.grails.org/grails/core" }
}

【问题讨论】:

  • 新证书已经到位。

标签: grails grails-plugin


【解决方案1】:

这已在此处报告,请观看报告以获取进度信息:https://github.com/grails/grails-core/issues/11082

您可以暂时将 https 更改为 http,但请务必在证书问题解决后尽快恢复该更改。

【讨论】:

  • 谢谢伯特!愚蠢的我什至没有想过在github上发布它
【解决方案2】:

我有同样的问题,解决方法是在 build.gradle 文件中使用 http 而不是 https

buildscript {
    repositories {
        mavenLocal()
        maven { url "http://repo.grails.org/grails/core" }

    }
....
}


repositories {
    mavenLocal()
    maven { url "http://repo.grails.org/grails/core" }
}

【讨论】:

    猜你喜欢
    • 2018-09-27
    • 2014-10-14
    • 2021-05-08
    • 2018-02-24
    • 2016-09-21
    • 2014-03-13
    • 2020-09-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多