Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.5.0
-
None
-
Java 1.8.0_131, Ubuntu 17.04
Description
I use the Maven Exec Plugin to run a class that asks for interactive input from the user. This was working in 3.3.9, but does not work in 3.5.0.
Anything printed on System.err or System.out without a newline is not printed immediately on the terminal window.
Example:
BufferedReader console = new BufferedReader(new InputStreamReader(System.in)); System.err.printf("listen port: "); String value = console.readLine().trim();
The example above would not print listen port: on the terminal.
Attached you can find a project that reproduces this issue.
Unpack the project and then run:
$ mvn install && mvn exec:exec
The expected output of the reproducer would be:
err.println out.println err.printerr.printfout.printout.printf
instead I get:
err.println out.println
Removing jansi-1.13.jar from $MAVEN/lib/ fixes the issue.
Attachments
Attachments
Issue Links
- depends upon
-
MNG-7079 Upgrade to jansi 2.2.0 and maven-shared-utils 3.3.4
- Closed
-
MNG-7179 Upgrade Jansi to 2.3.3
- Closed
-
MSHARED-962 Upgrade Jansi to 2.0.1
- Closed
- is fixed by
-
MNG-7028 Upgrade Jansi to 2.+
- Closed