apache / apache/maven

[MNG-6869] New flag to verify the status

Open
#8,429 5 comments 0 reactions 1 assignee Claimed by @mthmulders View on GitHub
enhancement priority:major
Dominant language
Java
Stars
5.3k
Forks
3.1k
Avg merge
20h 42m
Merged PRs (30d)
297

Description

**[Robert Scholte](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=rfscholte)** opened **[MNG-6869](https://issues.apache.org/jira/browse/MNG-6869?redirect=false)** and commented

While working on INFRA-19861 we had issues with invalid changes in the settings.xml.
This was detected too late. After installation `mvn --version` is called, but it will only show the version of Maven.
It would be better to have a flag that verifies it a bit more:
- can Maven read/write to the local repository
- can Maven access all predefined repositories? (does the proxy work?)
This gives a much better feedback if Maven can do its job.

Current workaround: call something like `mvn help:evaluate -Dexpression=settings.localRepository -q -DforceStdout`

---

**Issue Links:**
- [MNG-7075](https://issues.apache.org/jira/browse/MNG-7075) mvnDebug should only enter debug mode if not an informative or encryption switch has been passed

**Remote Links:**
- [GitHub Pull Request #995
](https://github.com/apache/maven/pull/995)

0 votes, 6 watchers

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.