title: Example Maven pom.xml for Java based Selenium WebDriver project for Firefox
body: <p>I would like to automate <code>Firefox</code> using <code>Java</code> through a <code>Selenium WebDriver</code> project.</p>
  
  <p>As I never used <code>Selenium</code> nor <code>Maven</code> before I'm not familiar with how to set up a suitable <code>Maven pom.xml</code> file to create a project, which then can be imported into Eclipse.</p>
  
  <p>On <a href="http://docs.seleniumhq.org/docs/03_webdriver.jsp#introducing-webdriver" rel="nofollow noreferrer">http://docs.seleniumhq.org/docs/03_webdriver.jsp#introducing-webdriver</a> I found the following example for the opera browser:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;MySel20Proj&lt;/groupId&gt;
      &lt;artifactId&gt;MySel20Proj&lt;/artifactId&gt;
      &lt;version&gt;1.0&lt;/version&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
              &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
              &lt;version&gt;2.28.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.opera&lt;/groupId&gt;
              &lt;artifactId&gt;operadriver&lt;/artifactId&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;dependencyManagement&gt;
          &lt;dependencies&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;com.opera&lt;/groupId&gt;
                  &lt;artifactId&gt;operadriver&lt;/artifactId&gt;
                  &lt;version&gt;1.1&lt;/version&gt;
                  &lt;exclusions&gt;
                      &lt;exclusion&gt;
                          &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
                          &lt;artifactId&gt;selenium-remote-driver&lt;/artifactId&gt;
                      &lt;/exclusion&gt;
                  &lt;/exclusions&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;
      &lt;/dependencyManagement&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Would you be so kind and show me how to adapt this <code>pom.xml</code> to apply for the Firefox browser, say <code>Firefox 17</code>?</p>