Blog to understand automation concepts in QTP, Selenium Webdriver and Manual Testing concepts

Converting an existing project in Selenium to Maven Project in Eclipse

Maven can be integrated with eclipse IDE to manage build and deploy selenium or any java project in eclipse. In this article we will discuss on first step in Setting up existing project to maven project.

Installing Maven plugin in eclipse is simple and takes around thirty minutes to install. Below are simple steps to install maven plugin in eclipse.


  • Open eclipse and click on Help>Eclipse Marketplace



  • Search for maven in eclipse marketplace. Install Maven integration for Eclipse
  • Once maven is installed, restart eclipse.
  •  Go to workspace and right click on the project and click on configure as shown in screenshot below
  • Click on Convert to Maven Project.
  • A pop up to create a new Maven POM will appear.

  • Click on finish. A POM file will be created automatically.

You can set project dependencies in the POM file POM stands for "Project Object Model". It is an XML representation of a Maven project held in a file named pom.xml.


Once the project is set as maven project, we can perform various action in Project using maven as shown in screenshot below. We can also add selenium dependencies in the POM to manage selenium artifacts , which will be explained in next articles.






No comments:

Post a Comment