« Disabling Glassfish-... | Main | MySQL and indicies »

Eclipse Indigo - Maven and SVN

With the latest release from Eclipse - Indigo - now Maven is well supported. So it is no longer an ordeal to install maven support and especially svn integration.

To add the Maven with SVN into Indigo it is sufficient to got to "help -> install new software"

There you can select the Indigo plugin repository 'Indigo - http://download.eclipse.org/releases/indigo'

Go to the section 'Collaboration' and select the features "m2e - Maven Integration for Eclispe".

 

Now you have maven support provided by the sonatype plugin "m2Eclipse"

If you need also Subversion support you should add the Subclipse Plugin. (this works in most cases better than the Subversive SVN Team Provider). To add sublicpse to Ecipse Indigo you need to add the following plugin site:

http://subclipse.tigris.org/update_1.6.x

From this update site you can choose all Sublicpse Plugins to bee installed.

Checking out a Maven Project from a SVN repository

To check out an existing Maven project from an subversion repository you need the additional scm connector. To get this connector installed simply create at first a new project from the 'New Project wizard' - (menue 'File -> new project')

Select the project type : "Maven -> Checkout Maven Projects from SCM":

 

Now you will see the dialog box to select your Target location:

 

The first time you can not choose a valid SCM URL type. You need first to install a SCM Connector for Maven and SVN. Click on the LInk 'm2e Marketplace'

You will see the m2e Marketplace where you can now select the "m2e-sublicpse" or the "m2e-subversive" connector (this depends on the subversion plugin you installed before - as noted here I recommend sublipse instead of subversion! - do not pay attention to the next screen shot!):

 

Note: If you are using a different SCM system you have to select the corresponding connector type

After the Installation finished you can select the SCM URL Type and enter your repository URL:

 

Alternatively you can also checkout a project from the SCM view with the option "checkout as maven project"