You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@yetus.apache.org by "Akira Ajisaka (Jira)" <ji...@apache.org> on 2020/03/25 07:35:00 UTC
[jira] [Commented] (YETUS-957) maven.sh fails to parse
maven_version
[ https://issues.apache.org/jira/browse/YETUS-957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17066452#comment-17066452 ]
Akira Ajisaka commented on YETUS-957:
-------------------------------------
In Maven 3.6.0,
{noformat}
$ maven_version=$(mvn --offline --version 2>/dev/null | head -n 1 2>/dev/null)
$ maven_version=${maven_version##* }
$ echo ${maven_version} > maven_version
$ cat -v maven_version
3.6.0^[[m
{noformat}
> maven.sh fails to parse maven_version
> -------------------------------------
>
> Key: YETUS-957
> URL: https://issues.apache.org/jira/browse/YETUS-957
> Project: Yetus
> Issue Type: Bug
> Components: Precommit
> Environment: Maven 3.6.0+
> Reporter: Akira Ajisaka
> Priority: Critical
>
> In the recent version of Maven, "mvn version" contains control character and failed to parse the version.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)