title: maven installed and configured properly, but not working with Eclipse
body: <p>i'm new to Maven, a quick question about how get Maven works with Eclipse. Below is what i've done.</p>
  
  <ol>
  <li>I installed the Maven on Windows and configured the environment. Test and verify that Maven installed correctly.</li>
  </ol>
  
  <pre>
  H:\>mvn -v
  Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T16:58:10-04:00)
  Maven home: C:\Program Files (x86)\maven\bin\..
  Java version: 1.7.0_71, vendor: Oracle Corporation
  Java home: C:\Program Files\Java\jdk1.7.0_71\jre
  Default locale: en_US, platform encoding: GBK
  OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows".
  </pre>
  
  <ol start="2">
  <li><p>In Eclipse, i installed m2e properly. Go to Eclipse Installation Details, i can see m2e, latest build.</p></li>
  <li><p>I created a pom file, including the following dependencies, one is for jbehave, the other is junit.
  <code>
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.jbehave&lt;/groupId&gt;
          &lt;artifactId&gt;jbehave-core&lt;/artifactId&gt;
          &lt;version&gt;3.1.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;version&gt;4.4&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></p></li>
  <li><p>I created a java class, which need import the class from <code>org.jbehave.core.*</code> and <code>org.junit.Test</code>, as can be seen, both can't be resolved.</p></li>
  <li><p>Go to Eclipse build path, i added jbehave-core-3.9.jar as external jar, and go to the java class, verified that now IDE can resolve the import from <code>org.jbehave.core.*</code>. Then i added junit4.jar as external jar too, verified that both error were gone. Looks like the Maven has not be working fine with Eclipse. </p></li>
  </ol>
  
  <p>I checked many articles on the stackflow, failed to figure out what's wrong with my steps. Simply i just want to run JBehave test with Maven. Looks like the first step is to get Maven works. Could you guys shed some light here? Thanks for your help!</p>