title: maven skip packaging phase
body: <p>I'm mavenizing an ANT project and building the POM file. The current ANT build file has a target that generates 2 EAR files using weblogic's JwscTask. Now I just have to deploy only these 2 EAR files to a remote repo's weblogic server. I do not want Maven to generate any package, but take the generated 2 EAR files and deploy it. Essentially, the clean, compile and deploy phases have to be taken care of by Maven; packaging is done by ANT. I use the maven-antrun-plugin in the pom file to call the target in the build.xml file. </p>
  
  <p>If I choose the packaging as 'POM', then Maven will not generate any packaging, but it won't compile the src files as well.</p>
  
  <p>Is there any way in which I can skip the package phase in the Maven lifecycle? Say I specify the packaging as WAR in the POM, is there a way to skip the generation of the WAR file, and deploy the 2 EAR files?</p>
  
  <p>Here is a section of the POM file:</p>
  
  <pre><code>&lt;build&gt;
    &lt;plugins&gt;
     &lt;plugin&gt;
       &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
       &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
       &lt;version&gt;1.3&lt;/version&gt;
       &lt;executions&gt;
        &lt;execution&gt;
          &lt;phase&gt;package&lt;/phase&gt;
          &lt;configuration&gt;
          &lt;tasks&gt;
              &lt;ant antfile="${basedir}/build.xml" target="build-service"/&gt;
          &lt;/tasks&gt;
          &lt;/configuration&gt;
          &lt;goals&gt;
            &lt;goal&gt;run&lt;/goal&gt;
          &lt;/goals&gt;
        &lt;/execution&gt;
       &lt;/executions&gt;
     &lt;/plugin&gt;
    &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>