[ https://issues.apache.org/jira/browse/MNG-7898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17773618#comment-17773618 ]
ASF GitHub Bot commented on MNG-7898: ------------------------------------- slawekjaranowski commented on code in PR #1273: URL: https://github.com/apache/maven/pull/1273#discussion_r1352033250 ########## maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java: ########## @@ -447,6 +443,10 @@ private void informativeCommands(CliRequest cliRequest) throws ExitException { } throw new ExitException(0); } + + if (cliRequest.rootDirectory == null) { Review Comment: @rmannibucau - switch to debug level > Missing .mvn directory should not be reported in quiet mode > ----------------------------------------------------------- > > Key: MNG-7898 > URL: https://issues.apache.org/jira/browse/MNG-7898 > Project: Maven > Issue Type: Bug > Affects Versions: 4.0.0-alpha-7 > Reporter: Slawomir Jaranowski > Assignee: Slawomir Jaranowski > Priority: Major > Fix For: 4.0.0-alpha-8 > > > To reproduce > {code} > mvn help:evaluate -q -DforceStdout -Dexpression=project.version > {code} > output is: > {code} > Unable to find the root directory. Create a .mvn directory in the root > directory or add the root="true" attribute on the root project's model to > identify it. > 211-SNAPSHOT > {code} > should be only: > {code} > 211-SNAPSHOT > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)