cygwin introduces spaces in the console output when running a maven build for a java project in windows 10
Takashi Yano
takashi.yano@nifty.ne.jp
Tue Dec 29 13:38:20 GMT 2020
On Tue, 29 Dec 2020 11:59:29 +0000
Valentin Brasov via Cygwin <cygwin@cygwin.com> wrote:
> Hi,
>
> Check the following output fragment from a cygwin64 terminal on windows 10
> 64bit while running a maven 3 build using java 1.8:
>
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory C:\proj\t020-domain\src\
> test\resources
> [INFO]
> [INFO] --- maven-compiler-plugin:3.8.1:testCompile
> (default-testCompile) @ t020-domain ---
> m
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 2 source f iles to
> C:\proj\t020-domain\target\test-classes
> [INFO]
> [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @
> t020-domain ---
> [INFO] Tests are skipped.
> [INFO]
> [INFO] --- maven-jar-plugin:3.1.2:jar (default-jar)
> @ t020-domain ---
> [INFO] Building jar: C:\proj\t020-domain\target\t020-domain-80.1-SNAPSHOT.jar
> [INFO]
> [INFO] --- jacoco-maven-plugin:0.8.4:prepare-agent-integration
> (default-prepare-agent-integration) @36mt020-domain ---
> [INFO] argLine set to
> -javaagent:C:\\Users\\VBO07\\.m2\\repository\\org\\jacoco\\org.jacoco.agent\\0.8.4\\org.jacoco.agent-0.8.4-runtime.jar=destfile=C:\\proj\\t020-domain\\target\\jacoco-it.exec
> [INFO]
> [INFO] --- maven-failsafe-plugin:2.22.2:integration-test (default) @
> t020-domain ---
> [INFO] Tests are skipped.
> [INFO]
> [INFO] --- maven-failsafe-plugin:2.22.2:verify (default) @ t020-domain
> ---
> [INFO] Tests are skipped.
> [INFO]
> [INFO] --- jacoco-maven-plugin:0.8.4:report (default-
> report) @ t020-domain ---
> [INFO] Skipping JaCoCo execution due to missing execution data file.
> [INFO]
> [INFO] --- jacoco-maven-plugin:0.8.4:report-integration (def
> ault-report-integration) @ t020-domain
> ---
> [INFO] Skipping JaCoCo execution due to missing execution data file.
> [INFO]
> [INFO] --- jacoco-maven-plugin:0.8.4:check (default-check) @ t020-domain ---
> [INFO] Skipping JaCoCo execution due to mi ssing execution
> data file:C:\proj\t020-domain\target\jacoco.exec
>
> You can see it clearly happening on the lines:
>
> [INFO] skip non existing resourceDirectory C:\proj\t020-domain\src\
> test\resources
>
> and
>
> [INFO] Compiling 2 source f iles to
> C:\proj\t020-domain\target\test-classes
>
> and
>
> [INFO] --- jacoco-maven-plugin:0.8.4:report (default-
> report) @ t020-domain ---
>
> and
>
> [INFO] --- jacoco-maven-plugin:0.8.4:report-integration (def
> ault-report-integration) @ t020-domain
>
> and
>
> [INFO] Skipping JaCoCo execution due to mi ssing execution
> data file:C:\proj\t020-domain\target\jacoco.exec
>
> Please see attached the output of the command: cygcheck -s -v -r >
> cygcheck.out, with sensitive info (like my username, my employer domain,
> etc, removed)
>
> How can I fix this?
This is the known problem which has been already fixed in latest jansi.
https://github.com/fusesource/jansi/issues/165
Solution 1:
The most essential solution is to replace jansi library
(jansi-1.17.1.jar) in maven lib directory with latest jansi (v2.1.1).
Solution 2:
Replace cygwin1.dll with the latest snapshot.
https://cygwin.com/snapshots/
Solution 3:
Use workaround such as:
env TERM=cygwin mvn
--
Takashi Yano <takashi.yano@nifty.ne.jp>
More information about the Cygwin
mailing list