How to checkout maven project from svn repository

54,324

Solution 1

tl;dr : Check out this video. The portion between 1:04 and 1:50 should answer your question (To skip to the interesting part, click on the youtube player and press 4).

You already have the SVN connector for m2e installed. Thus it should be possible to Import Existing Maven Project from the SVN repository.

From the options you have listed in the above snapshot, you should be able to proceed after selecting the First or the Fourth option i.e. :

enter image description here

(according to Mauno V's suggestion below) To convert this imported project into a Maven project Right Click on it and do a Configure -> Convert to a Maven Project like so :

enter image description here

Solution 2

If you have Pom project as a root branch, after project checkout completed, you may do it with import project as 'Existing Maven Project' and set the project as root project, and finish!

you should be able to see your module define as project in eclipse project explore, and eclipse will recognized as module project.

do right-click on Pom project, Maven -> Update Project or Alt+f5 to refresh and see the content project.

Share:
54,324

Related videos on Youtube

Curt
Author by

Curt

I am a J2EE Web developer.

Updated on May 12, 2020

Comments

  • Curt
    Curt about 4 years

    I am new to Maven and Eclipse, I need to check out an existing Maven project from a SVN repository. I have installed the M2E plugin and the subversion plugin and they seem to be working properly. Here are the Installation Details --> enter image description here

    When I right click in the project explorer and select Import -> SVN -> Project from SVN, then select the repository location and click finish, I am prompted with 4 possibilitiesenter image description here

    What is the procedure for checking out a Maven Project from this point on, or am I on the right track here?

    Thanks for your help in advance!

    • Mauno Vähä
      Mauno Vähä almost 12 years
      I usually check out projects to my eclipse via svn repository explorer (and these days, using maven via command line). But if you are still not on track after completing steps @Ashutosh jindal provided, view this url to see how the rest is done: eureka.ykyuen.info/2009/11/19/…
  • Curt
    Curt almost 12 years
    If I select "Check out as a project with the name specified" then I do not know how to make this a "Maven" project? ie when looking at the Project Properties I do not see the normal "Maven" interface, and I cant seem to be able to add Maven Dependencies to the Build Path
  • Mauno Vähä
    Mauno Vähä almost 12 years
    You can always convert it later to maven project by 1.) select the java project and popup the context menu 2.) select Configure>Convert to Maven Project
  • Ashutosh Jindal
    Ashutosh Jindal almost 12 years
    @CurtWalker, kindly upvote Mauno V's comment too since it was the crucial missing bit from my answer (I have updated my answer with Mauno v's suggestion)
  • Curt
    Curt almost 12 years
    I don't think I have enough reputation to do that on here yet heh