从bitbucket克隆一个项目

时间:2014-09-21 08:15:16

标签: eclipse git egit

我尝试从bitbucket克隆项目,但发生了以下错误(http://i.stack.imgur.com/rP2X8.png)。 我搜索了这个错误,但找不到任何东西。错误消息显示:

!ENTRY org.eclipse.egit.ui 4 0 2014-09-21 11:04:26.496
!MESSAGE https://<myusername>@bitbucket.org/<myusername>/<project name>.git: authentication not supported
!STACK 0
org.eclipse.jgit.api.errors.TransportException: https://<myusername>@bitbucket.org/<myusername>/<project name>.git: authentication not supported
    at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:196)
    at org.eclipse.egit.core.op.ListRemoteOperation.run(ListRemoteOperation.java:99)
    at org.eclipse.egit.ui.internal.clone.SourceBranchPage$8.run(SourceBranchPage.java:324)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: org.eclipse.jgit.errors.TransportException: https://<myusername>@bitbucket.org/<myusername>/<project name>.git: authentication not supported
    at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:494)
    at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:309)
    at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:175)
    ... 3 more

有谁知道如何解决这个问题? 提前谢谢。

1 个答案:

答案 0 :(得分:0)

对于遇到此问题的任何人来说,它很可能与用于运行Eclipse的JVM语言环境有关。在eclipse.ini文件末尾添加-Duser.language = en解决了我们的问题。