Monday, September 8, 2008

Ganymede and SVN...what a mess...

Today I gave Eclipse 3.4 (Ganymede) a try.
Most things worked out of the box and after I read something of "included" svn support via Subversive I also wanted to check this.

So I opened the perspective selector and hit the first bad surprise...where is the svn perspective?!? This is not what I would call "integrated subversion support".

I decided to give the "Software Updates" page a try and looked for svn stuff there. Under collaboration I found a "svn team provider"...ok, I will install this one.

Installation succeeded without any problems and the welcome page shows me a "Subversive Overview" headline...so this looks promising so far.
Again I choose the perspective selection page and this time there is a SVN perspective.
Nice, I got it running...So I created my first svn server entry and wanted to check out some sources.

And again it hit me hard and painful...this was the error:

Get repository folder children operation failed.
Selected SVN connector library is not available or cannot be loaded.
If you selected native JavaHL connector, please check if binaries are available or install and select pure Java Subversion connector from the plug-in connectors update site.
If connectors already installed then you can change the selected one at: Window->Preferences->Team->SVN->SVN Client.


Hmmm...what's that?
I decided to check the preference page and found out that there is no connector installed at all. So where to get one...the error only tells me to download one, but not where to download it from...really nice error!

Ok, Google is your friend and so I found out that I have to add the following update site to get the connectors:

http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/

Just selected all available connectors and hit the install button...but if you think now the happy end comes in sight then you are wrong...the suffering continues...



Hmmm...I really think about doing a rm -Rf /opt/eclipse...what a mess.

Now it took really some time in Google to find the solution to this problem. There is again a update site missing...

http://download.eclipse.org/technology/subversive/0.7/update-site/

After adding it, you will not be able to see it. You have to select "Manage sites" and then select the added update site to be displayed. When finished, I just installed everything from that site and restarted eclipse.

So again I tried to use the connector update site and this time it worked finally.

Wow...somehow really a adventure...Eclipse documentation is somehow non-existing here.

I hope to save fellow developers time by posting this solution here.

14 comments:

Bernie_Woolfrey said...

Many thanks for your post.
I believe it saved me a lot of time and frustration..

Hervé said...

There's like some kind of lack of doc out of here.

I was trying to install SVN support in Eclipse for few days.

Thank you, and thank you again for that.

crm said...

you are the man - thank you!

Alessandro said...

You saved me a lot of time!

Thank youuuu!

Anonymous said...

Time saver!

Anonymous said...

I've been having the same issues, but am installing behind the company's firewall that seems to be blocking updates. I managed to get the archive file of Subversion and after a lot of fiddling was able to install that. However, there doesn't appear to be any archive file available to install the connector.
This is a long, painful process!

lhein said...

What version of Eclipse do you have installed? I recently reinstalled and used the Classic version of Eclipse for Linux: eclipse-SDK-3.4.1-linux-gtk.tar.gz.
This version was easier to setup for SVN. I only needed to install the SVN Team Stuff and the connectors.


For the firewall/proxy:

Please make sure you set the proxy correctly in Window/Preferences/General/Network Connections inside Eclipse. If you are on Linux/Unix also check for global proxy settings.
Another common thing in companies is that some Java versions are blocked. So have a talk with your admininstrator to find out what Java version is allowed to access the internet.

Hope this helps you in some way.

ndembskaya said...

Thanks, that helped me a lot.

naknang said...

thanks a lot! very helpful.

Ryan Medernach said...

Thanks for the post.

Anonymous said...

Thanks!

Anonymous said...

Thanks! You saved me from SVN meltdown!!

タオ チューン said...

Thanks so much! It saves me a lot of time.

hero said...

A lot of thanks dude. that site is great. you save my time.