title: How do I run a specific goal with a particular configuration in a Maven plugin when I have several configurations for that goal
body: <p>See plugin config from pom.xml below.</p>
  <p>I can do:</p>
  <p><code>mvn myplugin:myGoal</code></p>
  <p>Which runs myGoal (both executions I suppose) but I want to be able to choose either the first or the second executions independently.</p>
  <p>I know I can add an id to the execution element, but how do I refer to that id on the command line. I'd like to get to something which does what this imagined command does:</p>
  <p><code>mvn myplugin:myGoal --executionId=1</code></p>
  <p>Is this possible, or am I going about this the wrong way?</p>
  <pre><code>        &lt;plugin&gt;
              &lt;groupId&gt;org.myplugin&lt;/groupId&gt;
              &lt;artifactId&gt;myplugin-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.1.1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;process-cats&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;myGoal&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;myParam&gt;cats&lt;/myParam&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
                  &lt;execution&gt;
                      &lt;id&gt;process-dogs&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;myGoal&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;myParam&gt;dogs&lt;/myParam&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>