如何在Mac OS中清除Eclipse Subclipse和Subversion插件的用户密码

If you are using Eclipse IDE and using SVN as repository for your projects then you might be aware of subclipse and subversion plugins. Just to give a brief idea, these are the plugins to work with SVN in Eclipse IDE for version control. If you are using Eclipse Ganymede then it comes bundled with these plugins.

如果您使用的是Eclipse IDE,并且使用SVN作为项目的存储库,那么您可能会知道subclipse和subversion插件。 简要说明一下,这些是可在Eclipse IDE中与SVN一起使用以进行版本控制的插件。 如果您使用的是Eclipse Ganymede,则它们与这些插件捆绑在一起。

Recently I faced a problem in using it for multiple users. When we connect to the SVN repository from any user id and then saves the password, it caches this data to a hidden file in the file system. So when you connect to some other project location, it doesn’t prompt for user/password and gives an error message. To avoid this error, we need to clear the saved data.

最近,我在将其用于多个用户时遇到了问题。 当我们从任何用户标识连接到SVN存储库,然后保存密码时,它会将这些数据缓存到文件系统中的隐藏文件中。 因此,当您连接到其他项目位置时,它不会提示您输入用户名/密码,并且会显示错误消息。 为避免此错误,我们需要清除保存的数据。

I was working on Mac OS and I was not sure where I can locate the file. I have been using Mac OS for my development purpose from last two years and I know that it uses PList files for configuration and that is the place where I can find the location of the hidden file.

我在Mac OS上工作,但不确定在哪里可以找到该文件。 过去两年来,我一直将Mac OS用于开发目的,我知道它使用PList文件进行配置,因此可以在其中找到隐藏文件的位置。

Right click on the Eclipse.app and click on “Show Package Contents” menu item. It will open a new Finder window with the Contents. It will have an Info.plist file that contains Eclipse configurations. Double click to open it and expand to find the location of the cache file.

右键单击Eclipse.app,然后单击“显示软件包内容”菜单项。 它将打开一个包含目录的新Finder窗口。 它将具有一个包含Eclipse配置的Info.plist文件。 双击将其打开,然后展开以查找缓存文件的位置。

As you can see in the above image, the location is ~/.eclipse_keyring. Just remove this file from the file system and restart Eclipse.

如上图所示,位置为~/.eclipse_keyring 。 只需从文件系统中删除该文件,然后重新启动Eclipse。

Now when you will try to connect to other SVN project, it will prompt for user and password.

现在,当您尝试连接到其他SVN项目时,它将提示您输入用户名和密码。

Note: The keyring file is encrypted but it’s not a bad idea to move it from user home directory. Just change this property in plist file and restart the Eclipse to have this cached file in your desired location.

注意 :密钥环文件已加密,但从用户主目录移动它并不是一个坏主意。 只需在plist文件中更改此属性,然后重新启动Eclipse,即可将该缓存文件放置在所需的位置。

翻译自: https://www.journaldev.com/187/how-to-clear-eclipse-subclipse-and-subversion-plugins-user-password-in-mac-os

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值