Tôi đang triển khai một ứng dụng chơi ở máy chủ, trong đó tôi không có ghi quyền ở ~/ khi phát hành DEPS chơi tôi nhận được lỗi sauchơi khuôn khổ 1.x - làm thế nào để thay đổi vị trí ivy bộ nhớ cache
[playdemo-playdemo.rhcloud.com repo]\> ~/playdemo/data/play-1.2.4/play deps
~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ \| |/ _' | || |_|
~ | __/|_|\____|\__ (_)
~ |_| |__/
~
~ play! 1.2.4, http://www.playframework.org
~
~ Resolving dependencies using /var/lib/libra/eadfb84dc0ac4b05baa584693f557e5e/playdemo/runtime/repo/conf/dependencies.yml,
~
Exception in thread "main" java.io.FileNotFoundException: /var/lib/libra/eadfb84dc0ac4b05baa584693f557e5e/.ivy2/cache/resolved-play-application-repo-1.0.xml (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:209)
at java.io.FileOutputStream.<init>(FileOutputStream.java:160)
at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorWriter.write(XmlModuleDescriptorWriter.java:69)
at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorWriter.write(XmlModuleDescriptorWriter.java:61)
at org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor.toIvyFile(DefaultModuleDescriptor.java:549)
at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:248)
at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:195)
at play.deps.DependenciesManager.resolve(DependenciesManager.java:327)
at play.deps.DependenciesManager.main(DependenciesManager.java:39)
tôi đã thử nhiều điều cần thay đổi dir cache, như tạo ra một ivysettings.xml trong app.conf với các nội dung sau
<ivysettings>
<caches defaultCacheDir="/tmp/ivy"/>
</ivysettings>
đi qua một -D-cache =/tmp/ivy
thiết lập một môi trường JAVA_OPTS biến
export JAVA_OPTS="$JAVA_OPTS -Divy.default.ivy.user.dir=/tmp/ivy"
đi qua nó như một tham số
play deps -Divy.default.ivy.user.dir=/tmp/ivy
nhưng không có vẻ làm việc ...
bất kỳ ý tưởng những gì tôi có thể làm gì ???
saludos
sas
-
chỉnh sửa
ps: thấy câu hỏi có liên quan này: How to override the location of Ivy's Cache?