3

我在编译 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 使用不同的目录来工作的技巧吗?

4

1 回答 1

0

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

export GRAILS_OPTS="-Dgrails.work.dir=/usr/local/share/grails -Divy.default.ivy.user.dir=/usr/local/share/ivy"
于 2013-03-01T16:51:40.090 回答