You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "calle2010 (via GitHub)" <gi...@apache.org> on 2023/11/02 16:56:21 UTC

[I] "Unable to find the root directory" in multi-module build [maven-mvnd]

calle2010 opened a new issue, #901:
URL: https://github.com/apache/maven-mvnd/issues/901

   In different projects with multiple modules mvnd 1.0-m7 prints in the first line
   
       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.
   
   But Maven 4.0.0-alpha-8 doesn't complain. In both cases Maven is started from the project root directory. Creating the ".mvn" directory doesn't mute the message printed by mvnd.
   
   ```
   $ mvnd -1 -DskipTests clean compile
   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.
   [INFO] Processing build on daemon 85f9f7c1
   [INFO] Scanning for projects...
   [INFO] BuildTimeEventSpy is registered.
   [INFO] ------------------------------------------------------------------------
   [INFO] Reactor Build Order:
   ^C
   
   $ mvn -DskipTests clean compile
   [INFO] Scanning for projects...
   [INFO] ----------------------------------------------------------------------------------------------------------------
   [INFO] Reactor Build Order:
   ^C
   
   $ mvnd -v
   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.
   Apache Maven Daemon (mvnd) 1.0-m7 linux-amd64 native client (b2ef5d81997adbcdb72dc8c5603722538fa641fe)
   Terminal: org.jline.terminal.impl.PosixSysTerminal with pty org.jline.terminal.impl.jansi.linux.LinuxNativePty
   Apache Maven 4.0.0-alpha-7 (bf699a388cc04b8e4088226ba09a403b68de6b7b)
   Maven home: /home/wsl/bin/maven-mvnd-1.0-m7-m40-linux-amd64/mvn
   Java version: 21.0.1, vendor: Eclipse Adoptium, runtime: /usr/lib/jvm/temurin-21-jdk-amd64
   Default locale: en, platform encoding: UTF-8
   OS name: "linux", version: "5.15.90.1-microsoft-standard-wsl2", arch: "amd64", family: "unix"
   
   $ mvn -v
   Apache Maven 4.0.0-alpha-8 (a2cbf4873a99c1aca7e3908086fe53b17865f07a)
   Maven home: /home/wsl/bin/apache-maven-4.0.0-alpha-8
   Java version: 21.0.1, vendor: Eclipse Adoptium, runtime: /usr/lib/jvm/temurin-21-jdk-amd64
   Default locale: en, platform encoding: UTF-8
   OS name: "linux", version: "5.15.90.1-microsoft-standard-wsl2", arch: "amd64", family: "unix"
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] "Unable to find the root directory" in multi-module build [maven-mvnd]

Posted by "ppalaga (via GitHub)" <gi...@apache.org>.
ppalaga commented on issue #901:
URL: https://github.com/apache/maven-mvnd/issues/901#issuecomment-1843092649

   Thanks for the report, @calle2010! 
   
   Creating the `.mvn` directory should solve the issue. I wonder whether there some kind of git push/pull in between that ignores empty directories?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] "Unable to find the root directory" in multi-module build [maven-mvnd]

Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz closed issue #901: "Unable to find the root directory" in multi-module build
URL: https://github.com/apache/maven-mvnd/issues/901


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] "Unable to find the root directory" in multi-module build [maven-mvnd]

Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz commented on issue #901:
URL: https://github.com/apache/maven-mvnd/issues/901#issuecomment-6249608158

   The message came from the Maven 4 alpha used by 1.0-m7 and was demoted to debug in Maven 4.0.0-alpha-8 (MNG-7898). It no longer appears in 1.0.0 or the 2.0 line.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] "Unable to find the root directory" in multi-module build [maven-mvnd]

Posted by "calle2010 (via GitHub)" <gi...@apache.org>.
calle2010 commented on issue #901:
URL: https://github.com/apache/maven-mvnd/issues/901#issuecomment-1843059486

   same behavior in mvnd 1.0-m8


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] "Unable to find the root directory" in multi-module build [maven-mvnd]

Posted by "slawekjaranowski (via GitHub)" <gi...@apache.org>.
slawekjaranowski commented on issue #901:
URL: https://github.com/apache/maven-mvnd/issues/901#issuecomment-1843113219

   It was changed in alpha-8 - https://issues.apache.org/jira/browse/MNG-7898 - massage is printed in Debug level.
   but there is proposition to change level: https://issues.apache.org/jira/browse/MNG-7919


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org