Hi all,

I want to run WAR plug-in in 2 situations for my project: 1) to build the
main artifact (with no dependent war files) and 2) to ocassionally obtain an
exploded directory with all the war dependencies to test the web.

My intention was to configure an execution for 2), not binded to a phase,
and invoke it from the command line. So, this is a piece of my POM:

<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.0.1</version>
<configuration>
 <webappDirectory>${project.build.directory}/main_war</webappDirectory>
 <excludes>WEB-INF/lib/*.jar</excludes>
 <dependentWarExcludes>**</dependentWarExcludes>
</configuration>

<executions>
 <execution>
  <id>extract_war</id>
  <phase></phase>
  <goals><goal>exploded</goal></goals>
  <configuration>
   <webappDirectory>${project.build.directory
}/with_dependencies</webappDirectory>
   <dependentWarExcludes></dependentWarExcludes>
  </configuration>
 </execution>
</executions>
</plugin>


Can I run "extract_war" from the command line?. If not, anyone has a
different approach to address the problem?

Thanks in advance,

Andrés

Reply via email to