apache / maven-mvnd

Apache Maven Daemon
https://maven.apache.org/
Apache License 2.0
2.85k stars 205 forks source link

Empty output for help:evaluate #1026

Open wendigo opened 2 weeks ago

wendigo commented 2 weeks ago

This returns nothing:

mvnd --quiet help:evaluate -Dexpression=project.version -DforceStdout

This returns a version:

./mvnw --quiet help:evaluate -Dexpression='project.version' -DforceStdout
450-SNAPSHOT%

I think that issue could be a fact that echo is not new-line terminated.

wendigo commented 2 weeks ago

When the output is redirected to file -Doutput=./file file is populated correctly so I think that this is a new line thingy

gnodet commented 2 weeks ago

I guess this is on 1.0.0 ?

wendigo commented 2 weeks ago

Yep, 1.0.0. It works with --raw-streams as a workaround

gnodet commented 2 weeks ago

Duplicates #904