Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

1
how to convert a existing code into maven?

Closed 1 Answers 48 Views
1 1
Please Explain with code if requires.

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

1 Answer

0
0
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.
answered by (151 points)
1Comments
asked Nov 25, 2016 by (324 points)
reopened Nov 25, 2016 by
That's fantastic. But what about maven dependency settings?
...