본문 바로가기
IT개발/Web

[Maven] How to use War Build Goals

by dootiger 2014. 5. 7.
반응형


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

war

Build a war file. This goal simply executes the war:war goal

war:init

Initialize 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-resources

Copy 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:install

Install the war in the local repository

war:install-snapshot

Install the snapshot version of the war in the local repository

war:deploy

Deploy the war to the remote repository(ies)

war:deploy-snapshot

Deploy the snapshot version of the war to the remote repository(ies)

war:clean

Delete 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.







반응형