First of all, as khmarbaise already answered, you should use mvn -B to enable batch mode.
If you also want to get rid of the "Download / Download" lines, you can set the corresponding logger org.apache.maven.cli.transfer.Slf4jMavenTransferListener to a level higher than the information. Therefore, I used the org.slf4j.simpleLogger.log property, as described here .
Using only the command line, you can do this:
mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B ...
Or you can use the environment variable MAVEN_OPTS , as described here :
export MAVEN_OPTS=-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
Note: As far as I know, this only works for maven 3.1 and above.
FelixRabe Feb 26 '16 at 13:48 2016-02-26 13:48
source share