1)Set JAVA_HOME from environment variable(My computer -advanced setting)
2) add to path which added as JAVA_HOME till bin folder
3) Download ANT from Apache maven website, go for "bin" version for maven
4) unzip folder
5) set MAVEN_HOME and M2_HOME from advance setting
6) add to path which added as MAVEN_HOME till bin folder
7) go to cmd check mvn -version (verify maven install it proper or not)
8) If 7th step failed, then you are wrong with enviorment setting or java version
9) go to eclipse, add new software->http://download.eclipse.org/technology/m2e/releases as maven
10) go to project , right click and configure as maven
11) now go to project-pom.xml add dependancy as per your need, eg below dependancy for latest selenium jars
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.53.0</version>
</dependency>
So this is how you can add maven to your selenium project
No comments:
Post a Comment