Friday, March 19, 2010

Changing CVS Username and Password in an Eclipse Project

I'm posting this for my future reference since I could find any reference to changing a saved CVS username and password for an already created Eclipse project.  This post has nothing to changing CVS credentials on a CVS server.  I needed to do this because I had commits to make to an open source project however the project I originally setup was using the anonymous read only access.

1. You need to set a new connection string for the CVS repository you want to access by using the CVS Repository view.

Goto the "Window" menu -> "Show View" -> "Other" -> find "CVS" section and expand -> "CVS Repositories"

2. Next setup the new connection string for your repository

Click on the mini icon of this view (a cylinder with the word "CVS" and a "+" sign) -> Add your new CVS repository

3. Associate the new repository (could be the same repository with different login credentials) with your project

Right click on the project in the "Navigator" -> select "Properties" -> in the properties tree select "CVS" -> hit the "Change Sharing..." button -> select your new repository and "OK" -> hit "Apply" back on the properties page

I hope this helps somebody in the future.

14 comments:

  1. It helped me! Thanks for making this post!

    ReplyDelete
  2. thanks, i was wasting my time finding how to change the cvs account!!

    ReplyDelete
  3. Thanks it helped me.I needed this and first link i picked from google result is this perfect.

    ReplyDelete
  4. Thanks a lot for this :D

    ReplyDelete
  5. Thanks from me as well. I might add, that after you've reassigned any projects to the new connection you can then discard (aka. delete) the old location if it's no longer needed. You can't have any projects pointed at the old location to delete it, though.

    ReplyDelete
  6. It helped, thanks

    ReplyDelete
  7. Indeed! Thank you.

    ReplyDelete
  8. Very Nice! Great Success!

    ReplyDelete
  9. Thanks Guru. Saved me heck of time.

    ReplyDelete
  10. It helped a lot.. Thanks!! very good explanation.. Thanks again!!!!

    ReplyDelete
  11. Great help - thanks mate

    ReplyDelete
  12. It helped me. Thanks a lot.

    ReplyDelete
  13. Very helpful !!!
    Thanks for the post :)

    ReplyDelete