缺少依赖项——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.1cache-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**".

但是我做了一个示例Grails(2.1.4)应用程序,并添加了相同的插件。它运行得很好。

My 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"

它工作得很好,但我不知道很多细节。我老板建议我这么做。谢谢我的老板。

相关内容

  • 没有找到相关文章

最新更新