Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exec-maven-plugin (exec:exec) output unexpected prefix for each line of stdout/stderr #708

Closed
gzm55 opened this issue Oct 12, 2022 · 3 comments
Milestone

Comments

@gzm55
Copy link
Contributor

gzm55 commented Oct 12, 2022

$ mvnd -B -Dmvnd.noBuffering=true exec:exec -Dexec.executable=uname
[INFO] [stdout] Darwin

$ mvnd -B -Dmvnd.noBuffering=true exec:exec -Dexec.executable=java -Dexec.args=-version
[WARN] [stderr] openjdk version "11.0.2" 2019-01-15
[WARN] [stderr] OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
[WARN] [stderr] OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)

$ mvn -B -Dmvnd.noBuffering=true exec:exec -Dexec.executable=uname
Darwin

It is reproducible on mvnd 0.8.2. The output difference breaks the script to switch to mvnd.

@gzm55
Copy link
Contributor Author

gzm55 commented Oct 12, 2022

with --raw-streams, I've got the correct result. Can we add an env/property key for this cli switch?

@gzm55
Copy link
Contributor Author

gzm55 commented Oct 17, 2022

pr #712 is closed to prefer #719.

There is another behavior difference even with --raw-streams switch:

mvnd -N exec:exec -Dexec.executable=uname --raw-streams -l a.log

The output of uname is written to tty, not a.log, whereas the original mvn writes to a.log.

@gnodet gnodet added this to the 1.0.0-m2 milestone Jan 24, 2023
@gnodet
Copy link
Contributor

gnodet commented Jan 24, 2023

This is also fixed by b2bd0aa

@gnodet gnodet closed this as completed Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants