Eclipse 不断询问 svn 密码
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28855468/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse keeps asking for svn password
提问by xwhyz
Whenever I'm trying to synchronize/update my projects with SVN repo it asks me for password. It drives me nuts, I'm checking "save password" checkbox and it doesn't work at all.. what is more, I cant use a simple password.
每当我尝试使用 SVN 存储库同步/更新我的项目时,它都会要求我输入密码。它让我发疯,我正在检查“保存密码”复选框,但它根本不起作用......而且,我不能使用简单的密码。
It might be somehow connected with my company's proxy but eclipse plugin update sites work just fine.
它可能以某种方式与我公司的代理有关,但 eclipse 插件更新站点工作得很好。
I have a Subversion directory in my AppData dir, maybe I should delete this? I can also provide additional info, I just don't know what may be relevant.
我的 AppData 目录中有一个 Subversion 目录,也许我应该删除它?我也可以提供其他信息,我只是不知道什么可能相关。
I'm using Subclipse
with JavaHL
provider and my Eclipse
version is 4.4.2 but I have the same problem on Eclipse
3.7.2
我正在Subclipse
与JavaHL
提供程序一起使用,我的Eclipse
版本是 4.4.2 但我在Eclipse
3.7.2上遇到了同样的问题
采纳答案by Michael Laffargue
This one worked well : http://www.thinkplexx.com/learn/howto/ide/eclipse/fix-eclipse-svn-always-asking-for-login-and-password-clear-keyring-or-cache
这个效果很好:http: //www.thinkplexx.com/learn/howto/ide/eclipse/fix-eclipse-svn-always-asking-for-login-and-password-clear-keyring-or-cache
There is some files to delete :
有一些文件要删除:
- Delete (or rename .old) in Eclipse : /configuration/org.eclipse.core.runtime/.keyring
- Remove the file in your profile (AppData/Roaming or ~) : /.subversion/auth/svn.simple
- 在 Eclipse 中删除(或重命名 .old):/configuration/org.eclipse.core.runtime/.keyring
- 删除您的个人资料中的文件(AppData/Roaming 或 ~):/.subversion/auth/svn.simple
Go to SVN perspective and enter login/password. Should keep it now.
转到 SVN 透视图并输入登录名/密码。现在应该留着。
回答by mrjmh
Here's what worked for me. I went to Window/Preferences/Team and saw that there were two "SVN" sub-menus. I'm not sure how I got to this state, but I may have installed both Subversion and Subclipse at some point.
这对我有用。我去了窗口/首选项/团队,看到有两个“SVN”子菜单。我不确定我是如何达到这种状态的,但我可能在某个时候安装了 Subversion 和 Subclipse。
Anyway, in the first SVN submenu, there is a tab for SVN Connector. And in the other SVN menu, there is a subsection labelled "SVN interface". Both of these provide a drop-down list to select a connector/interface. In my case, in the first SVN menu, the SVN Connector was set to "SVNKit". In the second SVN menu, it was set to "JavaHL". I changed this to SVNKit, and have had no problems since.
无论如何,在第一个 SVN 子菜单中,有一个 SVN 连接器选项卡。而在另一个 SVN 菜单中,有一个标有“SVN 界面”的小节。这两者都提供了一个下拉列表来选择连接器/接口。就我而言,在第一个 SVN 菜单中,SVN 连接器设置为“SVNKit”。在第二个 SVN 菜单中,它被设置为“JavaHL”。我把它改成了 SVNKit,从那以后就没有问题了。
回答by Osama Abbas
What worked for me was going to Window->Preferences->Team then under 'SVN Interface' select the 'SVNKit (Pure Java)' option.
对我有用的是转到窗口->首选项->团队,然后在“SVN接口”下选择“SVNKit(纯Java)”选项。
回答by Daniel Junyszek
None of the current answers worked for me in eclipse neon. Therefore I edited hash file in /.subversion/auth/svn.simple/[filename] I added password informarion:
在日食霓虹灯中,当前的答案都不适用于我。因此,我在 /.subversion/auth/svn.simple/[filename] 中编辑了哈希文件,我添加了密码信息:
K 15
svn:realmstring
V 51
<https://svn.example.com:443> Subversion Repository
K 8
username
V [length_of_username]
[username[
K 8
password
V [length_of_password]
[password]
END
回答by h3f3st0
This is what has just worded for me (Mars, subclipse, SVNKit): I read the $WORKSPACE/.metadata/.log file, and found this:
这就是刚刚为我写的内容(Mars、subclipse、SVNKit):我阅读了 $WORKSPACE/.metadata/.log 文件,发现了这个:
!ENTRY org.eclipse.core.runtime 2 0 2015-09-04 09:24:33.282^M
!MESSAGE Authorization infrastructure (org.eclipse.core.runtime.compatibility.auth) not installed.
!STACK 0
java.lang.ClassNotFoundException: org.eclipse.core.internal.runtime.auth.AuthorizationDatabase cannot be found by org.eclipse.core.runtime_3.11.0.v20150405-1723
Duckduckgoed the package name org.eclipse.core.runtime.compatibility.authand found it in Maven repository, where I downloaded the jar file, which I copied into my $ECLIPSE_HOME/dropins directory. After restarting eclipse there was no error in the log, I was just asked once my master password. No more annoying password dialogs since then.
Duckduck 将包名称改为org.eclipse.core.runtime.compatibility.auth并在Maven 存储库中找到它,我在那里下载了 jar 文件,并将其复制到我的 $ECLIPSE_HOME/dropins 目录中。重新启动 eclipse 后,日志中没有错误,只询问了一次我的主密码。从那以后不再有烦人的密码对话框。
回答by diegocr
I can provide one more solution that works for me after trying another solutions.
在尝试另一种解决方案后,我可以提供另一种对我有用的解决方案。
It was as easy as changing the combo "Apply To" in the login-pass pop-up window from "http://..." to "Repository Location".
就像将登录密码弹出窗口中的组合“Apply To”从“http://...”更改为“Repository Location”一样简单。
I deleted C:\Users...\AppData\Roaming\Subversion\auth too as commented.
我也按照评论删除了 C:\Users...\AppData\Roaming\Subversion\auth。
Eclipse version: Mars.2 Release (4.5.2)
Eclipse 版本:Mars.2 发布 (4.5.2)
Hope this helps.
希望这可以帮助。
回答by Jin Sae Choi
- went to Window/Preferences/Team/SVN
- set to "SVNKit" from "JavaHL".
- 转到窗口/首选项/团队/SVN
- 从“JavaHL”设置为“SVNKit”。
I changed this to SVNKit, and have had no problems since.
我把它改成了 SVNKit,从那以后就没有问题了。
回答by Tylla
There are high chances that Eclipse (at least mine does: Eclipse 4.8.0 with Subclipse and SVNKit 1.8.12) is using the password storage of the command line Subversion utilities which are stored (at least under Linux) under ~/.subversion/auth/svn.simple
.
As Daniel Juniszek pointed out in his answeryou could edit this by hand, but doing this from command line is a little bit simpler:
Eclipse(至少是我的:带有 Subclipse 和 SVNKit 1.8.12 的 Eclipse 4.8.0)很有可能使用命令行 Subversion 实用程序的密码存储,这些实用程序存储(至少在 Linux 下)在~/.subversion/auth/svn.simple
. 正如 Daniel Juniszek 在他的回答中指出的那样,您可以手动编辑它,但从命令行执行此操作要简单一些:
Do an svn up
in the project folder, give your password if it asks for, and enter yes for the Store password unencrypted (yes/no)?
question.
After it finished updating successfully, do an svn up
again to check that it does not ask for your password again.
svn up
在项目文件夹中执行一个操作,如果需要,请提供您的密码,然后在Store password unencrypted (yes/no)?
问题中输入 yes 。
成功完成更新后,svn up
再次检查它是否不会再次询问您的密码。
If it asks again then maybe you have the same problem as me:
I had wrong permissions seton two hash files in the above directory (it was r--r--r--instead of rw-r--r--) so the subversion command was unable to update the file. After I changed the permission with a chmod u+w ~/.subversion/auth/svn.simple/YOUR_FILENAME_HERE
command, the svn up
updated the file with the password and finally Eclipse stopped asking me for password as well.
如果它再次询问,那么您可能和我有同样的问题:
我对上述目录中的两个哈希文件设置了错误的权限(它是r--r--r--而不是rw-r--r--)所以 subversion 命令无法更新文件。在我使用chmod u+w ~/.subversion/auth/svn.simple/YOUR_FILENAME_HERE
命令更改权限后,svn up
使用密码更新了文件,最后 Eclipse 也不再要求我输入密码。
回答by dan
Probably the simplest solution to try, and worked for us, was to reset the user's password on their SVN account. We recently upgraded to a newer version of CollabNet SVN and we didn't migrate the user accounts (if that's something we could have done, it might have been nice).
可能尝试并为我们工作的最简单的解决方案是在他们的 SVN 帐户上重置用户的密码。我们最近升级到了新版本的 CollabNet SVN,但我们没有迁移用户帐户(如果这是我们可以做的事情,那就太好了)。
There were two developers encountering this issue: one user forgot their password and the account had not yet been created for the other user. It would've been nice to see a more descriptive error message about the credentials in the behavior from the server.
有两个开发人员遇到了这个问题:一个用户忘记了他们的密码,并且尚未为另一个用户创建帐户。很高兴看到有关服务器行为中凭据的更具描述性的错误消息。
回答by Anurag Agarwal
I was facing similar problem and below solution worked for me: Open Windows - preferences - Team - SVN and check for SVN interface, it should be client as SVNKit in place of JavaHL and restart eclipse / RAD ad it will be working fine.
我遇到了类似的问题,以下解决方案对我有用:打开 Windows - 首选项 - 团队 - SVN 并检查 SVN 接口,它应该是客户端作为 SVNKit 代替 JavaHL 并重新启动 eclipse / RAD 广告它会正常工作。