apache / apache/maven-verifier

[MSHARED-1140] Simplify Maven version extraction in the forked launcher

Open
#158 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
6
Forks
17
Avg merge
12m
Merged PRs (30d)
1

Description

**[Michael Osipov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=michael-o)** opened **[MSHARED-1140](https://issues.apache.org/jira/browse/MSHARED-1140?redirect=false)** and commented

The approach from `org.apache.maven.shared.verifier.ForkedLauncher.extractMavenVersion(List)` 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](https://issues.apache.org/jira/browse/MSHARED-1074) Improvement performance of getMavenVersion in ForkedLauncher

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at org.apache.maven.shared.verifier.ForkedLauncher.extractMavenVersion(List) and inspect how it handles the output from `mvn -v -q`. Simplify that extraction while preserving the demonstrated version result, such as `3.8.6`; verify the behavior with the relevant Maven Verifier tests or by running the command shown in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.