Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Eclipse Grails依赖项生成失败(ivy、Windows 7)_Eclipse_Grails_Ivy_Vmware Fusion - Fatal编程技术网

Eclipse Grails依赖项生成失败(ivy、Windows 7)

Eclipse Grails依赖项生成失败(ivy、Windows 7),eclipse,grails,ivy,vmware-fusion,Eclipse,Grails,Ivy,Vmware Fusion,我在编译Grails eclipse项目时遇到了一个问题。我正在运行MacOS/X(Lions),但在VMware会话中使用Windows7上的Grails,因为我必须与Windows应用程序接口 依赖项生成失败,出现以下错误: Command terminated with an error code (see details for output) ------System.out:----------- | Loading Grails 2.1.1 | Configuring classp

我在编译Grails eclipse项目时遇到了一个问题。我正在运行MacOS/X(Lions),但在VMware会话中使用Windows7上的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使用不同目录工作的诀窍吗?

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

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

谢谢我在@JaapMulder中找到了另一个解决方案,你可以对自己的问题给出更详细的答案并接受它。这样,具有相同问题的其他用户可以直接找到解决方案。