I just got this to work myself. If you haven't already, be sure to take a look at the war plugin's documentation
http://maven.apache.org/reference/plugins/war


Maven's war:webapp goal puts all of the included files into target/${pom.artifactId}. (or something similar to this). For extra files, you can write a postGoal for war:webapp in maven.xml that adds all of your extra files. As far a I could tell, all the war:war goal does is create the actual war file from this directory.

For dependencies, you can specify which ones you want in the war by using the war.bundle properties

<dependency>
  <groupId/>
  <artifactId/>
  <properties>
    <war.bundle>true</war.bundle>
  </properties>
</dependency>

Hope this helps!




Brian Burridge wrote:
Currently we do our builds with ANT, but I am attempting to move to
Maven.

During our deploy, depending on the ANT target you have chosen, it
copies files from different directories into the target before building
the WAR.

What do you recommend I do in Maven to accomplish building a WAR with
different included files? I could use Ant to build the target
directories, but that seems temporary. I'd prefer to be 100% Maven.

Brian


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to