Skip to content

[MNG-8302] CLIng and/or rootDirectory being mandatory causes warning at start when no root discovered #9740

@jira-importer

Description

@jira-importer

Tamas Cservenak opened MNG-8302 and commented

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.


Remote Links:

Backported to: 4.0.0-beta-5

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:majorMajor loss of function

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions