w6et commented on PR #1061: URL: https://github.com/apache/maven/pull/1061#issuecomment-1481644481
> JIRA issue: [[MNG-7038](https://issues.apache.org/jira/browse/MNG-7038)] Introduce public property to point to a root directory of (multi-module) project > > This PR introduces two properties: > > * `session.topdir` / `topdir` : _the directory of the topmost project being built, usually the current directory or the directory pointed at by the `-f`/`--file` command line argument_. The `topdir` is similar to the `executionRootDirectory` property available on the session, but renamed to make it coherent with the new `rootdir` and to avoid using _root_ in its name. The `topdir` property is computed by the CLI as the directory pointed at by the `-f`/`--file` command line argument, or the current directory if there's no such argument. > * `session.rootdir` / `rootdir` : _the parent directory containing a `.mvn` subdirectory, usually the directory containing the topmost `pom.xml` of the project_. The `rootdir` property is roughly the same as the `${maven.multiModuleProjectDirectory}`, but computed by the CLI. If the `rootdir` can not be properly determined (usually because there's no `.mvn` directory), a warning will be printed to the console. > > The `topdir` and `rootdir` properties are made available on the `MavenSession` / `Session` and deprecate the `executionRootDirectory` and `multiModuleProjectDirectory` properties. The `rootdir` should never change for a given project and is thus made available for profile activation and model interpolation. The goal is also to make it available as a system property during [command line arguments interpolation](https://github.com/apache/maven/pull/1062). i think we can define a build.yml\json, generate build-lock.yml\json at lifecycle process-resources,in build.yml,can load properties file,can define any public properties with expression(value from sys/user env properties or properties file) -- 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-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org