【发布时间】:2014-02-27 23:12:50
【问题描述】:
作为一个新的 grails 用户,我刚刚下载了 grails 2.3.6,将其解压缩,创建了一个名为 GRAILS_HOME 的环境变量,指向该目录,然后将 %GRAILS_HOME%/bin 添加到我的路径中(windows 7 pro 64 位)。现在,当我打开一个新的命令提示符并输入“grails - version”时,它会显示:
Grails 版本:2.3.6。
但是,当我在我的开发目录中键入“grails create-app myapp”时,它会给出一个巨大的错误消息,其结尾如下。我已经高音检查了路径并且 GRAILS_HOME 是正确的。除非我错过了一个神奇的步骤,否则当前的 grails 下载似乎严重损坏?
我还尝试了“grails clean”并尝试删除我的 user/.grails 目录,但两者都没有任何区别。
D:\dev\grails-2.3.6\plugins\grails-plugin-url-mappings-2.3.6.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.grails#grails-plugin-rest;2.3.6: not found
:: org.grails#grails-plugin-databinding;2.3.6: not found
:: org.grails#grails-plugin-i18n;2.3.6: not found
:: org.grails#grails-plugin-filters;2.3.6: not found
:: org.grails#grails-plugin-gsp;2.3.6: not found
:: org.grails#grails-plugin-log4j;2.3.6: not found
:: org.grails#grails-plugin-services;2.3.6: not found
:: org.grails#grails-plugin-servlets;2.3.6: not found
:: org.grails#grails-plugin-url-mappings;2.3.6: not found
::::::::::::::::::::::::::::::::::::::::::::::
Error Resolve error obtaining dependencies: Failed to resolve dependencies (Se
log level to 'warn' in BuildConfig.groovy for more information):
org.grails:grails-plugin-rest:2.3.6
org.grails:grails-plugin-databinding:2.3.6
org.grails:grails-plugin-i18n:2.3.6
org.grails:grails-plugin-filters:2.3.6
org.grails:grails-plugin-gsp:2.3.6
org.grails:grails-plugin-log4j:2.3.6
org.grails:grails-plugin-services:2.3.6
org.grails:grails-plugin-servlets:2.3.6
org.grails:grails-plugin-url-mappings:2.3.6
(Use --stacktrace to see the full trace)
Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.g
oovy for more information):
org.grails:grails-scripts:2.3.6
Run 'grails dependency-report' for further information.
【问题讨论】:
-
我也试过运行“grails dependency-report”,但这也给出了同样长的错误信息
-
还尝试了“grails clean”并从主目录中删除 .grails
-
搜索了其中一个丢失的 jar,grails-scripts-2.3.6.jar,它在 grails dirstirbution 中不存在。它的来源在那里。 grails.org 是否制作了缺少文件的 zip?
标签: grails