Verifying Maven project from SVN in Eclipse

I just downloaded and installed the latest Eclipse Juno. I also installed Maven and SVN through the Eclipse Market Place. The problem that I get is that when I check the project from my SVN repository, the project is not checked as a Maven project.

I am using windows 7 x64. Can anyone shed some light on this question? Am I doing something wrong?

+6
source share
4 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 character"

I often use both actions (in reverse order) to "reload" the maven configuration.

+8
source

The project does not need to be verified as a maven project. What you need to do, after checking your project (from an SVN perspective), switch to the Java perspective and import it as a maven project.

This will work if there is a pom.xml file in your project.

enter image description here

+2
source

You can install a plugin called m2e-subclipse for this, but it is not currently supported. You may need to create one yourself.

Link to m2cllipse-subclipse .

Alternatively, what I prefer to do is check out the project using TortoiseSVN (or a similar client for mac / linux). Subclipse will still understand that this is an SVN project, and I will use m2e to import the project (import an existing Maven project).

+1
source
  • Go to the SVN repository. Study the perspective and see the project.
  • Then go to the Java page, right-click the project and select "Configure-> Convert to Maven Project"

This works for me at Eclipse Luna.

+1
source

Source: https://habr.com/ru/post/922641/


All Articles