title: Maven plugin executes multiple times during build
body: <p>I have a Maven project with multiple overlapping profiles.  I want to display the active profiles at the beginning of every build.  So I put the following into the <code>pom.xml &lt;build&gt;</code> section:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-help-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.1.1&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;display-active-profiles-at-start-of-build&lt;/id&gt;
              &lt;phase&gt;validate&lt;/phase&gt;
              &lt;goals&gt;
                  &lt;goal&gt;active-profiles&lt;/goal&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>The problem is that the plugin executes multiple times during the build:</p>
  
  <ol>
  <li>At the beginning of the build (during the <code>validate</code> phase).</li>
  <li>When <code>jar:jar</code> executes.</li>
  <li>After <code>source:jar</code> / during <code>pre-integration-test</code> (?), when Jetty is being started.</li>
  </ol>
  
  <p>Similar results when specifying <code>&lt;phase&gt;initialize&lt;/phase&gt;</code>.  Is there a way to get this to only run at the beginning of the build?</p>