Back to top

vogella training Training Books

SVN in Eclipse (Subversive)

Lars Vogel

Version 1.1

18.14.2011

Revision History
Revision 0.1 10.06.2009 Lars
Vogel
Created
Revision 0.2 - 1.1 03.07.2009 - 18.14.2011 Lars
Vogel
bugfixes and enhancements

Subversive (SVN) with Eclipse

The following describes the installation of Eclipse subversive and gives a short comparison of the different svn connectors. This article is based on Eclipse 3.6 (Helios).


Table of Contents

1. Eclipse Subversive
2. Connectors
3. Installation
4. Appendix: Tips
4.1. Ignored resources
5. Thank you
6. Questions and Discussion
7. Links and Literature
7.1. Source Code
7.2. Eclipse Subversive Resources
7.3. vogella Resources

1. Eclipse Subversive

Subversion is a centralized version control system, e.g. the whole history of a project is stored on a server. Subversion libraries and executables are written in the programming language C. Alternatives to centralized version control system are distributed version control systems, for example Git.

Eclipse Subversive is a plug-in for Eclipse to use subversion (svn). To use subversion from Eclipse you need the Eclipse plugins which extends Eclipse with the subversion functionality and you need connectors which allows to connect from Java to subversion. Unfortunately the Eclipse UI plugins and the connectors are in different update sites due to license reasons with the connectors.

2. Connectors

You have the choise between two svn connectors SVNKit and JavaHL. The differences between the connectors is described in Subversive Connectors. The versions of the connectors correspond to the svn version.

Table 1. SVNKit

Connector svn version
SVNKit 1.2.X For SVN 1.5
SVNKit 1.3.X For SVN 1.6


Table 2. JavaHL

Connector svn version
JavaHL 1.5.4 Win32 Binaries and Native JavaHL 1.5 For SVN 1.5 For SVN 1.5
JavaHL 1.6.X Win32 Binaries and Native JavaHL 1.6 For SVN 1.6 For SVN 1.6


3. Installation

Use the Eclipse update manager to install "Subversive SVN Team Provider" from the Helios Update site. Restart your Eclipse. After the restart Eclipse will start the Connector Discovery which allows you to install the connectors. Use SVNKit as a connector if you are behind a proxy.

If this installation does not work you can install the connectors directly via the update manager http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/

4. Appendix: Tips

4.1. Ignored resources

Subversive ignores certain resources by default. Which resources are ignored can be configured via Windows -> Preferences -> Team -> Ignored Resources. You can add resource patterns like "bin", "build" so that these are also ignored.

5. Thank you

Please help me to support this article:

Flattr this

6. Questions and Discussion

Before posting questions, please see the vogella FAQ. If you have questions or find an error in this article please use the www.vogella.com Google Group. I have created a short list how to create good questions which might also help you.

7. Links and Literature

7.1. Source Code

Source Code of Examples

7.2. Eclipse Subversive Resources

Subversive home page

Git - Alternative version control system

EGit - Eclipse Teamprovider for Git

7.3. vogella Resources

vogella Training Android and Eclipse Training from the vogella team

Android Tutorial Introduction to Android Programming

GWT Tutorial Program in Java and compile to JavaScript and HTML

Eclipse RCP Tutorial Create native applications in Java

JUnit Tutorial Test your application

Git Tutorial Put everything you have under distributed version control system