【问题标题】:grails 2.3.6 fresh install gives "unresolved dependencies" when try to create-appgrails 2.3.6 全新安装在尝试创建应用程序时提供“未解决的依赖项”
【发布时间】: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


【解决方案1】:

再试一次 - codehaus.org 在他们的网站上遇到了一些问题,但现在已经解决了。

【讨论】:

  • 还是不行。我看到了问题的一部分。由于某种未知的原因,它在一个不再存在且在任何地方都没有引用的旧版本目录中查找。 GRAILS_HOME 和 PATH 一样指向新版本,我删除了 home/.grails,并清理了 grails,但它仍在旧目录中查找:D:\copy\grails\lib\grails-scripts-2.3.6 .jar
  • 实际上是从上面的评论开始。它只是将我当前的目录作为其搜索列表的一部分。
猜你喜欢
  • 2013-11-02
  • 2015-01-17
  • 2013-11-26
  • 1970-01-01
  • 2014-05-19
  • 1970-01-01
  • 1970-01-01
  • 2017-01-11
  • 2013-06-12
相关资源
最近更新 更多