Grails 2.4.4无法解决的依赖关系cglib 2.2.2

时间:2014-11-26 09:05:03

标签: grails dependencies cglib

我正在尝试将项目升级到Grails版本2.4.4,但它仍然失败并显示以下错误消息:

:: problems summary ::
:::: WARNINGS
::::::::::::::::::::::::::::::::::::::::::::::
::          UNRESOLVED DEPENDENCIES         ::
::::::::::::::::::::::::::::::::::::::::::::::
:: cglib#cglib;2.2.2: configuration not found in cglib#cglib;2.2.2: 'compile'. It was required from org.grails#grails-plugin-testing;2.4.4 runtime
::::::::::::::::::::::::::::::::::::::::::::::

Error |
Resolve error obtaining dependencies: Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):
- cglib:cglib:2.2.2
(Use --stacktrace to see the full trace)
Error |
Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more  information):
- cglib:cglib:2.2.2
|Run 'grails dependency-report' for further information.

由于图书馆可用,这有点奇怪。我可以在grails-2.4.4 \ lib \ cglib \ cglib \ jars和我的主目录下看到它.grails \ ivy-cache \ cglib \ cglib \ jars

我的GRAILS_HOME设置正确,我可以看到所有看起来都很好但是当我执行刷新依赖时它会不断抛出此错误。

1 个答案:

答案 0 :(得分:16)

在从Grails 2.1升级到2.4.4时,我发现我遇到了同样的问题。决议是明确设定:

grails.project.dependency.resolver = "maven"
BuildConfig.groovy中的

。然后我就可以继续升级中的下一个问题......; - )