Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MNG-7774] Maven config and command line interpolation #1097

Conversation

cstamas
Copy link
Member

@cstamas cstamas commented Apr 28, 2023

This is "mild introduction" of subset of new Maven4 features into Maven 3.9.x land, with single intent: be able to store resolver configuration along with checked in project sources in SCM.

Changes:

  • interpolate properties and arguments
  • introduce two new special properties "session.rootDirectory" and "session.topDirectory"
  • these two properties may be undefined (the .mvn may not be found)
  • these two properties if undefined, but referenced during interpolation, causes Maven to bail out (error out), and will prevent starting.
  • some other minor cosmetic cleanup

https://issues.apache.org/jira/browse/MNG-7774

This is "mild introduction" of subset of new Maven4 features into
Maven 3.9.x land, with single intent: be able to store resolver
configuration along with checked in project sources in SCM.

Changes:
* interpolate properties and arguments
* introduce two new special properties "session.rootDirectory" and "session.topDirectory"
* these two properties may be undefined (the .mvn may not be found)
* these two properties if undefined, but referenced during interpolation, causes Maven
  to bail out (error out), and will prevent starting.
* some other minor cosmetic cleanup

---

https://issues.apache.org/jira/browse/MNG-7774
@cstamas cstamas self-assigned this Apr 28, 2023
}
} else {
if (!isMultiModuleProjectDirectoryAcceptable(cliRequest.multiModuleProjectDirectory)) {
cliRequest.multiModuleProjectDirectory = null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will be ok that multiModuleProjectDirectory will be null.?
What other impact it can have?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR corrects this: if not found .mvn folder, it will be null, yes, before it could have any contents. This makes it more consistent than before, when it could contain any path...

@cstamas
Copy link
Member Author

cstamas commented May 2, 2023

superseded by #1098

@cstamas cstamas closed this May 2, 2023
@cstamas cstamas deleted the maven-3.9.x-MNG-7774-config-interpolation branch May 2, 2023 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants