Howdy,

Previously, maven output for my project yielded some slight colorization to 
easily see test run results, errors etc. The other day it started producing 
some funky formatting that looked similar to:

1;34mINFO[m] on many lines.

I did some research and I see there was a recent maven release that actually 
added some more colorization. I learned via a google search i can use 'mvn test 
-B' to remove the aforementioned formatting, but the output is black and white. 
How do I configure it so that it runs in color per the samples videos I've seen 
online about the new release.

Here's my POM file text in case that helps troubleshoot:
<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/maven-v4_0_0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>cloud</groupId>
  <artifactId>PINR</artifactId>
  <packaging>jar</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>PINR</name>
  <url>http://maven.apache.org</url>
   <properties>
       <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
  <build>
       <resources>
       <resource>
        <directory>src/main/java/resources</directory>
        <filtering>true</filtering>
      </resource>
       </resources>

  <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.20</version>


               <configuration>
                 <suiteXmlFiles>
                   <suiteXmlFile>testng.xml</suiteXmlFile>
                 </suiteXmlFiles>
                 <testFailureIgnore>true</testFailureIgnore>
                           </configuration>

      </plugin>
</plugins>


  </build>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>

     <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>3.4.0</version>
    </dependency>

       <dependency>
  <groupId>org.testng</groupId>
  <artifactId>testng</artifactId>
  <version>6.8</version>
  <scope>compile</scope>
       </dependency>

  <dependency>
    <groupId>org.apache.logging.log4j</groupId>
    <artifactId>log4j-api</artifactId>
    <version>2.8.2</version>
  </dependency>
  <dependency>
    <groupId>org.apache.logging.log4j</groupId>
    <artifactId>log4j-core</artifactId>
    <version>2.8.2</version>
  </dependency>
<dependency>
    <groupId>com.aventstack</groupId>
    <artifactId>extentreports</artifactId>
    <version>3.0.6</version>
</dependency>
       <dependency>
    <groupId>com.relevantcodes</groupId>
    <artifactId>extentreports</artifactId>
    <version>2.41.2</version>
</dependency>

<dependency>
    <groupId>com.saucelabs</groupId>
    <artifactId>sauce_testng</artifactId>
    <version>2.1.18</version>
    <scope>test</scope>
</dependency>

  </dependencies>
</project>




____________________________

Jacob Friedman, PMP, PMI-ACP | Optum
Scrum Master, Optum Technology

131 Morristown Rd, Basking Ridge, NJ 07920
T     +1 973-348-1521
jacob.fried...@optum.com<mailto:jacob.fried...@optum.com>
www.optum.com<http://inside.optum.com/resource/Documents/www.optum.com>


This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.

Reply via email to