title: Why isn't my Maven plugin run in the build lifecycle?
body: <p>I have tried to add a goal to my maven lifecycle with the following pom part. I defined a new plugin and configured it with phase and execute information.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;build&gt;
      &lt;pluginManagement&gt;
          &lt;plugins&gt;                   
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.openjpa&lt;/groupId&gt;
                  &lt;artifactId&gt;openjpa-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.2.0&lt;/version&gt;
                  &lt;configuration&gt;
                  &lt;includes&gt;**/entity/*.class&lt;/includes&gt;
                 &lt;addDefaultConstructor&gt;true&lt;/addDefaultConstructor&gt;
                 &lt;connectionDriverName&gt;com.ibm.db2.jcc.DB2Driver&lt;/connectionDriverName&gt;
                          &lt;enforcePropertyRestrictions&gt;true&lt;/enforcePropertyRestrictions&gt;
                          &lt;sqlFile&gt;${project.build.directory}/database.sql&lt;/sqlFile&gt;
                      &lt;/configuration&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;id&gt;sql&lt;/id&gt;
                              &lt;phase&gt;generate-resources&lt;/phase&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;sql&lt;/goal&gt;
                              &lt;/goals&gt;
                          &lt;/execution&gt;
                          &lt;execution&gt;
                              &lt;id&gt;enhancer&lt;/id&gt;
                              &lt;phase&gt;process-classes&lt;/phase&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;enhance&lt;/goal&gt;
                              &lt;/goals&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                      &lt;dependencies&gt;
                          &lt;dependency&gt;
                              &lt;groupId&gt;org.apache.openjpa&lt;/groupId&gt;
                              &lt;artifactId&gt;openjpa&lt;/artifactId&gt;
  
                              &lt;version&gt;2.1.1&lt;/version&gt;
                          &lt;/dependency&gt;
                      &lt;/dependencies&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
      &lt;/build&gt;
  </code></pre>
  
  <p>Then I run maven with <code>mvn:install</code> But the plugin is not run?</p>