Skip to content

[MNG-6869] New flag to verify the status #8429

Open

Description

@jira-importer

Robert Scholte opened MNG-6869 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 mvnDebug should only enter debug mode if not an informative or encryption switch has been passed

Remote Links:

0 votes, 6 watchers

Activity

  1. jira-importer commented on Feb 23, 2020

    @jira-importer
    Author

    Michael Osipov commented

    Something like maven:verify-environment?

  2. jira-importer commented on Feb 23, 2020

    @jira-importer
    Author

    Robert Scholte commented

    That would make it a plugin with a goal, that's not what I want. Could be as easy as --status

  3. jira-importer commented on Feb 23, 2020

    @jira-importer
    Author

    Michael Osipov commented

    Sounds good to me.

  4. jira-importer commented on Oct 29, 2022

    @jira-importer
    Author

    Maarten Mulders commented

    Giovds is working on it, but I can't assign him.

  5. jira-importer commented on Jun 12, 2023

    @jira-importer
    Author

    Maarten Mulders commented

    Let's try to wrap up this topic and see if we can find some consensus moving forward.

    As far as I'm concerned:

    • This is a helpful feature, as it supports people who want to troubleshoot why "Maven doesn't work".
    • It does not cover all possible cases, and I think that's perfectly fine. It doesn't have to. It should detect a few common causes for problems that people encounter with Maven.
    • The code has been reviewed and all objections on code level have been addressed and fixed.
    • The functionality cannot be part of a plugin. If it were, users whould have to download it, but they are having problems with Maven so they can't rely on that.
    • The functionality cannot be an extension. If it were, we cannot assign a CLI flag (--status) to something that may or may not be present in the Maven installation.

    So my vote would be to embrace it, and if we find false positives in the outcomes we could fix them.

    WDYT?

  6. added
    enhancement
    priority:major
    on Jul 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementpriority:major

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions