2012-03-16 8 views
1

sshを使ってリポジトリを複製しようとしています。コマンドラインからは正常に動作しますが、EclipseでEgitを使用すると動作しません。私は、次のエラーメッセージが表示されます。Egit(Eclipse)はリポジトリを見ることはできますが、複製はしません

Git repository clone failed. 
ssh://[email protected]: Password: 

エラーログのみを示しています

org.eclipse.jgit.errors.UnsupportedCredentialItem: ssh://[email protected]:22: Password: 
    at org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider.get(UsernamePasswordCredentialsProvider.java:110) 
    at org.eclipse.jgit.transport.CredentialsProvider.get(CredentialsProvider.java:135) 
    at org.eclipse.jgit.transport.CredentialsProviderUserInfo.promptKeyboardInteractive(CredentialsProviderUserInfo.java:142) 
    at com.jcraft.jsch.UserAuthKeyboardInteractive.start(UserAuthKeyboardInteractive.java:135) 
    at com.jcraft.jsch.Session.connect(Session.java:425) 
    at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116) 
    at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121) 
    at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:248) 
    at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147) 
    at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:127) 
    at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:113) 
    at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1062) 
    at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:129) 
    at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:175) 
    at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:121) 
    at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:153) 
    at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard.executeCloneOperation(AbstractGitCloneWizard.java:430) 
    at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard.access$2(AbstractGitCloneWizard.java:424) 
    at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard$5.run(AbstractGitCloneWizard.java:386) 
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) 

this threadによると、私がJDK7を使用しているためと考えられます。残念ながら、私はそうしないという選択肢はありません。私はこの問題を抱えている唯一の人ではないようです - 別のスレッドhereがそれを言います。

Gitはコマンドラインで正常に動作するので、リポジトリをクローンしてプロジェクトをローカルにインポートするだけで、CLとIDEを常に切り替える必要があります。

+0

例外は何が発生したのか? –

+0

どこで例外を見つけることができますか? –

答えて

0

Eclipse - no Java (JRE)/(JDK) … no virtual machine」で説明したように、JDK6を使用してEclipseを起動するオプションがあります。
これは、「インストールされたJRE」セクションのJDK7を参照して、プログラムをコンパイル/実行することを妨げるものではありません。

それでもJDK7ランのEclipseを通じてGitのリポジトリにアクセスしたい場合は、described here (ofr https access)here (for ssh access)として、JDK7のキーストアに不足している証明書を追加する必要があります。

しかし、SSHの問題のために、これはbug 360862に関連することができます

error

+0

あなたはそうです、私はそのバグの犠牲者であるようです...私はhttpsに試してみると思います。 –

関連する問題