The
war
command will create a Web Application Archive (WAR) file which can be deployed on any Java EE compliant application server
grails war
grails test war
grails -Dgrails.env=foo war
Usage:
grails [environment]* war [arguments]*
Arguments:
nojars
- Packages the WAR with no jar files. Used for shared deployment
Fired Events:
StatusFinal
- When the WAR file has been created
grails test war
grails dev war
grails prod war
grails war /foo/bar/mywar.war
grails war --nojars
Always better to call
grails clean
The clean command will delete all compiled resources from the current Grails application. Since Groovy is a compiled language, as with Java, this is sometimes useful to clear old instances of classes out and ensure correct compilationRefer war
No comments:
Post a Comment