title: How do I skip tests for the "compile" and "install" target only but not the "test" target?
body: <p>I have a situation where our unit tests take a long time to execute for our business domain project as it sets up a database to a known state then proceeds to execute each step. I understand this can be done with "-Dmaven.test.skip=true" on the command line but wish to configure this within NetBeans for the project only, globally would be acceptable if anyone could clarify how to configure within the IDE.</p>
  
  <p>How can I configure maven2 to only execute tests when the "test" target is called?</p>
  
  <p>Using the following will disable tests even when the "test" target is called (<a href="http://maven.apache.org/general.html#skip-test" rel="noreferrer">from the maven docos</a>).</p>
  
  <pre><code>&lt;plugins&gt;
    &lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.6&lt;/version&gt;
      &lt;configuration&gt;
        &lt;skipTests&gt;true&lt;/skipTests&gt;
      &lt;/configuration&gt;
    &lt;/plugin&gt;
  &lt;/plugins&gt;
  </code></pre>