djeanprost opened a new issue, #11319:
URL: https://github.com/apache/maven/issues/11319

   ### Affected version
   
   4.0.0-rc-4
   
   ### Bug description
   
   With version 3.9, this command line used to return the version of the 
project : 
   - `mvn --non-recursive org.apache.maven.plugins:maven-help-plugin:evaluate 
-Dexpression=project.version -q -DforceStdout`
     - would give `16.3.1-SNAPSHOT`
   
   With `c:\bin\apache-maven-4.0.0-rc-4`, I now get this
   - `mvn --non-recursive org.apache.maven.plugins:maven-help-plugin:evaluate 
-Dexpression=project.version -q -DforceStdout`, 
     - now the output is  `[INFO] [stdout] 16.3.1-SNAPSHOT`
   
   With such a behaviour I can't do such a thing anymore in order to populate a 
shell variable with the project version 
   `VERSION=$(mvn --non-recursive 
org.apache.maven.plugins:maven-help-plugin:$MAVEN_HELPER_PLUGIN_VERSION:evaluate
 -Dexpression=project.version $INTERNAL_MAVEN_OPTIONS -q -DforceStdout)`
   
   Is this unexpected or should I change the way I get the project version ?
   thanks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to