Eclipse + Maven: Converting Web project to Maven project

In this article, we will convert a general java web based project to maven project


We have already created project in Eclipse IDE –> Dynamic Web Project

Converting web project to maven project using Eclipse IDE

Step 1: Right Click on the Project –> Configure –> Convert to Maven Project



Step 2: Just add some relevant name and description to the project in conversion


That’s it


Updating Maven project in Eclipse IDE

Sometimes after converting web project to maven project, you can get some issues
In general maven project tends to throw some error due to dependencies issues

Reason –> Maven doesn’t getting updated

Solution –> Update the maven project

Step 1: Right Click on the project –> Go to Maven option –> Update Project (Alt + F5)


Happy Coding !!
Happy Learning !!

Eclipse + Maven: mvn eclipse:eclipse command
Eclipse + Maven: Creating and exploring projects using archetypes