gpt4 book ai didi

gradle - 无法单独导入grails插件:9.0.0.M4

转载 作者:行者123 更新时间:2023-12-02 15:42:15 24 4
gpt4 key购买 nike

我正在努力为build.gradle添加依赖项

这是grails的独立依赖项,您可以找到它here

因此,我在compile "org.grails.plugins:standalone:9.0.0.M4"文件的dependencies中添加了build.gradle行。

当项目尝试解决所有依赖项时,出现此错误:

Could not find org.grails.plugins:standalone:9.0.0.M4.
Searched in the following locations:
- file:/C:/Users/ledev/.m2/repository/org/grails/plugins/standalone/9.0.0.M4/standalone-9.0.0.M4.pom
- file:/C:/Users/ledev/.m2/repository/org/grails/plugins/standalone/9.0.0.M4/standalone-9.0.0.M4.jar
- https://repo.grails.org/grails/core/org/grails/plugins/standalone/9.0.0.M4/standalone-9.0.0.M4.pom
- https://repo.grails.org/grails/core/org/grails/plugins/standalone/9.0.0.M4/standalone-9.0.0.M4.jar
- https://build.shibboleth.net/nexus/content/repositories/releases/org/grails/plugins/standalone/9.0.0.M4/standalone-9.0.0.M4.pom
- https://build.shibboleth.net/nexus/content/repositories/releases/org/grails/plugins/standalone/9.0.0.M4/standalone-9.0.0.M4.jar

我尝试了这些主题,但没有成功:
Grails Standalone Plugin Not Found
Create standalone application with grails

谢谢

最佳答案

由于您具有build.gradle,因此应该使用grails 3或4,但是尝试使用grails 2插件。这些插件不兼容。

Grails 3内置了对独立JAR的支持。

https://docs.grails.org/3.3.10/guide/single.html#deploymentStandalone

关于gradle - 无法单独导入grails插件:9.0.0.M4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56240449/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com