Subversion + Eclipse3.5 = Easy!

I added a post on my personal blog yesterday about support for Subversion being available for the just released Eclipse 3.5/Galileo release. Today I am going to show just how easy it is to install support for Subversion in Eclipse 3.5.

While I think that installing plugins in Eclipse is generally a pretty easy process, my views on this are colored by the fact that I have been doing it since before Eclipse 1.0 came out. That said, the Eclipse Mylyn team has made the process super-easy in the Eclipse 3.5 release.

I started by downloading one of the Eclipse packages from the download site. I chose the Eclipse IDE for Java Developers, just make sure you get one of the options that includes Mylyn.

After unzipping the bundle and starting Eclipse, look for the Mylyn Task List view and click on the New Task button as shown here:

Select New Task

This brings up the following Mylyn wizard. Note the new option to install more connectors:

Select New Task

After clicking the "Install More Connectors" button you are presented with a list of connectors that Mylyn can install. In the list of connectors that has been certified by Tasktop, you will see the CollabNet Desktop for SVN. The CollabNet Mylyn connectors, including Subclipse and our graphical merge client, have been certified by the team at Tasktop.  That means that these plugins play well with others and can be properly integrated into a number of Eclipse-based IDE's. Subclipse is the only Subversion plugin to have been certified by Tasktop.

Select New Task

I checked the box for the CollabNet Desktop for SVN and click Finish.

Three clicks, and I have started the process for installing Subversion support into Eclipse, it does not get much easier than that!

At this point, the rest is handled by the install magic from the Mylyn team. They run through the Eclipse install mechanism to verify and install your selections. I was doing this just after the launch of Eclipse 3.5 and I am sure the mirrors were getting hammered. Whatever the process does initially to validate the dependencies to verify the install took a few minutes, but eventually the following dialogs came up and it is just a matter of clicking through the wizard to complete the install. For completeness, here are those dialogs:

Confirm Selection

Confirm your selections and click Next:

Verify Components

I expanded the selection, so that you can see all of the components that will be installed.  You get the CollabNet Desktop, which allows you to connect to any CollabNet hosted site.  Subclipse, and its required components.  The Subversion revision graph feature that I have blogged about previously, and the CollabNet Merge client, which makes merging easy and powerful from the Eclipse environment.

Accept License

Accept the licenses. All of these products are free and open-source, licensed under the EPL.

Restart Eclipse

And finally, just click Yes to restart Eclipse.  That is it, not only do you have a working Subversion client in Eclipse, you have one with all of the bells and whistles as well as one that has been certified by Tasktop.

One Caveat!

The above install was done on Windows Vista 32-bit.  If you are running on another operating system, you must have the Subversion 1.6.x native libraries, including the JavaHL library available.  CollabNet provides an installer for OSX that includes this library, as well as a Linux client RPM that should work on any Linux distro.  Windows 64-bit users can install the SlikSVN package.  All of this information and more is available in this FAQ about JavaHL.

Mark Phippard

Engineering manager for several teams at CollabNet, including CloudForge, Subversion, Subversion Edge, Git and our Desktops and Integrations. Project owner for the Subclipse project, which provides Subversion support in Eclipse. Also a full committer for the Subversion project. Product owner for GitEye, Subversion Edge and the CollabNet Desktops and Integrations.

Tagged with: , ,
Posted in Subversion
13 comments on “Subversion + Eclipse3.5 = Easy!
  1. Ignacio G.T. says:

    ¿What if I am tied to Eclipse 3.2?

  2. This post is for Eclipse 3.5 users. If you are on 3.2 just follow the instructions for installing on 3.2.

  3. Ignacio G.T. says:

    OK, I’ve been a good guy and I have updated to Eclipse 3.5 and svn 1.6.3. Everything is working OK. It is really easy to install Subclipse this way.
    But what should I do if i wanted to uninstall it? Is it as easy?

  4. It is not quite as easy. Bring up the Help > About dialog. There is a button for Installation Details. This shows you everything you have installed. You can select specific features and choose to Uninstall them. You can also see your installation history and rollback to a specific previous configuration.

  5. Misja says:

    I don’t think uninstalling is that easy. I installed subversion and liked it, but I don’t like the ‘optional’ subversion Mylin integration, so I want to uninstall that.
    But if I select it in the installed software tab of the installation details dialog, the ‘uninstall’ button is greyed out ..
    Do you know if there is a way out of here?

  6. Mark Phippard says:

    The install/uninstall mechanisms are provided by Eclipse, not the individual plugins. That said, I found it quite easy to uninstall that plugin in Eclipse 3.5.
    1) Choose Help > About
    2) Then click on Installation Details
    NOTE: I just do not know a quicker way to get to that dialog.
    The dialog shows a lot of information about what you have installed.
    3) Choose this item from the list of Installed Software:
    Subclipse Integration for Mylyn 3.x (Optional) 3.0.0
    4) Click the Uninstall button at bottom of screen.

  7. Misja says:

    Hey thanks, the problem is that at step 3, when I select the ‘Subclipse Integration for Mylyn 3.x (Optional) 3.0.0’ from the list, the Uninstall bottom is greyed out ..
    I am able to uninstall every other part of subclipse except for the Subversion Revision G

  8. Jim says:

    I tried this with Galileo on Ubuntu 9.04 64 bit but the plugin does not appear anywhere except for the installed plugins list. Any hints?

  9. Thomas B. says:

    I just installed eclipse out of the Ubuntu repos, and I’m not sure how to activate a new Mylyn task. Is there a way to do this without building eclipse? Without adding a line to my sources list?

  10. Mark Phippard says:

    Seems like a weird question. If you have Mylyn installed, then why would you need to build something in order to use a Mylyn feature? It sounds like you need some help knowing what to do next and use Mylyn? This might help:
    This is old now, but should still be useful too:

  11. Thomas B. says:

    Well, I don’t know if I have mylyn installed. I sudo apt-get install eclipse, then I open it up, and it’s not obvious how to make a new task. I click on New and I get two options: New Project and New “Other…” Other opens a submenu that does not include task.
    I sudo apt-get install mylyn, and it says that the package is not found.

  12. The two links in the previous reply should answer those questions. Basically, you should look for the two Mylyn views – Task Repositories and Task Lists. If you do not have them, then you do not have Mylyn installed. You should be able to get them via Help Install Software.

  13. Thomas B. says:

    The first link does not seem to help with installation. The second link suggests “Help > Software Updates > Find and install > Search for new features to install” but I do not have this option under my Help menu. I tried some other similar options, but I was not able to follow along.
    Thank you for your time all the same.

Leave a Reply

Your email address will not be published. Required fields are marked *