[MNG-7372] Maven should display version info in case of error
- Dominant language
- Java
- Stars
- 5.3k
- Forks
- 3.1k
- Avg merge
- 21h 11m
- Merged PRs (30d)
- 312
Description
**[Robert Scholte](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=rfscholte)** opened **[MNG-7372](https://issues.apache.org/jira/browse/MNG-7372?redirect=false)** and commented
On Stack Overflow you see quite often a Java related error in Maven and next they show the output of `java -version`.
If `JAVA_HOME` was used, then the output of `java -version` is useless and could lead to false assumptions.
In case of an Exception, the output of `mvn -v` should be added to console logging.
---
No further details from [MNG-7372](https://issues.apache.org/jira/browse/MNG-7372?redirect=false)
Contributor guide
Research direction
Start by tracing Maven's exception handling and the entry point that produces `mvn -v` output, then identify where console logging is assembled. Check existing tests around command-line errors and version output. Done means exceptions consistently include the Maven/runtime version information, with tests covering the new console output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100