grails即使在grails-wrapper.jar更新时也无法工作

guz6ccqo  于 2021-09-30  发布在  Java
关注(0)|答案(1)|浏览(345)

我必须在我的Grails3应用程序中安装SpringSecurity,并开始接收已知错误,该错误应该通过替换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/1tbhd/cmb/code projects/grails 3/plataforma msep/grails-wrapper.jar中的grails-wrapper.jar替换为文档中评论的grails 3版本的grails-wrapper.jar。
之后我回顾了我的身材

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,但我还有很多其他问题。
有人能帮忙吗?
谢谢
阿尔弗雷多

zed5wv10

zed5wv101#

我相信这一切都与过去一周左右的回购url问题有关。更多信息在这里https://github.com/grails/grails-core/issues/11825 但总的来说,这听起来像 http URL要么正在消失,要么已经消失。
具体参考https://github.com/grails/grails-core/issues/11825#issuecomment-859692299其中jeff brown陈述
如果http URL在没有重定向的情况下恢复工作,那么重定向将持续一段有限的时间。我不建议恢复您对https存储库URL所做的任何更新。我也强烈考虑花时间更新您剩余的应用程序。
改为 https 然后带着你遇到的任何问题回来……我希望这里有人能帮助你解决这些问题。

相关问题