[英]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.