title: Plugin execution not covered by lifecycle configuration
body: <p>I am newbiee to maven. I am trying to add JAXB2 plugin and dependencies to generate xml files from xsd. When I add underneath dependencies then a error is thrown under markers:-</p>
  
  <p>Plugin execution not covered by lifecycle configuration: org.jvnet.jaxb2.maven2: maven-jaxb2-plugin:0.7.4:generate(execution: default, phase: generate-sources) </p>
  
  <p>The error is marked over  tag in jaxb2 plugin. I added this  tag in reference to solutions over internet, but nothing works.</p>
  
  <p>My pom.xml looks like this:- </p>
  
  <pre><code> &lt;build&gt;
      &lt;finalName&gt;PatternsWebapp&lt;/finalName&gt;
  
      &lt;defaultGoal&gt;install&lt;/defaultGoal&gt;
  
      &lt;pluginManagement&gt;
          &lt;plugins&gt;
              &lt;!--  This plugin's configuration is used to store Eclipse m2e settings 
                  only. It has no influence on the Maven build itself. --&gt; 
              &lt;plugin&gt;
                  &lt;groupId&gt;org.eclipse.m2e&lt;/groupId&gt;
                  &lt;artifactId&gt;lifecycle-mapping&lt;/artifactId&gt;
                  &lt;version&gt;1.0.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;lifecycleMappingMetadata&gt;
                          &lt;pluginExecutions&gt;
                              &lt;pluginExecution&gt;
                                  &lt;pluginExecutionFilter&gt;
                                      &lt;groupId&gt;
                                          org.appfuse.plugins
                                      &lt;/groupId&gt;
                                      &lt;artifactId&gt;
                                          maven-warpath-plugin
                                      &lt;/artifactId&gt;
                                      &lt;versionRange&gt;
                                          [2.1.0,)
                                      &lt;/versionRange&gt;
                                      &lt;goals&gt;
                                          &lt;goal&gt;add-classes&lt;/goal&gt;
                                      &lt;/goals&gt;
                                  &lt;/pluginExecutionFilter&gt;
                                  &lt;action&gt;
                                    &lt;execution&gt;&lt;/execution&gt;
                                  &lt;/action&gt;
                              &lt;/pluginExecution&gt;
                          &lt;/pluginExecutions&gt;
                      &lt;/lifecycleMappingMetadata&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/pluginManagement&gt;
  
  
  
      &lt;plugins&gt;
    &lt;plugin&gt;
              &lt;groupId&gt;org.jvnet.jaxb2.maven2&lt;/groupId&gt;
              &lt;artifactId&gt;maven-jaxb2-plugin&lt;/artifactId&gt;
              &lt;version&gt;0.7.4&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;generate&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;verbose&gt;true&lt;/verbose&gt;
                  &lt;schemaDirectory&gt;src/main/resources&lt;/schemaDirectory&gt;
                  &lt;generatePackage&gt;com.webapp.xml&lt;/generatePackage&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
      &lt;plugin&gt;
                  &lt;inherited&gt;true&lt;/inherited&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.7&lt;/source&gt;
                      &lt;target&gt;1.7&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
  
      &lt;/plugins&gt;
  
  
    &lt;/build&gt;
  </code></pre>