Empty output for help:evaluate
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.
When the output is redirected to file -Doutput=./file file is populated correctly so I think that this is a new line thingy
I guess this is on 1.0.0 ?
Yep, 1.0.0. It works with --raw-streams as a workaround
Duplicates #904
Hey, I want to do a similar thing:
REVISION_VERSION="$(./mvnw --raw-streams help:evaluate -Dexpression=revision -DforceStdout -q)"
I already use --raw-streams but it does not work.
When I run it directly with mvn instead it writes the revision in a sapate (new) line
[INFO] Parent [pom]
[INFO]
[INFO] -----------------------< org.betonquest:parent >------------------------
[INFO] Building Parent 1.7.0-SNAPSHOT [1/3]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-help-plugin:3.5.1:evaluate (default-cli) @ parent ---
[INFO] No artifact parameter specified, using 'org.betonquest:parent:pom:1.7.0-SNAPSHOT' as project.
[INFO]
1.7.0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Parent 1.7.0-SNAPSHOT:
but with mvnd --raw-streams it doesn't write it out at all but also some other lines are missing
[INFO] Parent [pom]
[INFO]
[INFO] Using the SmartBuilder implementation with a thread count of 19
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Parent 1.7.0-SNAPSHOT:
Ok, I figured out a solution, I could fix it by adding --non-recursive