<p>Maven spews out far too many lines of output to my taste (I like the Unix way: no news is good news).</p>
<p>I want to get rid of all <code>[INFO]</code> lines, but I couldn't find any mention of an argument or config settings that controls the verbosity of Maven.</p>
<p>Is there no LOG4J-like way to set the log level?</p>

[{'answer_id': 71086, 'author': 'Jorge Ferreira', 'author_id': 6508, 'author_profile': 'https://Stackoverflow.com/users/6508', 'pm_score': 8, 'selected': True, 'text': '<p>You can try the <a href="http://maven.apache.org/ref/current/maven-embedder/cli.html" rel="noreferrer"><code>-q</code> switch</a>.</p>\n<blockquote>\n<p><code>-q</code>,<code>--quiet</code> Quiet output - only show errors</p>\n</blockquote>\n'}, {'answer_id': 71091, 'author': 'Sietse', 'author_id': 6400, 'author_profile': 'https://Stackoverflow.com/users/6400', 'pm_score': 3, 'selected': False, 'text': '<p>Use the -q or --quiet command-line options</p>\n'}, {'answer_id': 40535065, 'author': 'Stanislav', 'author_id': 2213164, 'author_profile': 'https://Stackoverflow.com/users/2213164', 'pm_score': 5, 'selected': False, 'text': '<p><code>-q</code> as said above is what you need. An alternative could be:</p>\n<blockquote>\n<p><code>-B</code>,<code>--batch-mode</code>\nRun in non-interactive (batch) mode\nBatch mode is essential if you need to run Maven in a non-interactive, continuous integration environment. When running in non-interactive mode, Maven will never stop to accept input from the user. Instead, it will use sensible default values when it requires input.</p>\n</blockquote>\n<p>And will also reduce the output messages more or less to the essentials.</p>\n'}, {'answer_id': 41002277, 'author': 'ankon', 'author_id': 196315, 'author_profile': 'https://Stackoverflow.com/users/196315', 'pm_score': 1, 'selected': False, 'text': '<p>Maven 3.1.x uses SLF4j for logging, you can find instructions how to configure it at <a href="https://maven.apache.org/maven-logging.html" rel="nofollow noreferrer">https://maven.apache.org/maven-logging.html</a></p>\n\n<p>In short: Either modify <code>${MAVEN_HOME}/conf/logging/simplelogger.properties</code>, or set the same properties via the <code>MAVEN_OPTS</code> environment variable.</p>\n\n<p>For example: setting <code>MAVEN_OPTS</code> to <code>-Dorg.slf4j.simpleLogger.log.org.apache.maven.cl\u200c\u200bi.transfer.Slf4jMave\u200c\u200bnTransferListener=wa\u200c\u200brn</code> configures the logging of the batch mode transfer listener, and <code>-Dorg.slf4j.simpleLogger.defaultLogLevel=warn</code> sets the default log level.</p>\n'}, {'answer_id': 45345022, 'author': 'jgrtalk', 'author_id': 8374743, 'author_profile': 'https://Stackoverflow.com/users/8374743', 'pm_score': 5, 'selected': False, 'text': '<p>Official link :\n<a href="https://maven.apache.org/maven-logging.html" rel="noreferrer">https://maven.apache.org/maven-logging.html</a></p>\n\n<p>You can add in the <strong>JVM</strong> parameters :</p>\n\n<pre><code>-Dorg.slf4j.simpleLogger.defaultLogLevel=WARN\n</code></pre>\n\n<p>Beware of UPPERCASE.</p>\n'}, {'answer_id': 48989076, 'author': 'm13r', 'author_id': 2249798, 'author_profile': 'https://Stackoverflow.com/users/2249798', 'pm_score': 2, 'selected': False, 'text': '\n\n<p>If you only want to get rid of the <code>[INFO]</code> messages you also could do:</p>\n\n<pre class="lang-none prettyprint-override"><code>mvn ... | fgrep -v "[INFO]"\n</code></pre>\n\n<p>To suppress <strong>all</strong> outputs (except errors) you could redirect <code>stdout</code> to <code>/dev/null</code> with:</p>\n\n<pre class="lang-none prettyprint-override"><code>mvn ... 1&gt;/dev/null\n</code></pre>\n\n<p>(This only works if you use <code>bash</code> (or similar shells) to run the Maven commands.)</p>\n'}, {'answer_id': 55963149, 'author': 'errant.info', 'author_id': 496663, 'author_profile': 'https://Stackoverflow.com/users/496663', 'pm_score': 1, 'selected': False, 'text': '<p>The existing answer help you filter based on the log-level using <code>--quiet</code>.  I found that many INFO messages are useful for debugging, however the downloading artifact log messages such as the following were noisy and not helpful.  </p>\n\n<pre><code>Downloading: http://nexus:8081/nexus/content/groups/public/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml\n</code></pre>\n\n<p>I found this solution:</p>\n\n<p><a href="https://blogs.itemis.com/en/in-a-nutshell-removing-artifact-messages-from-maven-log-output" rel="nofollow noreferrer">https://blogs.itemis.com/en/in-a-nutshell-removing-artifact-messages-from-maven-log-output</a></p>\n\n<pre><code>mvn clean install -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn\n</code></pre>\n'}, {'answer_id': 56118170, 'author': 'VonC', 'author_id': 6309, 'author_profile': 'https://Stackoverflow.com/users/6309', 'pm_score': 5, 'selected': False, 'text': '<blockquote>\n  <p>My problem is that -q is too quiet. I\'m running maven under CI</p>\n</blockquote>\n\n<p>With <a href="https://maven.apache.org/docs/3.6.1/release-notes.html" rel="noreferrer">Maven 3.6.1 (April 2019)</a>, you now have an <strong>option to suppress the transfer progress when downloading/uploading in interactive mode</strong>.</p>\n\n<pre><code>mvn --no-transfer-progress ....\n</code></pre>\n\n<blockquote>\n  <p>or in short:</p>\n</blockquote>\n\n<pre><code>mvn -ntp ... ....\n</code></pre>\n\n<p>That is what <a href="https://stackoverflow.com/users/279640/ray">Ray</a> proposed <a href="https://stackoverflow.com/questions/71069/can-maven-be-made-less-verbose/40535065#comment97499320_71086">in the comments</a> with <a href="https://issues.apache.org/jira/browse/MNG-6605" rel="noreferrer">MNG-6605</a> and <a href="https://github.com/apache/maven/pull/239" rel="noreferrer">PR 239</a>.</p>\n'}]
['https://Stackoverflow.com/questions/71069', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/7483/']