title: Why the maven child referencing versions from BOM does not work?
body: <p>I created this example POM file so that I do not need the dependency versions replicated in each child project. My requirement is that the thirdparty version need not be provided for each project. Each project should inherit the library versions from the bom file. I created the example based on the <a href="http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html" rel="nofollow noreferrer">documentation of Maven dependencies</a>. My maven version is <strong>Apache Maven 3.2.5</strong> </p>
  
  <p>I am getting the error below</p>
  
  <pre><code>[INFO] Scanning for projects...
  [ERROR] The build could not read 1 project -&gt; [Help 1]
  [ERROR]   
  [ERROR]   The project org.test.testapp:test-app:1.0-SNAPSHOT (/Users/skoya/workspace/test-app/pom.xml) has 2 errors
  [ERROR]     'dependencies.dependency.version' for junit:junit:jar is missing. @ line 22, column 17
  [ERROR]     'dependencies.dependency.version' for commons-cli:commons-cli:jar is missing. @ line 26, column 17
  </code></pre>
  
  <p><strong>root bom pom file</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;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
          &lt;groupId&gt;org.test&lt;/groupId&gt;
          &lt;artifactId&gt;bom&lt;/artifactId&gt;
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
          &lt;packaging&gt;pom&lt;/packaging&gt;
          &lt;name&gt;test-dependencies-bom&lt;/name&gt;
          &lt;url&gt;http://myorg.org&lt;/url&gt;
  
          &lt;properties&gt;
                  &lt;commons-cli.version&gt;1.3&lt;/commons-cli.version&gt;
                  &lt;junit.version&gt;3.8.1&lt;/junit.version&gt;
          &lt;/properties&gt;
  
          &lt;modules&gt;
              &lt;module&gt;test-dependencies&lt;/module&gt;
          &lt;/modules&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p><strong>test-dependencies/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;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
          &lt;groupId&gt;org.test&lt;/groupId&gt;
          &lt;artifactId&gt;test-parent-pom&lt;/artifactId&gt;  
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
          &lt;packaging&gt;pom&lt;/packaging&gt;
  
          &lt;name&gt;test-parent-pom&lt;/name&gt;
          &lt;url&gt;http://maven.apache.org&lt;/url&gt;
          &lt;parent&gt;
                  &lt;groupId&gt;org.test&lt;/groupId&gt;
                  &lt;artifactId&gt;bom&lt;/artifactId&gt;
                  &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
          &lt;/parent&gt;
  
          &lt;prerequisites&gt;
                  &lt;maven&gt;3.0.0&lt;/maven&gt;
          &lt;/prerequisites&gt;
  
  
          &lt;dependencies&gt;
                  &lt;dependency&gt;
                          &lt;groupId&gt;commons-cli&lt;/groupId&gt;
                          &lt;artifactId&gt;commons-cli&lt;/artifactId&gt;
                          &lt;version&gt;${commons-cli.version}&lt;/version&gt;
                  &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
                          &lt;version&gt;${junit.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
          &lt;/dependencies&gt; 
  &lt;/project&gt;
  </code></pre>
  
  <p><strong>Maven project files referencing the bom file</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/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;org.test.testapp&lt;/groupId&gt;
    &lt;artifactId&gt;test-app&lt;/artifactId&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;name&gt;test-app&lt;/name&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&gt;
    &lt;dependencyManagement&gt;
      &lt;dependencies&gt;
        &lt;dependency&gt;
          &lt;groupId&gt;org.test&lt;/groupId&gt;
          &lt;artifactId&gt;bom&lt;/artifactId&gt;
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
          &lt;type&gt;pom&lt;/type&gt;
          &lt;scope&gt;import&lt;/scope&gt;
        &lt;/dependency&gt;
      &lt;/dependencies&gt;
    &lt;/dependencyManagement&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;commons-cli&lt;/groupId&gt;
        &lt;artifactId&gt;commons-cli&lt;/artifactId&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>