Maven

Import Maven Project in Eclipse

Import Maven Project in Eclipse

If you’re new to Eclipse, you might be wondering how to import an existing project into it. In this tutorial, we will go through step-by-step screens on how to import a Maven project into Eclipse IDE.

Import Project

First things first, identify the folder of the existing project on your hard drive. Now go to Eclipse File -> Import

menu as shown in the figure.

 

Eclipse File Import

pom.xml

In the next screen Choose Maven -> Existing Maven Projects

 

Existing Maven Projects

 

Browse to the existing folder and check the pom.xml file under the project folder and click on Finish as shown on the screen.

 

Import Maven Project

 

Sometimes if your project has a lot of files it may take some time. Please be patient.

Import_Maven_Eclipse4

 

That’s it you are almost done importing the maven project. Sometimes the imported project might show a red cross mark in the Project Explorer. This means you have errors in your imported project or eclipse is still running background tasks of downloading and building your workspace.

Go to the problems tab and check for any project errors and resolve them. The problems tab states all the errors in the project.

Import_Maven_Eclipse5

Errors Tab

Resolve the errors in the project and the red cross mark would go away for the project in the Project explorer. It is very important to resolve the errors in the project.

In conclusion, once you are done with resolving the errors you are done with the importing process of the existing maven project. You can continue working to add more features to the project.

 

Eclipse Tutorials on this website can be found at: