title: Can a Maven plugin see the "configuration" tag from an "execution" section automatically?
body: <p>I'm analyzing a Maven plugin that I can configure inside the <code>configuration</code> section of <code>plugin</code>:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;plugin&gt;
       ...
       &lt;executions&gt;...&lt;/executions&gt;
       &lt;configuration&gt;
           &lt;!-- items placed here are visible to the MOJO --&gt;
       &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>The plugin completely ignores any configuration items for an <code>execution</code>, though:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;plugin&gt;
       ...
       &lt;executions&gt;
           &lt;execution&gt;
               &lt;id&gt;execution1&lt;/id&gt;
               &lt;phase&gt;test&lt;/phase&gt;
               &lt;goals&gt;&lt;goal&gt;test&lt;/goal&gt;&lt;/goals&gt;
               &lt;configuration&gt;
                  &lt;!-- items placed here are ignored --&gt;
               &lt;/configuration&gt;
           &lt;/execution&gt;
       &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>I run Maven with <code>mvn test</code>. I'm sure that the execution takes place, as Maven prints its <code>id</code> correctly, but the plugin is not configured -- prints warnings about incorrect settings that are not present when the <code>&lt;configuration&gt;</code> section is moved outside of <code>&lt;executions&gt;</code>.</p>
  
  <p><strong>The question:</strong> is it the way the plugin is implemented, that it accepts only "top level" configuration? I've studied its source code and it seemed to me that it's Maven that invokes setters on a MOJO class and it's transparent to the plugin which section the options came from. </p>
  
  <p>The MOJO is annotated with:</p>
  
  <pre class="lang-none prettyprint-override"><code>* @component
  * @goal test
  * @phase test
  * @execute phase="jasmine-process-test-resources"
  </code></pre>