title: How do I know what are different goals available for plug-in in maven?
body: <p>I recently started using maven. so this question might sound basic.
   This question came up when I was browsing through some code using <a href="http://cargo.codehaus.org/Home" rel="nofollow">cargo</a> plug-in.</p>
  
  <p>In the following snippet of maven plugin in pom.xml, that i extracted from <a href="http://cargo.codehaus.org/Starting+and+stopping+a+container" rel="nofollow">here</a>,
  my understanding is as follows:</p>
  
  <pre><code>&lt;plugin&gt;
        &lt;groupId&gt;org.codehaus.cargo&lt;/groupId&gt;
        &lt;artifactId&gt;cargo-maven2-plugin&lt;/artifactId&gt;
        &lt;executions&gt;
          &lt;execution&gt;
            &lt;id&gt;start-container&lt;/id&gt;
            &lt;phase&gt;pre-integration-test&lt;/phase&gt;
            &lt;goals&gt;
              &lt;goal&gt;start&lt;/goal&gt;
            &lt;/goals&gt;
          &lt;/execution&gt;
          &lt;execution&gt;
            &lt;id&gt;stop-container&lt;/id&gt;
            &lt;phase&gt;post-integration-test&lt;/phase&gt;
            &lt;goals&gt;
              &lt;goal&gt;stop&lt;/goal&gt;
            &lt;/goals&gt;
          &lt;/execution&gt;
        &lt;/executions&gt;
        &lt;configuration&gt;
          [Cargo plugin configuration goes in here]
        &lt;/configuration&gt;
      &lt;/plugin&gt;
  </code></pre>
  
  <ol>
  <li><p>This plug in bound to <code>pre-integration-test</code> and <code>post-integration-test</code> phase of build LifeCycle, which also means when I run <code>mvn install</code> this will be executed. </p></li>
  <li><p>The goals (start and stop) of this plug-in gets executed during these phases respectively</p></li>
  <li><p><strong>Q1::</strong> Does the <code>&lt;id&gt;start-container&lt;/id&gt;</code> has any relevance? what's its purpose &amp; importance?</p></li>
  <li><p><strong>Q2::</strong> How do I know what are the different goals available for a plug-in. In this case for <code>cargo plug-in</code> I see in one of the codes in my work, <code>&lt;goal&gt;redeploy&lt;/goal&gt;</code> is used. so I am wondering how to find information on these specific goals and other goals available. I did look at online documentation. I did not find any. possible that I did not search in the right place.  </p></li>
  </ol>