【问题标题】:Grails dependency generation fails (ivy, Windows 7)Grails 依赖项生成失败(ivy,Windows 7)
【发布时间】:2013-02-15 16:20:08
【问题描述】:

我在编译 Grails eclipse 项目时遇到问题。我正在运行 Mac OS/X (Lions),但在 VMware 会话中使用 Windows 7 上的 Grails,因为我必须连接到 Windows 应用程序。

依赖生成失败并出现以下错误:

Command terminated with an error code (see details for output)
------System.out:-----------
| Loading Grails 2.1.1
| Configuring classpath
| Error Error executing script Compile: \\vmware-host\Shared Folders\.grails\ivy-     cache\resolved-org.grails.internal-petclinic-0.1.xml (The system cannot find the path specified) (Use --stacktrace to see the full trace)
------System.err:-----------

问题是目录“\\vmware-host\Shared Folders”不存在,也永远不会存在。我尝试更改 HOME、USER_HOME 环境变量,甚至在 JVM 设置中添加了 -Duser.home=c:\users\jm,但我无法更改 Grails 构建所需的临时目录。

有谁知道告诉 Grails/Ivy 使用不同的目录来工作的技巧吗?

【问题讨论】:

    标签: eclipse grails ivy vmware-fusion


    【解决方案1】:

    我曾经遇到过类似的问题,这有帮助:

    export GRAILS_OPTS="-Dgrails.work.dir=/usr/local/share/grails -Divy.default.ivy.user.dir=/usr/local/share/ivy"
    

    【讨论】:

    • 谢谢!我在以下位置找到了另一个解决方案:grails.org/doc/2.0.x/guide/introduction.html
    • @JaapMulder 您可以对自己的问题给出更详细的答案并接受它。这样其他有相同问题的用户可以直接找到解决方案。
    猜你喜欢
    • 1970-01-01
    • 2011-06-24
    • 2014-04-22
    • 2013-09-08
    • 2020-01-25
    • 2023-03-30
    • 2015-11-05
    • 2019-09-09
    • 2016-10-16
    相关资源
    最近更新 更多