Maven:无法执行目标heroku:deploy-war

时间:2017-06-30 09:39:20

标签: java maven heroku intellij-idea

我正在关注this教程,在IntelliJ Idea中创建一个示例项目并将其部署在Heroku中,但是当我运行项目时

enter image description here

Maven没有正确构建,给我错误:

  

无法在项目helloworld上执行目标com.heroku.sdk:heroku-maven-plugin:1.1.3:deploy-war(default-cli):无法部署应用程序:找不到应用程序名称:否&#39 ; Heroku的'远程发现。

1 个答案:

答案 0 :(得分:1)

我解决了。该教程缺少一行。在运行之前,我们必须这样做

  

mvn clean install