Open zsrv opened 2 years ago
Hi @zsrv, thanks for reporting this issue and also for the detailed logs. We managed to reproduce and hopefully fix this issue in #265 PR The fix may be included in the next release. We'll keep you updated.
@zsrv, Version 2.7.0 includes the fix. We're looking forward to your feedback for it.
Version 2.7.0 is working for me, thank you!
Describe the bug
jfrog-cli-core v2.5.1 introduced validation of the version of Maven that is in use, which is being done by parsing the output of
mvn --version
. This validation fails if the version line, which is found by searching for a line in the output that starts with "Apache Maven", contains extra characters at the beginning of the line.The version of Maven that I am using prints the Maven version line in bold, with ANSI control characters at the beginning (and end) of the line.
There is also a related, but secondary, issue where "minSupportedMvnVersion" is not printed correctly (see below).
Example:
mvn --version
output with control characters visible:My workaround was to downgrade to JFrog CLI 2.6.1 (which uses jfrog-cli-core 2.5.0).
To Reproduce
Launch openSUSE Leap 15.3 using this image: https://download.opensuse.org/distribution/leap/15.3/appliances/openSUSE-Leap-15.3-JeOS.x86_64-15.3-OpenStack-Cloud-Build9.258.qcow2
Expected behavior
JFrog CLI should recognize that I am using Maven version 3.1.0 or above.
Versions