Affected version
maven-4.0.0-rc6
Environment: Cygwin mintty 3.8.3 on a Win11 Pro machine
Java is 25.0.3
Bug description
We just start trying to move from maven 3.9.16 to maven 4.
Our workflow relies on the -q option when generating values for further processing. This worked perfectly with maven-3.9.16, however, stopped working with maven-4.0.0-rc6
With
<properties>
<appNameShort>gMProvisioning</appNameShort>
...
</properties>
in the project POM, the command
/c/Java/apache-maven-4.0.0-rc-6/bin/mvn --quiet help:evaluate -Dexpression=appNameShort -DforceStdout
unexpectedly yields
[INFO] [stdout] gMProvisioning
We get the surplus string [INFO] [stdout] .
Omitting the option -q, I get
[INFO] Scanning for projects...
[INFO] Loaded 23494 auto-discovered prefixes for remote repository central (prefixes-central.txt)
[INFO] Loaded 74 auto-discovered prefixes for remote repository apache.snapshots (prefixes-apache.snapshots.txt)
[INFO]
[INFO] --------------------------------------------< com.lynxtechnik:gmprovisioning >--------------------------------------------
[INFO] Building greenMachine Provisioning Tool 3.5.0-B00000
[INFO] from pom.xml
[INFO] ---------------------------------------------------------[ jar ]----------------------------------------------------------
[INFO]
[INFO] --- help:3.5.2:evaluate (default-cli) @ gmprovisioning ---
[INFO] No artifact parameter specified, using 'com.lynxtechnik:gmprovisioning:jar:3.5.0-B00000' as project.
[INFO]
gMProvisioning
[INFO] --------------------------------------------------------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] --------------------------------------------------------------------------------------------------------------------------
[INFO] Total time: 1.212 s
[INFO] Finished at: 2026-08-11T14:08:26+02:00
[INFO] --------------------------------------------------------------------------------------------------------------------------
Which is far more verbose. So, the option -q/--quiet is at least partially honored. Mind that in the latter call, the property value is not prefixed
Running the command
/c/Java/apache-maven-3.9.16/bin/mvn help:evaluate -Dexpression=project.name -q -DforceStdout
yields
greenMachine Provisioning Tool without a trailing newline
as expected
Any help or hint will be greatly appreciated!
Affected version
maven-4.0.0-rc6
Environment: Cygwin mintty 3.8.3 on a Win11 Pro machine
Java is 25.0.3
Bug description
We just start trying to move from maven 3.9.16 to maven 4.
Our workflow relies on the -q option when generating values for further processing. This worked perfectly with maven-3.9.16, however, stopped working with maven-4.0.0-rc6
With
in the project POM, the command
/c/Java/apache-maven-4.0.0-rc-6/bin/mvn --quiet help:evaluate -Dexpression=appNameShort -DforceStdoutunexpectedly yields
[INFO] [stdout] gMProvisioningWe get the surplus string
[INFO] [stdout].Omitting the option -q, I get
Which is far more verbose. So, the option -q/--quiet is at least partially honored. Mind that in the latter call, the property value is not prefixed
Running the command
/c/Java/apache-maven-3.9.16/bin/mvn help:evaluate -Dexpression=project.name -q -DforceStdoutyields
greenMachine Provisioning Toolwithout a trailing newlineas expected
Any help or hint will be greatly appreciated!