Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Checking out Maven project from SVN in Eclipse

I have just downloaded and installed the latest Eclipse Juno. I have also installed Maven and SVN through the Eclipse Market Place. The problem I am getting is that when I check-out a project from my SVN repository, the project doesn't get checked out as a Maven project.

I am using Windows 7 x64 OS. Could anyone shed some light on this matter? Am I doing something wrong?

like image 547
Harvey Avatar asked Aug 11 '12 18:08

Harvey


People also ask

How do I checkout a project in Eclipse?

In order to checkout a remote project, you will have to clone its repository first. Open the Eclipse Import wizard (e.g. File => Import), select Git => Projects from Git and click Next. Select “URI” and click next. Now you will have to enter the repository's location and connection data.

How do I view Maven in Eclipse?

To check maven is configured properly: Open Eclipse and click on Windows -> Preferences. Choose Maven from left panel, and select installations. Click on Maven -> "User Settings" option form left panel, to check local repository location.

How do I select a Maven project in Eclipse?

Create a new Maven project in Eclipse. From the File menu, choose New, and then choose Project. In the New Project window, choose Maven Project. In the New Maven Project window, choose Create a simple project, and leave other default selections.

How do I open an existing SVN project in Eclipse?

#1) Right-click on the project folder in the project explorer, and click on Team -> Share. #2) In the following window, select SVN and click next. #3) The next window will ask you for your SVN repository URL and credentials, enter that and click finish to add and commit.


2 Answers

With m2e installed, you can right click on the project and:

  • "Configure"->"Convert to maven project" (and it will read your pom.xml) or
  • "Maven"->"Disable maven nature"

I often use both steps (in reverse order) to "reboot" the maven configuration.

like image 167
Nicholas Albion Avatar answered Sep 25 '22 06:09

Nicholas Albion


The project doesn't need to be checked out as a maven project. What you need to do is, after checking out your project ( using the SVN perspective ) go to the Java perspective and import it as a maven project.

This will work if your project has a pom.xml file.

enter image description here

like image 24
Tomer Avatar answered Sep 22 '22 06:09

Tomer