Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse keeps asking for svn password

Tags:

eclipse

svn

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.

It might be somehow connected with my company's proxy but eclipse plugin update sites work just fine.

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.

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

like image 494
xwhyz Avatar asked Mar 04 '15 13:03

xwhyz


People also ask

Where does Eclipse store SVN password?

Eclipse & Subclipse don't directly collect or store username and password credentials. This information is collected and stored by the SVN client adapter (JavaHL or SVNKit). Currently, these adapters both require you to manually delete the cache file in order to clear the old password.


5 Answers

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.

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.

like image 110
mrjmh Avatar answered Oct 21 '22 21:10

mrjmh


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

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

Go to SVN perspective and enter login/password. Should keep it now.

like image 36
Michael Laffargue Avatar answered Oct 21 '22 20:10

Michael Laffargue


What worked for me was going to Window->Preferences->Team then under 'SVN Interface' select the 'SVNKit (Pure Java)' option.

like image 33
Osama Abbas Avatar answered Oct 21 '22 19:10

Osama Abbas


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:

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
like image 10
Daniel J Avatar answered Oct 21 '22 20:10

Daniel J


This is what has just worded for me (Mars, subclipse, SVNKit): I read the $WORKSPACE/.metadata/.log file, and found this:

!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.auth and 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.

like image 3
h3f3st0 Avatar answered Oct 21 '22 20:10

h3f3st0