开发者

Making .war smaller

There are several tutorials and even some posts here about shrinking .war files. However, the most common technique (to inc开发者_运维知识库lude 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


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.


For tomcat6 and later remember to update your catalina.properties file:

shared.loader=${catalina.home}/yourDirectoryName/*.jar

You will need to ensure that ${catalina.home}/yourDirectoryName exists and that it contains all the grails WEB-INF/lib jars in it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜