gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 21:15:55 25 4
gpt4 key购买 nike

我在编译 Grails Eclipse 项目时遇到问题。我正在运行 Mac OS/X (Lions),但在 VMware session 中使用 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 使用不同目录工作的技巧吗?

最佳答案

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

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

关于eclipse - Grails 依赖项生成失败(ivy、Windows 7),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15153098/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com