Eclipse + Maven – Converting Web project to Maven project

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

Assumption:

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

1. Converting web project to maven project using Eclipse IDE:

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

1_Eclipse-Maven_Converting_and_Updating

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

2_Eclipse-Maven_Converting_and_Updating_dialog_box

That’s it

2. Updating Maven project in Eclipse IDE:

  • Sometimes after converting web project to maven project, you can get some issues OR
  • 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)

3_Eclipse-Maven_Converting_and_Updating_maven_update

3. Useful Eclipse IDE shortcuts :

Related Articles:

Happy Coding !!
Happy Learning !!

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