即使更新了 grails-wrapper.jar,Grails 也无法正常工作
Grails is not working even when grails-wrapper.jar is updated
我必须在我的 grails 3 应用程序中安装 spring 安全性并开始收到已知错误,应该通过替换 grails-wrapper.jar.
来解决
那是错误:
A problem occurred configuring root project 'cmberp'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve org.grails:grails-gradle-plugin:3.3.11.
Required by:
:cmberp:1.0.3-SNAPSHOT
> Could not resolve org.grails:grails-gradle-plugin:3.3.11.
> Failed to download SHA1 for resource 'http://repo.grails.org/grails/core/org/grails/grails-gradle-plugin/3.3.11/grails-gradle-plugin-3.3.11.pom'.
> For input string: "<ht"
所以我按照 https://grails.org/blog/2021-06-10-grails-wrapper-update.html 中的步骤将 /media/alfredo/1TBHDD/CMB/Code projects/Grails 3/plataforma-mserp/grails-wrapper.jar 中的 grails-wrapper.jar 替换为 Grails 中的那个3 版本在文件中评论。
之后我回顾了我的 build.gradle
buildscript {
repositories {
mavenLocal()
//maven { url "http://repo.grails.org/artifactory/core" }
maven { url "http://repo.grails.org/grails/core" }
}
dependencies {
classpath files('gradle/gradle-trust-all.jar')
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath "org.grails.plugins:hibernate5:${gormVersion-".RELEASE"}"
classpath "org.grails.plugins:views-gradle:1.1.6"
classpath "net.researchgate:gradle-release:2.8.1"
classpath 'io.github.robwin:jgitflow-gradle-plugin:0.6.0'
}
}
repositories {
mavenLocal()
maven { url "http://repo.grails.org/grails/core" }
}
唯一的区别是我使用了 http 而不是 https。我尝试使用 https,但我遇到了很多其他问题。
有人可以帮忙吗?
谢谢
阿尔弗雷多
我认为这都与上周左右的回购 URL 问题有关。更多信息在此处 https://github.com/grails/grails-core/issues/11825,但总的来说,听起来 http
URL 要么消失了,要么已经消失了。
具体参考 https://github.com/grails/grails-core/issues/11825#issuecomment-859692299,其中 Jeff Brown 指出
If the HTTP URLs do resume working without a redirect that will be for a limited period. I would not suggest reverting any updates you have already made to the HTTPS repository URLs. I would also strongly consider taking the time to update your remaining applications.
更改为 https
然后带着你 运行 遇到的任何问题回来...我希望这里有人可以帮助解决这些问题。
我必须在我的 grails 3 应用程序中安装 spring 安全性并开始收到已知错误,应该通过替换 grails-wrapper.jar.
来解决那是错误:
A problem occurred configuring root project 'cmberp'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve org.grails:grails-gradle-plugin:3.3.11.
Required by:
:cmberp:1.0.3-SNAPSHOT
> Could not resolve org.grails:grails-gradle-plugin:3.3.11.
> Failed to download SHA1 for resource 'http://repo.grails.org/grails/core/org/grails/grails-gradle-plugin/3.3.11/grails-gradle-plugin-3.3.11.pom'.
> For input string: "<ht"
所以我按照 https://grails.org/blog/2021-06-10-grails-wrapper-update.html 中的步骤将 /media/alfredo/1TBHDD/CMB/Code projects/Grails 3/plataforma-mserp/grails-wrapper.jar 中的 grails-wrapper.jar 替换为 Grails 中的那个3 版本在文件中评论。
之后我回顾了我的 build.gradle
buildscript {
repositories {
mavenLocal()
//maven { url "http://repo.grails.org/artifactory/core" }
maven { url "http://repo.grails.org/grails/core" }
}
dependencies {
classpath files('gradle/gradle-trust-all.jar')
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath "org.grails.plugins:hibernate5:${gormVersion-".RELEASE"}"
classpath "org.grails.plugins:views-gradle:1.1.6"
classpath "net.researchgate:gradle-release:2.8.1"
classpath 'io.github.robwin:jgitflow-gradle-plugin:0.6.0'
}
}
repositories {
mavenLocal()
maven { url "http://repo.grails.org/grails/core" }
}
唯一的区别是我使用了 http 而不是 https。我尝试使用 https,但我遇到了很多其他问题。
有人可以帮忙吗?
谢谢
阿尔弗雷多
我认为这都与上周左右的回购 URL 问题有关。更多信息在此处 https://github.com/grails/grails-core/issues/11825,但总的来说,听起来 http
URL 要么消失了,要么已经消失了。
具体参考 https://github.com/grails/grails-core/issues/11825#issuecomment-859692299,其中 Jeff Brown 指出
If the HTTP URLs do resume working without a redirect that will be for a limited period. I would not suggest reverting any updates you have already made to the HTTPS repository URLs. I would also strongly consider taking the time to update your remaining applications.
更改为 https
然后带着你 运行 遇到的任何问题回来...我希望这里有人可以帮助解决这些问题。