Re: How to parse the output of "mvn -version" programatically?

2020-03-27 Thread Karl Heinz Marbaise
Hi, On 25.03.20 09:02, Akira Ajisaka wrote: Hi Maven dev team, Apache Yetus parses maven version by the following bash script and it no longer works in Maven 3.5.0 or upper. ``` maven_version=$(mvn --offline --version 2>/dev/null | head -n 1 2>/dev/null) maven_version=${maven_version##*

How to parse the output of "mvn -version" programatically?

2020-03-25 Thread Akira Ajisaka
Hi Maven dev team, Apache Yetus parses maven version by the following bash script and it no longer works in Maven 3.5.0 or upper. ``` maven_version=$(mvn --offline --version 2>/dev/null | head -n 1 2>/dev/null) maven_version=${maven_version##* } ```