No fix, just a suggestion, why not make your code that validates the output, more smart, to ignore these mixed lines. The end success msg must still be intact?
On Fri, Jul 8, 2022, 22:58 Thai Le <lnthai2...@gmail.com> wrote: > Hello, I am using maven 3.8.2 on docker to build our projects and store the > output to a text file to do some validation. From time to time, i got this > in the log: > ---------------- > [INFO] --------------< org.springframework.boot:nccs-dispatcher > >-------------- > [INFO] Building nccs-dispatcher 7.0.35-SNAPSHOT > [83/91] > [INFO] --------------------------------[ jar > ]--------------------------------- > [INFO] Downloading from bedatadriven: > > http://nexus-nexus-repository-manager.ncp-nexus.svc:8081/repository/bedatadriven/org/springframework/boot/spring-boot-starter-log4j2/2.3.4.RELEASE/spring-boot-starter-log4j2-2.3.4.RELEASE.pom > [INFO] Downloading from io.cloudrepo: > > http://nexus-nexus-repository-manager.ncp-nexus.svc:8081/repository/maven-public/org/springframework/boot/spring-boot-starter-log4j2/2.3.4.RELEASE/spring-boot-starter-log4j2-2.3.4.RELEASE.pom > [INFO] Downloaded from io.cloudrepo: > http://nexus-nexus-repository-manager.ncp-next-compile) @ > lessor-accounting-engine --- > [INFO] Changes detected - recompiling the module! > ---------------- > As you can see the last "Downloaded from..." line seems to be interfered > with by some other text. This cause problem to my validator which check if > any package is downloaded from a non-whitelisted repo. I am not sure how > this happen since i did not enable parallel build. Here is my build > command: > > docker run --name javaappbuild --rm \ > --volume "$core_services_dir":$mounted_core_services_dir \ > --volume "$cache_dir":$mounted_cache_dir \ > --workdir $mounted_core_services_dir \ > > registry.gitlab.com/mycompany/core/core-services/ncp-maven:3.8-jdk-11-slim-http > \ > mvn clean install \ > $maven_selective_option \ > -DskipTests=true \ > -DpipelineBuild=true \ > -Dmaven.repo.local=$mounted_cache_dir/.m2/ \ > --activate-profiles maven-profile \ > --batch-mode \ > --settings ${mounted_core_services_dir}/docker-build-settings.xml \ > -f $mounted_core_services_dir/all-modules-pom.xml \ > | tee -a "$cache_dir"/logs/mvn_build_core_services.txt > > Here is my maven version: > root@a98ac9f70bbe:/# mvn --version > Apache Maven 3.8.2 (ea98e05a04480131370aa0c110b8c54cf726c06f) > Maven home: /usr/share/maven > Java version: 11.0.12, vendor: Oracle Corporation, runtime: > /usr/local/openjdk-11 > Default locale: en, platform encoding: UTF-8 > OS name: "linux", version: "5.13.0-52-generic", arch: "amd64", family: > "unix" > > I have no clue at this point how to troubleshoot this since it does not > always happen. If anyone has experienced similar behavior, please share you > though >