docker - Grails clean 命令在 Ubuntu docker 容器中给出错误

标签 docker ubuntu grails gitlab

我正在尝试在 Docker 容器中运行的 Ubuntu 机器上运行 Grails -clean 命令,但出现以下错误:

$ grails clean

| Loading Grails 2.4.0
| Configuring classpath
| Error Resolve error obtaining dependencies: Failed to read artifact descriptor for xalan:serializer:jar:2.7.1 (Use --stacktrace to see the full trace)
| Error Required Grails build dependencies were not found. This is normally due to internet connectivity issues (such as a misconfigured proxy) or missing repositories in grails-app/conf/BuildConfig.groovy. Please verify your configuration to continue.
由于这个问题,我无法继续使用 grails 部署 war 文件。我检查了“BuildConfig.groovy”并添加了一些存储库以及在各种门户中提到的,但没有运气。一次又一次地得到同样的错误。
任何帮助将不胜感激。
谢谢,
阿克沙特

最佳答案

尝试使用 https 而不是仅使用 http。

    mavenRepo "https://repo.grails.org/grails/core"
    mavenRepo "https://repo.grails.org/grails/plugins"
由于 Java 8 默认为 TLS 1.2,因此请尝试在 Java 7 上运行 Java 8。

关于docker - Grails clean 命令在 Ubuntu docker 容器中给出错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68446339/

相关文章:

python - 无法从docker-compose生成django.po文件

docker - Docker编写Nginx,Express,Lakeencrypt SSL获得502 Bad gateway

python - pip3requirements.txt 充满垃圾

grails - 如何在Grails War构建中包含simple-json

Gradle 构建在 jenkins :alpine container: UnsatisfiedLinkError: linux-amd64/libnative-platform. so : libstdc++. so.6 中失败:

docker - 库 wkhtmltopdf 在 Docker 中不工作

linux - 如何在 Ubuntu 上安装 mingw32?

linux - 从 LXC 迁移到 LXD

grails - 限制访问staticcontent,grails Web-app中的URL

sql - 如何同时按最大日期和组获取 grails 中的记录