3

Grails Eclipse プロジェクトをコンパイルする際に問題があります。Mac OS/X (Lions) を実行していますが、Windows アプリケーションに接続する必要があるため、VMware セッションで Windows 7 の Grails を使用しています。

依存関係の生成は、次のエラーで失敗します。

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 に答える