Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-8302

CLIng and/or rootDirectory being mandatory causes warning at start when no root discovered

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-beta-5
    • Core
    • None

    Description

      Since CLIng, and/or making rootDirectory mandatory, all the CLI tools (mvn, mvnenc) we have so far produce WARNING about "root directory not found" (the standard message) when invoked from directory that cannot have root directory (like doing some CLI-only mojo from home directory, or invoking mvnenc).
      This is wrong, as this message should be emitted by mvn only (tools like mvnenc are not likely to ever use this directory), and even then, ONLY when there is POM/project in context.

      When I do mvn toolbox:gav-tree -Dgav=... from my home directory (mojo is direct invocation. does not need project) or just mvnenc init this warning is wrong.

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            cstamas Tamas Cservenak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: