You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "cstamas (via GitHub)" <gi...@apache.org> on 2026/03/10 14:22:30 UTC
[PR] Feat: Promote session.topDirectory and session.rootDirectory [maven]
cstamas opened a new pull request, #11779:
URL: https://github.com/apache/maven/pull/11779
To real properies usable in POM as well, not only in config interpolation.
--
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: [PR] Feat: Promote session.topDirectory and session.rootDirectory [maven]
Posted by "slawekjaranowski (via GitHub)" <gi...@apache.org>.
slawekjaranowski commented on code in PR #11779:
URL: https://github.com/apache/maven/pull/11779#discussion_r3029013597
##########
maven-core/src/main/java/org/apache/maven/execution/MavenSession.java:
##########
@@ -163,6 +163,24 @@ public MavenExecutionResult getResult() {
return result;
}
+ /**
+ * Returns top directory if discovered or {@code null}.
+ *
+ * @since 3.10.0
+ */
Review Comment:
more clear documentation will be appreciated what is difference between top and root directory
--
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: [PR] Feat: Promote session.topDirectory and session.rootDirectory [maven]
Posted by "cstamas (via GitHub)" <gi...@apache.org>.
cstamas commented on PR #11779:
URL: https://github.com/apache/maven/pull/11779#issuecomment-4031808932
This PR waits for `maven-3.10.x` branch.
--
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: [PR] Feat: Promote session.topDirectory and session.rootDirectory [maven]
Posted by "jglick (via GitHub)" <gi...@apache.org>.
jglick commented on code in PR #11779:
URL: https://github.com/apache/maven/pull/11779#discussion_r3052509432
##########
maven-core/src/main/java/org/apache/maven/execution/MavenSession.java:
##########
@@ -165,6 +165,8 @@ public MavenExecutionResult getResult() {
/**
* Returns top directory if discovered or {@code null}.
+ * Top directory is directory where top level POM resides with respect of any reactor limiting or shaping like use
Review Comment:
How is “top-level POM” defined exactly? It is possible for a `pom`-packaging module to have `<module>`s whose `<parent>` is something else. Or for modules to not be subdirectories.
--
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: [PR] Feat: Promote session.topDirectory and session.rootDirectory [maven]
Posted by "cstamas (via GitHub)" <gi...@apache.org>.
cstamas commented on code in PR #11779:
URL: https://github.com/apache/maven/pull/11779#discussion_r3052526175
##########
maven-core/src/main/java/org/apache/maven/execution/MavenSession.java:
##########
@@ -165,6 +165,8 @@ public MavenExecutionResult getResult() {
/**
* Returns top directory if discovered or {@code null}.
+ * Top directory is directory where top level POM resides with respect of any reactor limiting or shaping like use
Review Comment:
Top level directory is the directory where very first POM being loaded up exists. It is usually `$CWD`, but may be something different, ie. if you use `mvn -f subproject` or `mvn -f module/pom.xml` etc.
--
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: [PR] Feat: Promote session.topDirectory and session.rootDirectory [maven]
Posted by "cstamas (via GitHub)" <gi...@apache.org>.
cstamas merged PR #11779:
URL: https://github.com/apache/maven/pull/11779
--
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