title: Maven Dependency with Parent Pom Not Working Properly
body: <p>I have the following maven structure.</p>
  
  <p><strong>Parent Pom</strong></p>
  
  <pre><code>&lt;dependencyManagement&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.glassfish.jersey.core&lt;/groupId&gt;
      &lt;artifactId&gt;jersey-client&lt;/artifactId&gt;
      &lt;version&gt;2.27&lt;/version&gt;
    &lt;/dependency&gt;
  &lt;/dependencyManagement&gt;
  </code></pre>
  
  <p><strong>Service Pom</strong></p>
  
  <pre><code>&lt;parent&gt;
      &lt;groupId&gt;com.aliseeks.dependencies&lt;/groupId&gt;
      &lt;artifactId&gt;AliseeksLive&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;/parent&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.glassfish.jersey.core&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-client&lt;/artifactId&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p><strong>Dependency Conflict:</strong></p>
  
  <pre><code>[INFO] +- org.glassfish.jersey.core:jersey-client:jar:2.27:compile
  [INFO] |  +- org.glassfish.jersey.core:jersey-common:jar:2.25.1:compile
  [INFO] |  |  +- org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.25.1:compile
  </code></pre>
  
  <p>Why does Maven pull in <code>JerseyCommon 2.25</code>? <code>JerseyClient 2.27</code> clearly depends on <code>JerseyCommon 2.25</code>? Is this because <code>JerseyClient 2.27</code> POM has <code>${project.version}</code> as a variable and its somehow getting messed up with Dependency Management?</p>
  
  <p><a href="https://s3.amazonaws.com/files.waka.run/deptree.txt" rel="nofollow noreferrer">Dependency Tree Dump</a></p>