[
https://issues.apache.org/jira/browse/MNG-8302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tamas Cservenak closed MNG-8302.
--------------------------------
Resolution: Fixed
> CLIng and/or rootDirectory being mandatory causes warning at start when no
> root discovered
> ------------------------------------------------------------------------------------------
>
> Key: MNG-8302
> URL: https://issues.apache.org/jira/browse/MNG-8302
> Project: Maven
> Issue Type: Bug
> Components: Core
> Reporter: Tamas Cservenak
> Assignee: Guillaume Nodet
> Priority: Major
> Fix For: 4.0.0-beta-5
>
>
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)