我正在努力为我的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
谢谢
答案 0 :(得分:1)
由于您拥有build.gradle,因此应该使用grails 3或4,但是您尝试使用grails 2插件。这些插件不兼容。
Grails 3内置了对独立JAR的支持。
https://docs.grails.org/3.3.10/guide/single.html#deploymentStandalone