title: Defining custom lifecycle phases in Maven 2
body: <p>In my <code>pom.xml</code> I have referenced a custom plugin, which is exposing a couple of goals. While I can attach these goals to the various build life-cycle phases, I would like to be able to invoke a set of goals defined in the POM by using my custom alias <em>phase</em> on the command line, such as:</p>
  
  <pre><code>mvn myphase
  </code></pre>
  
  <p>Is there any way to accomplish this? I would like to avoid modifying my plugin as I need to run some auxiliary operations, which are provided by the antrun plugin.</p>