Skip to main content

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.

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

You will need a Github account to comment. Or you can contact me with your comment.

I reserve the right to delete spam comments e.g. if your comment adds no value and its purpose is simply to create a backlink to another site offering training, or courses, or etc.