繁体   English   中英

缺少依赖项-Grails

[英]missing dependencies - Grails

我收到这样的错误

| Loading Grails 2.1.4
| Configuring classpath.
| Environment set to development.....
| Packaging Grails application.....
| Compiling 2 source files.....
| Error Error: The following plugins failed to load due to missing dependencies: [cacheHeaders]
- Plugin: cacheHeaders
   - Dependencies:
       - controllers (Required: 1.1 > *, Found: 2.1.4) 
       ! logging (Required: 1.1 > *, Found: Not Installed) [INVALID]

我正在使用Grials 2.1.4添加插件cache-1.0.1 cache-hearders -1.5.1之后,我遇到了以上错误。

在Grails文档中,它们将支持Grails 2.1。 Grails版本:1.2> *-我理解这个意思,它也支持2.1.4。 请参阅: http : //grails.org/plugins/search?q=cache-headers

else could you please refer any references to do "**cached-resourses in 2.1.4**".

但是我做了一个Sample Grails(2.1.4)App并添加了相同的插件。 它运行完美。

我的SampleApplication:

APPLICATION STATUS
App version: 0.1
Grails version: 2.1.4
Groovy version: 1.8.8
JVM version: 1.7.0_15
Reloading active: true
Controllers: 1
Domains: 0
Services: 3
Tag Libraries: 13

INSTALLED PLUGINS
logging - 2.1.4
core - 2.1.4
codecs - 2.1.4
i18n - 2.1.4
urlMappings - 2.1.4
dataSource - 2.1.4
controllers - 2.1.4
servlets - 2.1.4
mavenPublisher - 0.8.1
resources - 1.1.6
webxml - 1.4.1
databaseMigration - 1.3.2
cacheHeaders - 1.1.5
jquery - 1.8.3
tomcat - 2.1.4
groovyPages - 2.1.4
domainClass - 2.1.4
filters - 2.1.4
converters - 2.1.4
mimeTypes - 2.1.4
scaffolding - 2.1.4
hibernate - 2.1.4
validation - 2.1.4
services - 2.1.4
cache - 1.0.1

谢谢

看起来在第一个应用程序中,该错误是有关缺少日志记录插件的:

! logging (Required: 1.1 > *, Found: Not Installed) [INVALID]

在正在运行的应用程序中,您正在使用日志记录2.1.4:

INSTALLED PLUGINS
logging - 2.1.4

我解决了

 commented this line in BuildConfig.groovy

   //excludes   "grails-plugin-log4j"

它工作正常,但我对此不了解很多细节。 我老板建议了。 多亏了我的老板。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM