Jasig/uPortal — pull request #499 by jameswennmacher (2014-12-31 16:53:24+00:00)
Title: UP-4372 Invoke mvn with -q for quieter and slightly faster builds

https://issues.jasig.org/browse/UP-4372

Quiet's maven builds slightly by removing the INFO logs lines from maven output. Changes build from 157Kb output (https://issues.jasig.org/secure/attachment/14704/build-initial.txt) to around 37Kb output (https://issues.jasig.org/secure/attachment/14705/build-q.txt).

Invoke with -Dmaven.quiet=true; e.g.
ant -Dmaven.quiet=true clean deploy-ear

When there is a compilation error, you'll see something like:

[echo] Running mvn in /home/jwennmacher/projects/uPortal/uportal-war for goals: install -Djasig.ignore -Djasig.ignore
[exec] [ERROR] diagnostic: /home/jwennmacher/projects/uPortal/uportal-war/src/main/java/org/jasig/portal/rest/ImportExportController.java:94: error: ';' expected
[exec] final PortalDataKey portalDataKey = bob getPortalDataKey(bufferedXmlEventReader);
[exec] ^
[exec] [ERROR] error on execute: error during compilation

Oddly test execution is not an INFO so it is still present in the console output. Not really a big deal since logging it to console adds almost no time to build and does let you know whether you are running the tests (useful for people like me that have shell scripts to build with the tests normally disabled -- reminds us that they are not running).