Skip to content

[MNG-7372] Maven should display version info in case of error #8043

Closed as not planned

Description

@jira-importer

Robert Scholte opened MNG-7372 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

Activity

  1. jira-importer commented on Dec 23, 2021

    @jira-importer
    Author

    Michael Osipov commented

    What is wrong with the user to run mvn -v?

  2. jira-importer commented on Dec 23, 2021

    @jira-importer
    Author

    Maarten Mulders commented

    Of course, we could ask every user who submits a bug report to go back and do mvn -v.

    The people who submit a ticket will most likely just copy/paste the full log - and thus give us the mvn -v output immediately. I think we mainly do this for ourselves :). If that is the idea, I like it.

  3. jira-importer commented on Dec 23, 2021

    @jira-importer
    Author

    Robert Scholte commented

    I think everybody benefits if the right information is provided ASAP. The lazy developer just copy/paste section X, we don't have to ask to provide other basic information.
    Other things that might be interesting: refer to the issue-tracker of the plugin, maybe even provide the plugin configuration in case a plugin is causing the issue. But let's start with the proper version information.

  4. jira-importer commented on Dec 23, 2021

    @jira-importer
    Author

    Michael Osipov commented

    Lazy devs actually expect us often to SSH into their machine, solve their problem and make dinner. :-)

  5. added
    enhancement
    priority:minor
    on Jul 6, 2025
  6. gnodet commented on Oct 14, 2026

    @gnodet
    Contributor

    Closing as superseded by #12571, which covers version/environment info in the build report metadata and structured error summaries.

    Claude Code on behalf of Guillaume Nodet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:minor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions