java - jar依赖中的权限被拒绝heroku错误
问题描述
我正在尝试将 Java Web 应用程序部署到 Heroku,但在我的一个依赖项“aether-api-1.7.jar”中出现权限被拒绝错误。我已经添加了一个 realease 命令来防止这个错误,但它仍然存在。
档案:
release: chmod u+x target/dependency/aether-api-1.7.jar
web: java -Dserver.port=$PORT -cp target/classes;target/dependency/* Server
Heroku 日志:
2019-11-17T06:10:24.922962+00:00 app[web.1]: See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.
2019-11-17T06:10:24.934033+00:00 app[web.1]: bash: target/dependency/aether-api-1.7.jar: Permission denied
2019-11-17T06:10:24.987470+00:00 heroku[web.1]: Process exited with status 126
解决方案
Change the ;
in your Procfile
to :
. The ;
is causing the rest of the command to be treated as a different command.
The release
command can't modify your files.
推荐阅读
- android - Android 在库项目中添加 Firebase Crashlytics
- oracle - ORA-20002:不允许更改关键模式的密码
- android - 使用 fetch 在 Android 设备上的网络请求失败
- javascript - Node Soap - http 获取请求返回 index.html
- netbeans - 为什么我的 NetBeans 11.2 IDE 在启动时冻结,我该如何解决?
- android - 如何使用android上的firebase数据库将帖子移动到特定位置
- python - 在一组列上使用应用时的 Pandas 边界条件问题
- javascript - Jquery数据表如何在特定条件下在一个单元格中显示两列
- bash - 如何将布尔测试的结果放入变量中?
- java - 关于 RxJava 和 PublishSubject 的初学者问题