我正在服务器中部署一个播放应用程序,在这个应用程序中我没有写入权限〜/当发出播放deps时我收到以下错误
[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)
Run Code Online (Sandbox Code Playgroud)
我尝试了几个更改缓存目录的方法,比如在app.conf中使用以下内容创建ivysettings.xml
<ivysettings>
<caches defaultCacheDir="/tmp/ivy"/>
</ivysettings>
Run Code Online (Sandbox Code Playgroud)
传递-D-cache =/tmp/ivy
设置JAVA_OPTS环境变量
export JAVA_OPTS="$JAVA_OPTS -Divy.default.ivy.user.dir=/tmp/ivy"
Run Code Online (Sandbox Code Playgroud)
将其作为参数传递
play deps -Divy.default.ivy.user.dir=/tmp/ivy
Run Code Online (Sandbox Code Playgroud)
但似乎没有任何工作......
任何想法我能做什么?
saludos
SAS
-
编辑
ps:发现了这个相关问题:如何覆盖常春藤缓存的位置?
ope*_*sas 12
谷歌搜索周围和几个小时后尝试不同的替代方案,我已经找到了答案
只是不得不
play deps -Divy.home=/tmp/ivy2/
Run Code Online (Sandbox Code Playgroud)
我希望它可能对其他人有用
| 归档时间: |
|
| 查看次数: |
1207 次 |
| 最近记录: |