2013-08-25 76 views
1

我想在Spring(版本:3.3.0.RELEASE)工具中從模板創建一個新的Heroku應用程序。我已經成功鎖住了,並獲得了正確的ssh密鑰加載在Spring和英雄網絡帳戶。我也有小於5個項目(未達到限制),每次我嘗試啓動新的項目,並設置「Spring MVC的& Tomcat應用程序」,然後單擊完成它給了我一個錯誤時間:在Eclipse中從模板創建Heroku應用程序?

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. 
[email protected]:shielded-retreat-3014.git: reject HostKey: heroku.com 

編輯:

剛剛發生錯誤,應用程序在heroku網絡帳戶上創建。

即使我重新啓動Eclipse並嘗試導入現有項目(是的,它看到它)「autodetect:Maven」和「常規項目」不起作用,也會發生同樣的錯誤。

回答

4

答案很簡單,但花了我數小時才弄明白。 Heroku網站未被添加到您的已知主機。在Eclipse中,轉到Window - > Show view - > Other ... - > Git - > Git repositories。從那裏,克隆存儲庫。一旦你克隆它,從文件菜單中導入它。這樣做是因爲在克隆存儲庫時,它不會將其添加到資源管理器視圖。現在您應該擁有Git存儲庫和資源管理器視圖。

+0

我有同樣的問題,這解決了我的問題,試圖[這些解決方案]後(http://stackoverflow.com/questions/18374030/eclipse-my-ssh-key-does-not-match (https://groups.google.com/forum/#!topic/heroku/s54dYyJaF0M)和[這一個](http://groups.google.com/forum/#!topic/heroku/s54dYyJaF0M) //stackoverflow.com/questions/13239158/how-to-associate-ssh-key-to-heroku-account-in-eclipse-i-am-getting-following-err)。 –

0

我想我有這個相同的問題,並解決它。我相信這個問題是由於沒有一個已知的hostku.com主機條目。我不確定獲得所需指紋的最佳方式是什麼,但是當我嘗試使用Egit從heroku中克隆repo時,我解決了我的問題。我得到了一個彈出信息告訴我,heroku.com不是一個已知的主機,並允許我接受密鑰。如果我記得正確,你第一次嘗試ssh進入主機時通常會得到這個密鑰。

相關問題