Michael Osipov opened MSHARED-1140 and commented
The approach from org.apache.maven.shared.verifier.ForkedLauncher.extractMavenVersion(List<String>) is way too complex. Especially for that use case I have modeled many years ago:
D:\Entwicklung\Projekte> mvn -v -q
3.8.6
Done.
Issue Links:
- MSHARED-1074 Improvement performance of getMavenVersion in ForkedLauncher