Prevent Tomcat7 Maven Plugin from Logging Upload Progress

maven, maven-tomcat-plugin

Solution

To sum it up: Use at least version 2.2 of tomcat7-maven-plugin.

      <plugin>
        <groupId>org.apache.tomcat.maven</groupId>
        <artifactId>tomcat7-maven-plugin</artifactId>
        <version>2.2</version>
      </plugin>

Then run Maven with `-B` or `-q`.

mvn -B clean package tomcat7:redeploy

Problem

I am using the Tomcat7 Maven plugin to deploy an application to a test server in our continuous integration process. (We are using Bamboo) When the plugin runs it gives the user feedback on the upload progress. This is ok when running in a command line because it just keeps updating the same line. However, when running in Bamboo it logs tons of useless lines giving progress updates on the upload. (10,000+ lines for a 20MB application) ``` build 13-May-2014 09:02:57 2/19722 KB build 13-May-2014 09:02:57 4/19722 KB build 13-May-2014 09:02:57 6/19722 KB build 13-May-2014 09:02:57 8/19722 KB build 13-May-2014 09:02:57 10/19722 KB build 13-May-2014 09:02:57 12/19722 KB build 13-May-2014 09:02:57 14/19722 KB ``` This isn't a serious problem, but it really clutters the build logs. Is there a way to make the Tomcat7 Maven plugin not log upload progress?

Original source