title: How to find a Maven dependency version declaration imported from a BOM
body: <p>A multi-module parent POM declares the following BOM import:</p>
  
  <pre><code>&lt;dependencyManagement&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;io.spring.platform&lt;/groupId&gt;
        &lt;artifactId&gt;platform-bom&lt;/artifactId&gt;
        &lt;version&gt;${spring.io.platform.version}&lt;/version&gt;
        &lt;type&gt;pom&lt;/type&gt;
        &lt;scope&gt;import&lt;/scope&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Then a module POM declares a Hibernate dependency:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
    &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>How do I find out with Maven command line or IntelliJ where the effective Hibernate version is defined?</p>
  
  <p>Running <code>mvn dependency:tree</code> against my module yields:</p>
  
  <pre><code>...
  [INFO] +- org.hibernate:hibernate-core:jar:4.3.11.Final:compile
  ...
  </code></pre>
  
  <p>which is not exactly helpful because it looks no different than if I managed the Hibernate version myself. If you have to do this manually you </p>
  
  <ul>
  <li>start at <code>platform-bom-2.0.3.RELEASE.pom</code>, search for Hibernate -> nothing</li>
  <li>go to its parent <code>spring-boot-starter-parent-1.3.3.RELEASE.pom</code>, search for Hibernate -> nothing</li>
  <li>go to <em>its</em> parent <code>spring-boot-dependencies-1.3.3.RELEASE.pom</code>, search for Hibernate -> finally... </li>
  </ul>
  
  <p>But what an ordeal. Of course you could check <a href="http://docs.spring.io/platform/docs/current/reference/htmlsingle/#appendix-dependency-versions" rel="noreferrer">http://docs.spring.io/platform/docs/current/reference/htmlsingle/#appendix-dependency-versions</a> but isn't that information Maven should be able to find on its own?</p>