我正在尝试将我的grails应用程序从2.0.0升级到2.5.5,遇到了groovy-all jar的未解析依赖。BuildConfig.groovy中的依赖关系解析器设置为常春藤。另外,location %USERPROFILE%/.grails/ivy-cache/org.codehaus.groovy包含2.4.5版本的groovy-all.jar
Java设置为JDK7
确切的错误: org.codehaus.groovy#groovy-all;2.4.5:在org.codehaus.groovy#groovy-all中找不到配置;2.4.5:'master‘。它在org.grails#grails-core;2.5.5编译中是必需的
BuildConfig.groovy
grails.project.dependency.resolver = "ivy"
repositories {
mavenRepo "link to company specific repo"
mavenCentral()
}
plugins {
runtime ":hibernate4:4.3.10"
runtime ":jquery:1.7.1"
runtime ":resources:1.1.5"
runtime ":bubbling:1.5.1"
runtime ":calendar:1.2.1"
runtime ":code-coverage:1.1.6"
runtime ":jsecurity:0.3"
runtime ":tomcat:7.0.42"
runtime ":webflow:1.3.7"
runtime ":webtest:1.1.5.1"
runtime ":yui:2.8.2.1"
build ":tomcat:7.0.70"
}
请帮帮忙。如果需要任何额外的细节,请让我知道。
发布于 2016-08-10 07:07:27
在花了很多时间寻找这个问题的原因后,我遇到了Grails version2.5.5 (https://github.com/grails/grails-core/issues/10011)中报告的一个问题,因此在进入我的项目之前,尝试执行基本的grails命令"grails-createapp“。此命令也失败,并出现上面提到的错误。
在我们的案例中,解决方案是
1. Remove Grails version 2.5.5 (if this is already installed)
2. Download/install Grails version 2.5.4
3. Run basic command grails-createapp. This runs fine and an app is created.
4. Remove Grails version 2.5.4
5. Install Grails version 2.5.5 now
6. Run command - grails createapp (this starts working now)
奇怪的问题:)
发布于 2017-01-11 17:21:58
要升级到版本2.5.5,请将行添加到BuildConfig依赖项中
compile 'org.codehaus.groovy:groovy-all:2.4.6'
这对我很有效。
https://stackoverflow.com/questions/38829209
复制