-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 #1098
[MNG-7774] Maven config and command line interpolation #1098
Conversation
Reuse as much as possible from master, but keep existing stuff like multiModuleProjectDirectory alone. Changes: * interpolate user properties and arguments * introduce session.topDirectory and session.rootDirectory * Maven fails to start if any of the new properties are undefined but their use is attempted
try { | ||
topDirectory = topDirectory.toAbsolutePath().toRealPath(); | ||
} catch (IOException e) { | ||
System.err.println("Error computing real path from " + topDirectory); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be easier to troubleshoot the problem if the exception information was printed out here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, included IOEx message as well
Does this actually supersede #1062? |
No, that one is for master and builds on top of already present new mvn4 features not present in 3.9.x. This PR is for 3.9.x and "mildly follows" the one you refer to, with reduced functionalities. For example, that one uses
|
Anyone else? |
@cstamas I think the description of adding this command in |
Which command? No command was added or modified in Maven CLI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I had a change at one point I forgot about (Hamcrest matcher "is" vs "endsWith"). Implementation now behaves same as on master, so proper is "is".
Reuse as much as possible from master, but keep existing stuff like multiModuleProjectDirectory alone.
Changes:
https://issues.apache.org/jira/browse/MNG-7774