There are several tutorials and even some posts here about shrinking .war files. However, the most common technique (to include grails.war.resources = {} in Config.groovy) does not seem to work for me. No matter what, grails dumps everything into the war file making a 25meg .war. Has this functionality changed? Grails 1.3.4
+2
A:
Im on 1.2.0
grails war --nojars
creates a war with no jars.
You have to make sure your jars are properly installed on wherever you are deploying, so
$tomcat/shared/lib
for tomcat.
hvgotcodes
2010-09-29 20:32:25
I cannot believe it was that simple. The grails documentation really leaves something to be desired, its a mix of outdated examples, broken links, misleading statements and some things that are simply wrong. Thanks for your fast reply!
Quad64Bit
2010-09-30 15:25:35
@quad64bit, yeah you have to do some digging sometimes with grails. I find the IRC helpful; also mailing lists are active.
hvgotcodes
2010-09-30 16:00:02
I found google to be generally the best source of information. You just have to formulate the question in such a way the results are what you want :)
Matthias Hryniszak
2010-10-06 16:07:03