Selenium Simplified - Automated Browser Testing With Selenium WebDriver Made Simple

Sep 7, 2012 - 1 minute read - Maven Selenium Simplified Blog

Installing Maven for WebDriver on Windows 7

Just a quick post in case anyone else stumbles into issues configuring Maven on Windows 7 when you really just want to dive into WebDriver.

I tried to follow along with the instructions for installing Maven on the maven site.

http://maven.apache.org/download.html#Installation

The original writer wrote the instructions for Windows 2000 and XP, so I shall assume they work on Windows 2000 and XP.

For Windows 7, I found that if I created an M2 variable then, because alphabetically it comes before M2_HOME in a search, that M2_HOME did not expand in the paths.

So I did the following:

  • create an M2_HOME in System Variables
    • added %M2_HOME%\bin to the path in System Variables
      • added JAVA_HOME in System Variables
      I found the Rapid Environment Editor very helpful when debugging the variables as I was able to drag variables between System and User without having to retype and adding entries to the Path through a simple tree dialog came in handy.


For up to date instructions on getting started with Maven, check out my Java For Testers Install Page