Hi all!

In trunk revision 15915 I’ve added a new property to the dhis-web pom named 
‘useWarCompression’. Setting this property to false will turn off compression 
when building the war files in the web project. On my machine the result is a 
45% cut in build time (mvn clean install -DskipTests), so I figured it might be 
useful to others when doing dev builds as well.

The default value is false, leaving the builds as before. When set to true, 
however, the compression level is set to 0 resulting in practically identical 
artifacts but with a (ever so slightly) larger footprint. In other words, the 
built artifact is functionally the same. Loading the WAR on an app server 
should (in theory) be faster as well.

Note that the web project should be cleaned first (once) for full effect. This 
ensures no old (compressed) artifacts are left in the local repo and overlaying 
them will be as quick as possible.

Example command for quick-build:
mvn install -f dhis-web/pom.xml -DskipTests -DuseWarCompression=false

Halvdan Grelland
[email protected]




_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to