The log is filled with org.apache.http.wire DEBUG messages

Hi All,
I am facing a problem while building my project in Travis.ci
Below is my Travis error link
https://travis-ci.org/github/JosephThachilGeorge/TDDTEST

While i am running my goal " - mvn -f spring-project/pom.xml verify -Pe2e " i am getting huge build and my .travis.yml is give below :

language: java

jdk: openjdk8

sudo: required

services:

  • docker

install:

  • docker pull mongo

addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
sonarcloud:
organization: “josephthachilgeorge”
token:
secure: “key”
install: true

cache:
directories:
- $HOME/.m2

script:

  • mvn -f spring-project/pom.xml clean verify -Pjacoco coveralls:report
  • mvn -f spring-project/pom.xml clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar -Dsonar.projectKey=JosephThachilGeorge_TDDTEST
  • mvn -f spring-project/pom.xml verify -Pfailsafe
  • mvn -f spring-project/pom.xml verify -Pe2e

Please help me to find a solution

sample of build:

Hi all,
Kindly help me to find the solution
Thanks

Your best bet is to reduce the amount of logging. I see that these lines are marked with DEBUG, so changing the log level should do the trick.

@BanzaiMan

Could you please let me know how to change log level ?

thanks

I suggest some searching:

https://duckduckgo.com/?q=maven+log+level&ia=web

https://www.google.com/search?q=mvn+log+level

Thanks @BanzaiMan
I did search and according to the link , i changed my goal as shown below

script:

  • mvn -f spring-project/pom.xml clean verify -Pjacoco coveralls:report
  • mvn -f spring-project/pom.xml clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar -Dsonar.projectKey=JosephThachilGeorge_TDDTEST
  • mvn -f spring-project/pom.xml verify -Pfailsafe
  • mvn -q spring-project/pom.xml verify -Pe2e

then i got below error


Please let me know where i have done mistake ?

In my local system e2e test builds works perfect. But in travis i am getting error
I tried both goal with -q and with -r

  • mvn -q spring-project/pom.xml verify -Pe2e

and

  • mvn -r spring-project/pom.xml verify -Pe2e

but both fails .

My travis log : https://travis-ci.org/github/JosephThachilGeorge/TDDTEST
My project link : https://github.com/JosephThachilGeorge/TDDTEST

Thanks a lot for your help

@BanzaiMan,
Kindly help me if you have a solution
Thanks a lot for your support

@BanzaiMan
I understand you are busy , if possible try to look at my log

https://travis-ci.org/github/JosephThachilGeorge/TDDTEST/jobs/715649594#L855
says that the project doesn’t have POM.

Yes Project has pom ,

  • mvn -f spring-project/pom.xml clean verify -Pjacoco coveralls:report
  • mvn -f spring-project/pom.xml clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar -Dsonar.projectKey=JosephThachilGeorge_TDDTEST
  • mvn -f spring-project/pom.xml verify -Pfailsafe
  • mvn -q spring-project/pom.xml verify -Pe2e

Above all goals are working expect - mvn -q spring-project/pom.xml verify -Pe2e

Here you can see where is my pom

That’s because you don’t have pom.xml in the repository root, and that’s the only command that doesn’t correctly specify an alternate location for it (I leave it as an exercise for you to figure out how to do that).

@native-api and @BanzaiMan
I tried many ways , result was not good . Same error has come , if possible could you please guide me

As per the mvn command line reference, you specify an alternate path to pom.xml with -f.

And all your command lines do that – except that last failing one.

So it should be mvn -f spring-project/pom.xml verify -Pe2e.

You have not read my first post
I tried that as well , please see my first post (Question)

I tried all with -f -r -q

script:

  • mvn -f spring-project/pom.xml clean verify -Pjacoco coveralls:report
  • mvn -f spring-project/pom.xml clean org.jacoco:jacoco-maven-plugin:prepare-agent install
    org.jacoco:jacoco-maven-plugin:report
  • mvn -f spring-project/pom.xml sonar:sonar -Dsonar.projectKey=JosephThachilGeorge_TDDTEST
  • mvn -f spring-project/pom.xml verify -Pfailsafe
  • mvn -f spring-project/pom.xml verify -Pe2e

I tried above goals , then in travis i got below error
https://travis-ci.org/github/JosephThachilGeorge/TDDTEST

My project is in github : Link is https://github.com/JosephThachilGeorge/TDDTEST

The original problem is, as you can see, the log being filled with org.apache.http.wire DEBUG messages.

Googling “DEBUG org.apache.http.wire” finds

which suggests to reconfigure the logging for logger httpclient (note the completely different name from what the log messages say).

Since these are messages from your tests, not from Maven itself, it’s your application rather than Maven that needs to be reconfigured.

Googling “configure logging for spring tests” finds

which suggests to create an src/test/resources/logback.xml (or log4j.properties if that’s the logging backend used but from the build log, that doesn’t seem likely) and lower the logging level for the necessary parts in it.

Looking at the logback.xml reference, the following logback.xml would lower the global logging level to INFO:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <include resource="org/springframework/boot/logging/logback/base.xml" />
    <root level="info"/>
</configuration>

As you can see in my build with this change, the log is now not being cluttered. (It still fails in the end but for some other, unrelated reason.)

Yes , now without debug i am getting build , but i have some error in e2e test .

In travis build i am getting below error : https://travis-ci.org/github/JosephThachilGeorge/TDDTEST

Where as in my eclipse i do not have any error

This generally means that your machine has something that is essential to the build but the CI environment does not. What that is hard to tell, but we are happy to enable the debug feature if you wish.