← Back to team overview

dhis2-devs team mailing list archive

Re: Tip: Faster dev builds

 

Thanks Halvdan,
A quick one please

maven not generating dhis.war  when i used this

mvn clean install -Dtest=false -DfailIfNoTests=false

on dhis2.15 release




On Mon, Jun 30, 2014 at 5:05 PM, Halvdan Grelland <halvdanhg@xxxxxxxxx>
wrote:

> 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
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>

References