Java, Eclipse and Web programming Tutorials

Installation of subversion (svn) in Eclipse

Lars Vogel

Version 0.6

27.01.2010

Revision History
Revision 0.110.06.2009Lars Vogel
Created Article
Revision 0.203.07.2009Lars Vogel
Included information about the different connectors
Revision 0.305.07.2009Lars Vogel
Ignored resources
Revision 0.422.07.2009Lars Vogel
Added link to subversive installation in Eclipse 3.4
Revision 0.531.07.2009Lars Vogel
Minor rework
Revision 0.627.01.2010Lars Vogel
added subversion homepage

Install Subversive into Eclipse to use SVN

The following describes the installation of Eclipse subversive and gives a short comparison of the different svn connectors.


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. Other Resources

1. Eclipse Subversive

Subversion is a version control system. Subversion is based on libraries and executables written in the programming language C.

Eclipse Subversive is a plugin for Eclipse to use subversion (svn). The description of subversion, the setup of the svn server and the usage of subversion is out-of-scope for this article. This article will only describes the installation of subversion.

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.

I know it is strange to have an article only for installing subversion. But due to the different update manager locations it is always time consuming to find the right URL and I wanted to store this information somewhere.

2. Connectors

You have the choise between two svn connectors SVNKit and JavaHL. The differences between the connectors is described in Subversive Connectors .

The following description will use the JavaHL 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.0 Win32 Binaries and Native JavaHL 1.6 For SVN 1.6 For SVN 1.6

3. Installation

Tip

Use the Eclipse update manager to install "Subversive SVN Team Provider" from the Galileo Update site. See Eclipse update manager for details.

The following selection will install also Mylyn connectors for subversive.

Install the SVN connectors from the update site http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/

Tip

If you select only 'Subversive SVN Connectors' feature, it will not install all connectors. If you want to install the connector, you need to set it explicitly.

After this you should have a working subversion installation.

4. Appendix: Tips

4.1. Ignored resources

Subversive ignores certain resources per 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

Thank you for practicing with this tutorial.

Please note that I maintain this website in my private time. If you like the information I'm providing please help me by donating.

6. Questions and Discussion

For questions and discussion around this article please use the www.vogella.de Google Group. Also if you note an error in this article please post the error and if possible the correction to the Group.

I believe the following is a very good guideline for asking questions in general and also for the Google group How To Ask Questions The Smart Way.

7. Links and Literature

7.1. Source Code

http://www.vogella.de/code/codeeclipse.html Source Code of Examples

7.2. Eclipse Subversive Resources

http://www.eclipse.org/subversive/ Subversive home page

http://www.gammas.de/allgemein/svn-subversive-and-eclipse-galileo-rc-2/ How to use subversive behind a proxy