Earlier nosotros learnt how to download too Install Maven In eclipse IDE In THIS POST. Another way of using maven amongst your selenium projection Is download It too configure It In windows organisation Instead of eclipse. There Is nada to Install but you lot only require to configure It In your windows organisation too hence you lot tin work It easily for your selenium coffee project. It Is real slowly process. Follow the steps given bellow to configure Maven In eclipse.
Step ane : Download too Install Java, Set JAVA_HOME Environment variable
First of all, You require to download too Install coffee In your system. You tin stance THIS POST to know from where to download coffee too how to fix JAVA_HOME surround variables.
After coffee Installation too surround variable setting, You require to banking concern tally that coffee Is Installed properly or not. To banking concern tally It, Run java -version ascendance In ascendance prompt every bit bellow. It volition exhibit you lot coffee version number. That agency coffee Is Installed properly In your system.
Step two : Download Maven
After successful coffee Installation, You require to download maven from official website of maven. You volition discovery maven download link on THIS SITE. Click on apache-maven-3.2.5-bin.zip link(Maven version may alter In future) to download maven every bit shown In bellow Image,
It volition download Maven In zip folder. Extract the folder, You volition become folder similar "apache-maven-3.2.5" from It based on your downloaded maven version.
Step iii : Set surround variable for maven
To fix maven surround variable,
- Go to your system properties window yesteryear correct clicking on estimator Icon. It volition opened upward window every bit shown In bellow Image.
- Click on Advanced organisation settings. It volition opened upward organisation properties window.
- From advanced tab, Click on Environment Variable button. It volition open Environment Variable window.
- In Environment Variable window, Click New button In System variable section. It volition opened upward New System Variable popup.
- In New System Variable popup, Enter variable advert = M2_HOME and Variable Value = path of apache-maven-3.2.5 folder. For me It Is "E:\Help too jounce files\apache-maven-3.2.5". Then click on OK button. It volition fix surround variable for maven every bit shown In bellow Image.
Step iv : Set Path variable
You needs to fix path variable for maven. You volition discovery path variable In Environment Variable popup. You require to fix maven bin folder path In path variable every bit bellow. To fix It, Select Path variable too click on Edit button. It volition opened upward Edit System Variable popup. Add ;(semicolon) too hence maven bin folder path at destination of path variable string.
For me It Is ;E:\Help too jounce files\apache-maven-3.2.5\bin
After fix path variable, click on OK button. Then closed all popup yesteryear clicking on OK buttons. Maven configuration work Is over now.
Verify maven configured/Installed properly or not
To verify that maven Is configured properly or not, You require to hold upward bellow given ascendance In ascendance prompt. It volition exhibit you lot maven version every bit shown In bellow Image. That agency maven Is Installed properly In windows.
mvn -version
Now maven Is configured properly In my windows system. Next postal service volition pull you lot how to create/setup maven projection from ascendance prompt for selenium test.
http://www.software-testing-tutorials-automation.com/