Saturday, September 2, 2017

How to convert Java project to Maven in Eclipse

In this post,we will see how to convert normal Java project to Maven.

Maven project makes easy to handle dependencies using file 'pom.xml'.We assume that you already have maven plugin in eclipse. Else go through this post first.

Step 1->

In eclipse,right click on your project and select 'convert to maven' in option 'configure'.














Step 2->

On the dialog box poped up,complete the fields with your project details and click on 'finish'.














Step 3->

A pom.xml file will be created which confirms the project is maven compatible now.














You can add your dependencies plugins and more in this pom.xml which will automatically download for you from maven repo.

If you face any issue please let us know through comments.

More Related Posts @Tech

No comments:

Post a Comment