You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[MPH-220] Evaluating an expression for use in a script fails on Maven 4.0.0-rc-1 #173
This is a known issue, and same thing should be used as with mvnd: the new --raw-streams option.
It is a breaking change though... If someone relies on -DforceStdout to only print the evaluated expression and nothing else, it will be different in Maven 4 compared to Maven 3.
Would there be a way to enable --raw-streams when -DforceStdout is specified?
Activity
jira-importer commentedon Dec 17, 2024
Nils Breunese commented
I also see this issue with Maven 4.0.0-rc-2.
jira-importer commentedon Dec 17, 2024
Tamas Cservenak commented
This is a known issue, and same thing should be used as with mvnd: the new
--raw-streamsoption.This is related how now Maven4 and mvnd fully utilize jline3.
jira-importer commentedon Dec 17, 2024
Nils Breunese commented
This seems to work indeed:
Should this become the documented example for Maven 4 in the Maven Help Plugin docs at https://maven.apache.org/plugins/maven-help-plugin/evaluate-mojo.html then?
mthmulders commentedon Jul 22, 2025
It is a breaking change though... If someone relies on
-DforceStdoutto only print the evaluated expression and nothing else, it will be different in Maven 4 compared to Maven 3.Would there be a way to enable
--raw-streamswhen-DforceStdoutis specified?cstamas commentedon Jul 22, 2025
Maven 3.9.10+ supports the
--raw-streamsoption as noopFix evaluate goal failing on Maven 4 when using artifact parameter (#401