title: Maven NumberFormatException when packaging
body: <p>I'm getting a really weird error on my Windows PC when running mvn package (or mvn install/deploy) on a project. This error only happens on this machine, everything works fine on my laptop and other computers. I used to be able to package/install the project without problems, but now even older commits and branches throw this exception.  </p>
  
  <pre><code>java.lang.NumberFormatException: For input string: "34m[[["
      at java.lang.NumberFormatException.forInputString(NumberFormatException java:65)
      at java.lang.Integer.parseInt(Integer.java:580)
      at java.lang.Integer.&lt;init&gt;(Integer.java:867)
      at org.fusesource.jansi.AnsiOutputStream.write(AnsiOutputStream.java:12)
      at java.io.FilterOutputStream.write(FilterOutputStream.java:125)
      at java.io.PrintStream.write(PrintStream.java:480)
      at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
      at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:282)
      at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)
      at java.io.OutputStreamWriter.write(OutputStreamWriter.java:207)
      at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:129)
      at java.io.PrintStream.write(PrintStream.java:526)
      at java.io.PrintStream.print(PrintStream.java:669)
      at java.io.PrintStream.println(PrintStream.java:806)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:423)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/x03jQ.png" rel="noreferrer">Console error screenshot</a></p>
  
  <p>I'm using Maven <code>3.5.2</code> and Java <code>1.8.0_91</code>. I already tried reinstalling Maven.</p>
  
  <p>I found <a href="https://stackoverflow.com/questions/14142596/mvn-strange-error">this SO</a> post that apparently has a similar problem, but there are no solutions posted.<br>
  Anybody have an idea what could cause this?</p>
  
  <p>If I run it with <code>mvn clean install -B</code> it produces the following error for the whole console log:<br>
  <code>at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:467)</code><br>
  <a href="https://i.stack.imgur.com/guhLo.png" rel="noreferrer">(screenshot)</a></p>
  
  <p>Here's my POM file:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;****&lt;/groupId&gt;
      &lt;artifactId&gt;sniffer&lt;/artifactId&gt;
      &lt;version&gt;0.6-SNAPSHOT&lt;/version&gt;
  
      &lt;name&gt;sniffer&lt;/name&gt;
      &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;maven.compiler.source&gt;1.8&lt;/maven.compiler.source&gt;
          &lt;maven.compiler.target&gt;1.8&lt;/maven.compiler.target&gt;
      &lt;/properties&gt;
  
      &lt;packaging&gt;pom&lt;/packaging&gt;
  
      &lt;modules&gt;
          &lt;module&gt;sniffergui&lt;/module&gt;
          &lt;module&gt;sniffercollector&lt;/module&gt;
          &lt;module&gt;snifferapp&lt;/module&gt;
          &lt;module&gt;snifferstats&lt;/module&gt;
      &lt;/modules&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
              &lt;artifactId&gt;junit-jupiter-api&lt;/artifactId&gt;
              &lt;version&gt;5.0.1&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
              &lt;artifactId&gt;junit-jupiter-api&lt;/artifactId&gt;
              &lt;version&gt;5.0.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
              &lt;artifactId&gt;junit-jupiter-engine&lt;/artifactId&gt;
              &lt;version&gt;5.0.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
                  &lt;groupId&gt;org.junit.vintage&lt;/groupId&gt;
                  &lt;artifactId&gt;junit-vintage-engine&lt;/artifactId&gt;
                  &lt;version&gt;4.12.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
                  &lt;groupId&gt;org.junit.platform&lt;/groupId&gt;
                  &lt;artifactId&gt;junit-platform-launcher&lt;/artifactId&gt;
                  &lt;version&gt;1.0.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
                  &lt;groupId&gt;org.junit.platform&lt;/groupId&gt;
                  &lt;artifactId&gt;junit-platform-runner&lt;/artifactId&gt;
                  &lt;version&gt;1.0.1&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;PRISE_gruppe_5_releases&lt;/id&gt;
              &lt;name&gt;sniffer_releases&lt;/name&gt;
              &lt;url&gt;http://prise-runner.aot.tu-berlin.de:8081/repository/PRISE_gruppe_5_releases/&lt;/url&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;PRISE_gruppe_5_snapshots&lt;/id&gt;
              &lt;name&gt;sniffer_snapshots&lt;/name&gt;
              &lt;url&gt;http://prise-runner.aot.tu-berlin.de:8081/repository/PRISE_gruppe_5_snapshots/&lt;/url&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
  
      &lt;build&gt;
          &lt;pluginManagement&gt;
              &lt;plugins&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;com.github.spotbugs&lt;/groupId&gt;
                      &lt;artifactId&gt;spotbugs-maven-plugin&lt;/artifactId&gt;
                      &lt;version&gt;3.1.1&lt;/version&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;check&lt;/goal&gt;
                              &lt;/goals&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                      &lt;configuration&gt;
                          &lt;effort&gt;Max&lt;/effort&gt;
                          &lt;threshold&gt;Low&lt;/threshold&gt;
                          &lt;xmlOutput&gt;true&lt;/xmlOutput&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-pmd-plugin&lt;/artifactId&gt;
                      &lt;version&gt;3.8&lt;/version&gt;
                  &lt;/plugin&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-checkstyle-plugin&lt;/artifactId&gt;
                      &lt;version&gt;3.0.0&lt;/version&gt;
                  &lt;/plugin&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.jacoco&lt;/groupId&gt;
                      &lt;artifactId&gt;jacoco-maven-plugin&lt;/artifactId&gt;
                      &lt;version&gt;0.8.0&lt;/version&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;id&gt;pre-unit-test&lt;/id&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;prepare-agent&lt;/goal&gt;
                              &lt;/goals&gt;
                              &lt;configuration&gt;
                                  &lt;destFile&gt;${project.build.directory}/coverage-reports/jacoco-ut.exec&lt;/destFile&gt;
                                  &lt;propertyName&gt;surefireArgLine&lt;/propertyName&gt;
                              &lt;/configuration&gt;
                          &lt;/execution&gt;
                          &lt;execution&gt;
                              &lt;id&gt;post-unit-test&lt;/id&gt;
                              &lt;phase&gt;test&lt;/phase&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;report&lt;/goal&gt;
                              &lt;/goals&gt;
                              &lt;configuration&gt;
                                  &lt;dataFile&gt;${project.build.directory}/coverage-reports/jacoco.exec&lt;/dataFile&gt;
                                  &lt;outputDirectory&gt;${project.reporting.outputDirectory}/jacoco&lt;/outputDirectory&gt;
                              &lt;/configuration&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                  &lt;/plugin&gt;
                  &lt;plugin&gt;
                          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                          &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
                          &lt;version&gt;2.19.1&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;argLine&gt;${surefireArgLine}&lt;/argLine&gt;
                          &lt;skipTests&gt;${skip.unit.tests}&lt;/skipTests&gt;
                          &lt;excludes&gt;
                              &lt;exclude&gt;**/IT*.java&lt;/exclude&gt;
                          &lt;/excludes&gt;
                      &lt;/configuration&gt;
                          &lt;dependencies&gt;
                               &lt;dependency&gt;
                                  &lt;groupId&gt;org.junit.platform&lt;/groupId&gt;
                                  &lt;artifactId&gt;junit-platform-surefire-provider&lt;/artifactId&gt;
                                  &lt;version&gt;1.0.1&lt;/version&gt;
                               &lt;/dependency&gt;
                               &lt;dependency&gt;
                                  &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
                                      &lt;artifactId&gt;junit-jupiter-engine&lt;/artifactId&gt;
                                  &lt;version&gt;5.0.1&lt;/version&gt;
                               &lt;/dependency&gt;
                          &lt;/dependencies&gt;
                  &lt;/plugin&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-failsafe-plugin&lt;/artifactId&gt;
                      &lt;version&gt;2.15&lt;/version&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;id&gt;integration-tests&lt;/id&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;integration-test&lt;/goal&gt;
                                  &lt;goal&gt;verify&lt;/goal&gt;
                              &lt;/goals&gt;
                              &lt;configuration&gt;
                                  &lt;argLine&gt;${failsafeArgLine}&lt;/argLine&gt;
                                  &lt;skipTests&gt;${skip.integration.tests}&lt;/skipTests&gt;
                              &lt;/configuration&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
      &lt;/build&gt;
  
      &lt;distributionManagement&gt;
          &lt;repository&gt;
              &lt;id&gt;***_releases&lt;/id&gt;
              &lt;name&gt;sniffer_releases&lt;/name&gt;
              &lt;url&gt;*****&lt;/url&gt;
          &lt;/repository&gt;
          &lt;snapshotRepository&gt;
              &lt;id&gt;***_snapshots&lt;/id&gt;
              &lt;name&gt;sniffer_snapshots&lt;/name&gt;
              &lt;url&gt;*****&lt;/url&gt;
          &lt;/snapshotRepository&gt;
      &lt;/distributionManagement&gt;
  &lt;/project&gt;
  </code></pre>