2013-03-01 99 views
3

我得到一个编译Grails eclipse项目的问题。我正在运行Mac OS/X(狮子会),但在VMware会话中使用Windows 7上的Grails,因为我必须连接到Windows应用程序。Grails依赖关系生成失败(常春藤,Windows 7)

的依存产生失败,出现以下错误:

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主机\共享文件夹”不存在也永远不会存在。我试图改变HOME,USER_HOME环境变量,甚至添加-Duser.home = c:\ users \ jm到JVM设置,但我无法更改Grails构建所需的临时目录。

有谁知道告诉Grails/Ivy使用不同目录工作的一个窍门吗?

回答

0

我有一个类似的问题一次,这有助于:

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

谢谢!我在http://grails.org/doc/2.0.x/guide/introduction.html – 2013-03-04 10:48:06

+1

@JaapMulder找到了另一个解决方案,您可以对自己的问题给出更详细的答案并接受它。这样,具有相同问题的其他用户可以直接找到解决方案。 – moeTi 2013-03-04 11:22:30

相关问题