Posts

Setting up Maven in Eclipse editor

Why MAVEN? Maven (which means accumulator of knowledge ) is a build tool used to build and manage any Java-based project. It helps us to manage the daily tasks for Java developers easily. Maven provides simple yet  effective dependency management . It uses an XML file (POM.xml) to describe the project that we are building, the dependencies of the software with regards to third-party modules and parts, the build order, as well as the needed plugins. Maven downloads libraries and plugins from the different repositories and then puts them all in a cache on your local machine (C:\Users\ \.m2). Why Maven is used in Selenium? While working in selenium, we have to manage various dependencies (external JAR files) to execute our project, such as: Selenium-Java JARS, Log4j JARS, Apache POI jars etc. We can use MAVEN to reduce our efforts on managing these dependencies by adding them to POM.xml file. When we restore our OS / try to execute the project in different machine, the...