Import Maven Project into Eclipse using Maven Plugin
In this tutorial we shall see how we import maven project into eclipse.
I got lot of mails for my previous blog articles asking me how to use the downloaded project, hence i am writing this.
1. Download a sample Maven Project
Lets download a sample Maven Project from here and save it on our local file system and unzip the same. On unzipping we get an Eclipse Folder Project.
2. Install Maven Plugin for Eclipse.
Lets install the Maven Plugin for Eclipse. If you already have this plugin installed then you can skip to the next section.
In Eclipse –> Help –> Eclipse Marketplace search for Maven. Look out for plugin “Maven Integration for Eclipse WTP” and install the same. I prefer this plugin because it didn’t give me much errors while using. However you can install other plugins based on your preference.
3. Maven Project Import
In Eclipse –> File –> Import expand Maven and select “Existing Maven Projects” then Next, browse for the project folder we just downloaded in Step 1 and the click Finish.
The above step is the most important. If there is some error in the previous step then that might be because of Corrupt/Invalid Maven Project or Maven Plugin Issue.
4. Check Imported Project
The Imported Project would be present in the workspace will all the required dependencies download.
I hope this has been useful for you and I’d like to thank you for reading. If you like this article, please leave a helpful comment and share it with your friends.