title: Eclipse M2E Plugin don't add dependency from same workspace
body: <p>I have two maven projects:</p>
  
  <p>Project-A: Generating code via a tool</p>
  
  <p>Projects-B: This project depends on project-A, because it uses the generated code.</p>
  
  <p><strong>project-B/pom.xml:</strong></p>
  
  <pre><code>&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;dependencies&gt;
      &lt;dependency&gt;
          &lt;!-- This is project-A --&gt;
          &lt;groupId&gt;de.hsas.thrift&lt;/groupId&gt;
          &lt;artifactId&gt;tutorial&lt;/artifactId&gt;
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/l5oya.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l5oya.png" alt="project-B/Maven-Dependencies in Eclipse"></a></p>
  
  <p>Here is not the tutorial-SNAPSHOT.jar included, but a ?reference? to the project-A?</p>
  
  <p>How can i solve this behavior? I want that there is the jar of project-A.</p>
  
  <p>I tried something like this:</p>
  
  <pre><code>  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;de.hsas.thrift&lt;/groupId&gt;
          &lt;artifactId&gt;tutorial&lt;/artifactId&gt;
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
          &lt;scope&gt;system&lt;/scope&gt;
          &lt;systemPath&gt;${env.HOME}/.m2/repository/de/hsas/thrift/tutorial/0.0.1-SNAPSHOT/tutorial-0.0.1-SNAPSHOT.jar&lt;/systemPath&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>But this seems like to be not convenient..</p>