-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Replace custom air.main.basedir property with built-in session.rootDirectory #20486
Conversation
It doesn't work with the Modernizer plugin and I'm not sure why. |
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.
This is a good PR, but modernizer needs a circumvention as described above.
This is a good PR, but modernizer needs a circumvention as described above. |
@nineinchnick nice |
So edits did violate some rules, needs reformat? |
This tripped on empty |
More sortpom issues: |
@@ -12,7 +12,6 @@ | |||
<artifactId>trino-jdbc</artifactId> | |||
|
|||
<properties> | |||
<air.main.basedir>${project.parent.basedir}</air.main.basedir> |
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.
Per airbase docs
For a multi-module project, all other sub-modules must have this explicitly set to the root directory and therefore the following code
<properties> <air.main.basedir>${project.parent.basedir}</air.main.basedir> </properties>must be added to each pom.
https://github.com/airlift/airbase/blob/master/README.md#airmainbasedir
so when using airbase root pom, we are expected to define the air.main.basedir
property correctly, and this should not be removed
howeever, airbase seems to make no direct use of air.main.basedir
property, so we may perhaps simply remove it from airbase (remove from airbase pom and readme). this would be a prep step, if we're pedantic.
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.
this would be a prep step, if we're pedantic.
Oh, but we are!
Airbase 149 updates the plugin to 7.0.0, and this version fixes the issue.
bd5a48f
to
a0eea4f
Compare
I like the fact that we are making POMs smaller :) |
@nineinchnick do you plan a follow-up in Airbase to remove this property? |
Description
session.rootDirectory
was introduced in Maven 3.9Additional context and related issues
Release notes
(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text: