← Back to team overview

dhis2-devs team mailing list archive

Tip: Faster dev builds

 

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
halvdanhg@xxxxxxxxx





Follow ups