title: Exception in thread "main" java.lang.NoClassDefFoundError: org/openqa/selenium/WebDriver
body: <p>I have added the most updated Selenium dependency in my pom.xml</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
      &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
      &lt;version&gt;3.7.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>I ran 
      mvn clean install
  inside the directory with my pom.xml and I have also imported the correct classes in my app class as per the Selenium documentation</p>
  
  <pre><code>import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.firefox.FirefoxDriver;
  </code></pre>
  
  <p>However when i try and run my main method, I get the following error </p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: 
  org/openqa/selenium/WebDriver
  </code></pre>
  
  <p>I look in my ~/.m2/repository folder and I don't see an openqa folder but instead I see a seleniumhq folder. </p>
  
  <p>Why didn't maven install the openqa folder, and why does the documentation say to import from org.openqa... when that never exist in my jar repository. I'm very confused, I just want to be able to import selenium Webdriver successfully while having it in my local repository. </p>