title: Is it possible to execute two different maven exec-maven-plugin in a single POM
body: <p>I execute the following code using <code>mvn exec:java com.mycompany.FooServer</code>.</p>
  
  <p>I would like to add another server which I can execute like <code>mvn exec:java com.mycompany.BarServer</code>.</p>
  
  <p>How do I do that within a single pom file?</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.2.1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;java&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;mainClass&gt;com.mycompany.FooServer&lt;/mainClass&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
   &lt;/build&gt;  
  </code></pre>