title: Maven resolving versions of dependencies
body: <p>If two dependences of a module both have a common depdnendency but have different versions specified in their poms, which version is used when building the module?</p>
  
  <p>For example</p>
  
  <pre><code>        Artifact-A
          /       \
         /         \
        /           \
  Artifact-B      Artifact-C
        \           /
   1.6.0 \         / 1.8.0
          \       /
          Artifact-D
  </code></pre>
  
  <p>Similarly in the scenario detailed below what version of Artifact-C would Artifact-A use?</p>
  
  <pre><code>    Artifact-A
          |      \
          |       |
          |       |
      Artifact-B  | 1.60.0
          |       |
   1.62.0 |       |
          |      /
      Artifact-C
  </code></pre>
  
  <p>If you could provide or link to a concise explination of how maven resolves these versions.</p>