Checking out Maven project from SVN in Eclipse
Solution 1
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.
Solution 2
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.
Solution 3
- Go to SVN repository Exploring perspective and checkout the project.
- Then go to Java perspective, right click the project and select Configure->Convert to Maven project
This works for me in Eclipse Luna.
Solution 4
You can install a plugin called m2e-subclipse to do that, but it's not currently that support. You might need to build it yourself.
Alternatively, what I prefer to do, is check out the project using TortoiseSVN (or a similar client for mac/linux). Subclipse will still pick up that it is a SVN project, and I'll use m2e to import the project (Import existing Maven project).
Harvey
Updated on July 09, 2022Comments
-
Harvey almost 2 years
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?