title: Eclipse - Maven dependency is being ignored
body: <p><strong>I have a problem with adding maven dependencies to eclipse</strong>. </p>
  
  <p>What should be OK:</p>
  
  <ul>
  <li>pom.xml already contains all the dependencies and compilation and running tests using maven finished with success</li>
  <li>all the source folders were recognized by eclipse </li>
  <li>eclipse has Maven plugin and project is managed as maven project (see figure below)</li>
  <li><p>pom.xml has maven-compiler-plugin, so the eclipse should know it is a maven project</p>
  
  <pre><code>&lt;plugin&gt;
    &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.3.1&lt;/version&gt;&lt;!--$NO-MVN-MAN-VER$ --&gt;
      &lt;configuration&gt;
          &lt;source&gt;1.7&lt;/source&gt;
          &lt;target&gt;1.7&lt;/target&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre></li>
  </ul>
  
  <p>Issue:</p>
  
  <ul>
  <li>eclipse does not resolve dependencies defined in pom.xml (guava, juint and other libraries are in pom.xml but not in eclipse class path)</li>
  <li>any right click > Maven > Update project has no any effect (see figure below)</li>
  <li>I noticed that libraries does not contain any Maven Managed Dependencies - by adding as described below has no any effect</li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/ztgWH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ztgWH.png" alt="enter image description here"></a></p>
  
  <p><strong>My attempt to add Maven Managed Dependencies to Eclipse manually</strong></p>
  
  <p>1) Add library</p>
  
  <p><a href="https://i.stack.imgur.com/yRIMq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yRIMq.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Srszw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Srszw.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/LQonL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LQonL.png" alt="enter image description here"></a></p>
  
  <p>1)
  This attempt has no any effect and "Java Library Path" remains the same even after this action.</p>
  
  <p>2)
  Command</p>
  
  <pre><code>mvn eclipse:eclipse 
  </code></pre>
  
  <p>Fails with </p>
  
  <pre><code>[ERROR] Failed to execute goal on project pmml-model: Could not resolve dependencies for project org.jpmml:pmml-model:jar:1.3-SNAPSHOT: The following artifacts could not be resolved: org.jpmml:pmml-agent:jar:1.3-SNAPSHOT, org.jpmml:pmml-schema:jar:1.3-SNAPSHOT: Could not find artifact org.jpmml:pmml-agent:jar:1.3-SNAPSHOT in sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots) -&gt; [Help 1]
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Uzt3z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Uzt3z.png" alt="enter image description here"></a></p>