heroku中的部署今天停止工作

时间:2020-01-16 13:37:16

标签: heroku heroku-cli

我们正在使用heroku-cli定期上传,但是从今天开始,我们收到以下错误。有什么想法吗?

    $$$ heroku war:deploy target/application.war --app appname
    Uploading application.war
    java -Dheroku.appName=appname -Xmx1g -Dheroku.warFile=target/application.war -jar /Users/bermeier0/.local/share/heroku/node_modules/@heroku-cli/plugin-java/lib/heroku-deploy-complete.jar
     ! ERROR: Server returned HTTP response code: 501 for URL: http://central.maven.org/maven2/com/heroku/webapp-runner/9.0.30.0/webapp-runner-9.0.30.0.jar
    java.io.IOException: Server returned HTTP response code: 501 for URL: http://central.maven.org/maven2/com/heroku/webapp-runner/9.0.30.0/webapp-runner-9.0.30.0.jar
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1894)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
        at java.net.URL.openStream(URL.java:1045)
        at org.apache.commons.io.FileUtils.copyURLToFile(FileUtils.java:1456)
        at com.heroku.sdk.deploy.DeployWar.<init>(DeployWar.java:29)
        at com.heroku.sdk.deploy.DeployWar$1.apply(DeployWar.java:87)
        at com.heroku.sdk.deploy.DeployWar$1.apply(DeployWar.java:84)
        at com.heroku.sdk.deploy.utils.Main.deploy(Main.java:53)
        at com.heroku.sdk.deploy.DeployWar.deploy(DeployWar.java:84)
        at com.heroku.sdk.deploy.DeployWar.main(DeployWar.java:94)
     ▸    There was a problem deploying to appname.
     ▸    Make sure you have permission to deploy by running: heroku apps:info -a appname

1 个答案:

答案 0 :(得分:0)

问题似乎是Maven中央存储库已切换为https,请参见this post

Heroku发布了针对此问题的修复程序。只需运行

heroku update