Apache Maven 1.x has reached its end of life, and is no longer supported. For more information, see the announcement. Users are encouraged to migrate to the current version of Apache Maven.

Goals

GoalDescription
war Build a war file. This goal simply executes the war:war goal
war:initInitialize the file system and attain any necessary goals
war:war Build a war file.

This goal simply package the directory created by war:webapp goal. Additional custome content which should be included in the archive can be provided using:

<postGoal name="war:webapp">
war:war-resourcesCopy files from maven.war.src to maven.war.webapp.dir
war:webapp Build a webapp directory in that created by war:war-resources, copying libraries, classes and tlds
war:installInstall the war in the local repository
war:install-snapshotInstall the snapshot version of the war in the local repository
war:deployDeploy the war to the remote repository(ies)
war:deploy-snapshotDeploy the snapshot version of the war to the remote repository(ies)
war:cleanDelete all artifacts created by war plugin
war:inplace Build an exploded web application into ${maven.war.src}. This allows you to mount it in your application server, and you only need to run it again for dependency and class changes, not JSP changes. This goal will not clean old dependencies - due to the dangers involved in automating this for your source tree, you must do that yourself.