How to use Maven with Eclipse for Selenium

We will complete this in two part – In 1st part we will discuss how to add Maven plug-in

  1. Installing the M2Eclipse Plugin.
  2. Installing Maven in local system.

In this article we will see the 1st part only

Below steps to follow to install Maven on Eclipse IDE :

  1. Open your Eclipse IDE and click Help-> Install New Software…
  2. On the opened pop-up, click on the Addbutton to add a new repository
  3. Fill the form with the information below and press Ok
    Name : M2Eclipse
    Location :
Maven Eclipse plugin
Maven Eclipse plugin

4.After the Pending finish, select all the Plugins and press Next >

Maven Eclipse plugin
Maven Eclipse plugin

5.Accept the terms of the license agreement and click Finish

6. At the end of the installation, you will be asked to restart your Eclipse. Click Yes to perform the restart.

Apache Maven is now integrated to your IDE.


Checking if Maven has been successfully installed

To check if whether or not Maven has been successfully installed on Eclipse follow these steps:

  1.  Open your Eclipse IDE and click Help -> About Eclipse
  2. Check the presence of the M2Ecplise icon as below
Maven Eclipse plugin
Maven Eclipse plugin