Skip to content

Promote project.rootDirectory for interpolation and profile activation#11930

Merged
slawekjaranowski merged 1 commit intoapache:maven-3.10.xfrom
slawekjaranowski:fix-11909
Apr 13, 2026
Merged

Promote project.rootDirectory for interpolation and profile activation#11930
slawekjaranowski merged 1 commit intoapache:maven-3.10.xfrom
slawekjaranowski:fix-11909

Conversation

@slawekjaranowski
Copy link
Copy Markdown
Member

  • Added support for ${project.rootDirectory} to reference the project's root directory (containing the .mvn directory).
  • Enhanced profile activation to support exists and missing checks based on ${project.rootDirectory}.

fix #11909


Following this checklist to help us incorporate your
contribution quickly and easily:

  • Your pull request should address just one issue, without pulling in other changes.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Each commit in the pull request should have a meaningful subject line and body.
    Note that commits might be squashed by a maintainer on merge.
  • Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied.
    This may not always be possible but is a best-practice.
  • Run mvn verify to make sure basic checks pass.
    A more thorough check will be performed on your pull request automatically.
  • You have run the Core IT successfully.

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

- Added support for `${project.rootDirectory}` to reference the project's root directory (containing the `.mvn` directory).
- Enhanced profile activation to support `exists` and `missing` checks based on `${project.rootDirectory}`.

fix apache#11909
@slawekjaranowski slawekjaranowski added the enhancement New feature or request label Apr 11, 2026
@slawekjaranowski slawekjaranowski added this to the 3.10.0 milestone Apr 11, 2026
@slawekjaranowski slawekjaranowski linked an issue Apr 11, 2026 that may be closed by this pull request
@slawekjaranowski
Copy link
Copy Markdown
Member Author

@slawekjaranowski slawekjaranowski merged commit 6fc2248 into apache:maven-3.10.x Apr 13, 2026
18 checks passed
@slawekjaranowski slawekjaranowski deleted the fix-11909 branch April 24, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Promote project.rootDirectory

2 participants