[Maven] How to use War Build Goals
I'm get it on apach main website.
http://maven.apache.org/maven-1.x/plugins/war/goals.html
this is how to make war build. and make goals.
Goal | Description |
---|---|
Build a war file. This goal simply executes the war:war goal | |
Initialize the file system and attain any necessary goals | |
Build a war file. <postGoal name="war:webapp"> | |
Copy files from maven.war.src to maven.war.webapp.dir | |
Build a webapp directory in that created by war:war-resources, copying libraries, classes and tlds | |
Install the war in the local repository | |
Install the snapshot version of the war in the local repository | |
Deploy the war to the remote repository(ies) | |
Deploy the snapshot version of the war to the remote repository(ies) | |
Delete all artifacts created by war plugin | |
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. |