title: maven warning: duplicate version when using two different types of dependecy of the same artifact
body: <p>Maven throws a strange warning while builduing our multi-module project. I'm just referencing the <em>jar</em> and <em>test-jar</em> of the same project in another project. Both dependencies have <em>test</em> scope. Im running Maven 3.3.1 and cannot upgrade the version easily. </p>
  
  <p>Does anyone of you have an idea how I could solve the problem without getting this warning from maven?</p>
  
  <p><strong>pom.xml of ProjectA:</strong></p>
  
  <pre><code>    &lt;dependency&gt; &lt;!-- This is line 130 --&gt;
          &lt;groupId&gt;${project.groupId}&lt;/groupId&gt;
          &lt;artifactId&gt;projectB&lt;/artifactId&gt;
          &lt;version&gt;${project.version}&lt;/version&gt;
          &lt;type&gt;test-jar&lt;/type&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;${project.groupId}&lt;/groupId&gt;
          &lt;artifactId&gt;projectB&lt;/artifactId&gt;
          &lt;version&gt;${project.version}&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p><strong>Warnings from maven (anonymized):</strong></p>
  
  <blockquote>
    <p>[WARNING] Some problems were encountered while building the effective model for org.group.ProjectA:1.0-SNAPSHOT
    [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: ${project.groupId}:org.group.ProjectB:jar -> duplicate declaration of version ${project.version} @ org.group.ProjectA, /var/lib/jenkins/jobs/nicejob/workspace/org.group.ProjectA/pom.xml, line 130, column 15</p>
  </blockquote>