在Windows 7 64位系统上使用Grails 2.1.2,在编译时它给出了以下错误,请帮我解决这个问题。
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.grails.plugins#mail;1.0-SNAPSHOT: not found
:: org.grails.plugins#tomcat;1.3.2: not found
:: org.grails.plugins#hibernate;1.3.2: not found
:: org.grails.plugins#csl-rest-lib;1.0: not found
::::::::::::::::::::::::::::::::::::::::::::::
答案 0 :(得分:0)
在BuildConfig.groovy中,尝试声明依赖项:
dependencies {
compile 'org.grails.plugins:mail:1-0-SNAPSHOT'
compile 'org.grails.plugins:tomcat:1.3.2'
...
}
答案 1 :(得分:0)
如果您的应用程序是从grails 1.3(< 2.。)更新的,或者是从Grails 2。创建的,则需要检查grails plugins上的插件版本 例如,当前版本的邮件插件是1.0.1 mail plugin 此外,您还需要在conf / BuildConfig.groovy上检查此依赖项。必须有这样的部分:
plugins {
build ":tomcat:$grailsVersion"
runtime ":hibernate:${grailsVersion}"
runtime ":resources:1.1.6"
...
在plugins
部分描述您的插件。
您需要检查最新的插件库并将其描述如下:
dependencies {
// specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
compile('org.apache.poi:poi:3.7',
'org.apache.poi:poi-contrib:3.6',
'org.apache.poi:poi-ooxml:3.7',
'antlr:antlr:2.7.6',
'org.apache.ant:ant-apache-log4j:1.7.1'
..