how to convert a existing code into maven? [closed]

by (324 points)
+1 vote
Please Explain with code if requires.

how to convert a existing code into maven?
closed with the note: got it.
by (171 points)
Is your project an Ant project or simple Eclipse project?
by (324 points)
it's a simple eclipse project. i am also using TestNG.

1 Answer

by (171 points)
0 votes
Install Eclipse Maven plugin: http://www.eclipse.org/m2e/

You may have to restart your Eclipse.

In your eclipse just right click on Java Project and click Configure and you should see “Convert to Maven Project” option.

You should see "Create new POM" dialog. Enter Groupd ID, Artifact ID, Name and Description.

That's all. You just converted your Eclipse project to maven


Hope that helps.
asked Nov 25, 2016 by (324 points)
reopened Nov 25, 2016 by
That's fantastic. But what about maven dependency settings?