java - 从 Eclipse 中的模板创建 Heroku 应用程序?

标签 java spring heroku heroku-toolbelt

我想从 Template in Spring(版本:3.3.0.RELEASE)工具创建一个新的 Heroku App。我已经成功登录并在 Spring 和 herocu 网络帐户中加载了正确的 ssh key 。此外,我的项目少于 5 个(未达到限制),每次我尝试启动新项目并设置“Spring MVC & Tomcat 应用程序”并单击“完成”时,它都会给我一个错误:

We have encountered a problem creating your application: shielded-retreat-3014. This could be due to the Eclipse SSH key is not matching the SSH key(s) that is associated with your Heroku account. To fix this error, you can:

- Associate your SSH key to your Heroku account by going to "Preferences"
    OR    
- If the SSH Key is correct, restart Eclipse.
git@heroku.com:shielded-retreat-3014.git: reject HostKey: heroku.com

编辑:

就在错误之后,应用程序正在 heroku 网络帐户上创建。

即使我重新启动 Eclipse 并尝试导入现有项目(是的,它看到了)“autodetect: Maven”和“General project”也不起作用。

最佳答案

答案很简单,虽然我花了好几个小时才弄明白。 Heroku 站点未添加到您的已知主机。

在 Eclipse 中,转到窗口 -> 显示 View -> 其他... -> Git -> Git 存储库。从那里克隆存储库。克隆后,从文件菜单中导入它。这样做是因为当您克隆存储库时,它不会将其添加到资源管理器 View 中。现在您应该拥有 Git 存储库和资源管理器 View 。

关于java - 从 Eclipse 中的模板创建 Heroku 应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18430428/

相关文章:

java - ddl 创建表,即使 ddl-auto 没有

java - 分配 JButton for 循环

java - Controller 排除不起作用

java - 为什么当我放置 transient 标签时,hibernate 会出现此错误?

mysql - Heroku 部署错误 :connection refused

heroku - Heroku 上的 Phoenix : error R10

java - 如何在 Infinispan 中加载现有的 Lucene 索引?

java - wicket @SpringBean 无法创建 bean

ruby-on-rails - 随机慢速 Rack::MethodOverride#call on Heroku 上的 rails 应用程序

java - 如何在不使用 if 的情况下编写 Fibonacci Java 程序