title: 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing
body: <p>Trying to get familiar with maven and taking an online course and am stuck .... appreciate any help provided.</p>
  
  <p>I'm running the Site phase and although it completes and I'm able to actually view index.html in a browser I am getting a lot of errors along the way, specifically:</p>
  
  <p>'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing</p>
  
  <p>Have no idea why it's generating this error.  As you can see below I have the version in both dependency and plugins.  And I tried all I can find on sites.  Why does it think the version is missing?  Any ideas how to resolve?  thanks in advance for any help!</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &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;com.dp&lt;/groupId&gt;
      &lt;artifactId&gt;TestNG77&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
          &lt;java.version&gt;11&lt;/java.version&gt;
          &lt;maven.compiler.source&gt;${java.version}&lt;/maven.compiler.source&gt;
          &lt;maven.compiler.target&gt;${java.version}&lt;/maven.compiler.target&gt;
      &lt;/properties&gt;
  
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
                      &lt;artifactId&gt;commons-lang3&lt;/artifactId&gt;
                      &lt;version&gt;3.8.1&lt;/version&gt;
                  &lt;/dependency&gt;
  
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.testng&lt;/groupId&gt;
                      &lt;artifactId&gt;testng&lt;/artifactId&gt;
                      &lt;version&gt;7.0.0&lt;/version&gt;
                      &lt;scope&gt;test&lt;/scope&gt;
                  &lt;/dependency&gt;
  
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
                      &lt;version&gt;2.22.2&lt;/version&gt;
                  &lt;/dependency&gt;
  
  
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-surefire-report-plugin&lt;/artifactId&gt;
                      &lt;version&gt;2.22.2&lt;/version&gt;
                  &lt;/dependency&gt;
  
              &lt;/dependencies&gt;
  
              &lt;build&gt;
                  &lt;pluginManagement&gt;
                      &lt;plugins&gt;
                          &lt;plugin&gt;
                              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                              &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
                              &lt;version&gt;2.22.2&lt;/version&gt;
                          &lt;/plugin&gt;
                          &lt;plugin&gt;
                              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                              &lt;artifactId&gt;maven-site-plugin&lt;/artifactId&gt;
                              &lt;version&gt;3.7.1&lt;/version&gt;
                          &lt;/plugin&gt;
                      &lt;/plugins&gt;
                  &lt;/pluginManagement&gt;
              &lt;/build&gt;
  
              &lt;reporting&gt;
                  &lt;plugins&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                          &lt;artifactId&gt;maven-surefire-report-plugin&lt;/artifactId&gt;
                          &lt;version&gt;2.22.2&lt;/version&gt;
                      &lt;/plugin&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                          &lt;artifactId&gt;maven-project-info-reports-plugin&lt;/artifactId&gt;
                          &lt;version&gt;3.0.0&lt;/version&gt;
                      &lt;/plugin&gt;
                  &lt;/plugins&gt;
              &lt;/reporting&gt;
  
  </code></pre>