-
Notifications
You must be signed in to change notification settings - Fork 4.8k
HIVE-29336: Upgrade compiler and javadoc plugins #6210
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
Conversation
4ff9b74 to
b8af6bb
Compare
613d5f5 to
07d5458
Compare
difin
left a comment
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.
+1
LGTM, but storage-api seems to miss these changes too.
07d5458 to
b33690e
Compare
|
I tried this PR with cmd: But not found any If building branch-4.1, you can find site/apidocs in these directories: The |
after jdk upgrade to 21 javadoc & compiler plugins have issues. Hive root pom was upgraded, but not the rest of modules with |
|
@deniskuzZ Based on the changes done in this PR, what I understand is that the goal is to sync the maven compiler and javadoc plugin in standalone-metastore and storage-api module. Which makes sense but why hardcoded version is used? IMO, it would be better to introduce variables in In order to verify if variables are getting resolved correctly |
plugin versions are only used once in pluginManagement declaration. if you check the parent module (org.apache.apache), it's done the same way. |
b318418 to
ddd8034
Compare
| <artifactId>mockito-inline</artifactId> | ||
| <version>${iceberg.mockito-core.version}</version> | ||
| </dependency> | ||
| <dependency> |
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.
fixes sub-module compilation, until now compilation was failing within iceberg module
|
| <artifactId>maven-compiler-plugin</artifactId> | ||
| <configuration> | ||
| <compilerArgs> | ||
| <arg>--add-opens</arg> |
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.
@akshat0395, why was it needed in the first place?
| <artifactId>maven-compiler-plugin</artifactId> | ||
| <configuration> | ||
| <compilerArgs> | ||
| <arg>--add-exports</arg> |
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.
@akshat0395, same here
|
@Aggarwal-Raghav, could you please take another look? |
zhangbutao
left a comment
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.
+1 LGTM
Tested this PR with this cmd:
mvn clean install javadoc:javadoc javadoc:aggregate -Pjavadoc -DskipTests -Pdist
find . -type d -path "*/site/apidocs" 2>/dev/null
./serde/target/site/apidocs
./jdbc/target/site/apidocs
./classification/target/site/apidocs
./common/target/site/apidocs
./udf/target/site/apidocs
./metastore/target/site/apidocs
./ql/target/site/apidocs
./cli/target/site/apidocs
./llap-ext-client/target/site/apidocs
./llap-tez/target/site/apidocs
./hplsql/target/site/apidocs
./druid-handler/target/site/apidocs
./jdbc-handler/target/site/apidocs
./contrib/target/site/apidocs
./hbase-handler/target/site/apidocs
./kafka-handler/target/site/apidocs
./service/target/site/apidocs
./vector-code-gen/target/site/apidocs
./service-rpc/target/site/apidocs
./parser/target/site/apidocs
./beeline/target/site/apidocs
./llap-client/target/site/apidocs
./iceberg/iceberg-catalog/target/site/apidocs
./iceberg/iceberg-handler/target/site/apidocs
./iceberg/patched-iceberg-core/target/site/apidocs
./iceberg/patched-iceberg-api/target/site/apidocs
./iceberg/iceberg-shading/target/site/apidocs
./hcatalog/webhcat/svr/target/site/apidocs
./hcatalog/webhcat/java-client/target/site/apidocs
./hcatalog/hcatalog-pig-adapter/target/site/apidocs
./hcatalog/core/target/site/apidocs
./hcatalog/server-extensions/target/site/apidocs
./storage-api/target/site/apidocs
./streaming/target/site/apidocs
./kudu-handler/target/site/apidocs
./testutils/target/site/apidocs
./llap-server/target/site/apidocs
./accumulo-handler/target/site/apidocs
./shims/0.23/target/site/apidocs
./shims/common/target/site/apidocs
./shims/aggregator/target/site/apidocs
./llap-common/target/site/apidocs
./standalone-metastore/metastore-rest-catalog/target/site/apidocs
./standalone-metastore/metastore-tools/tools-common/target/site/apidocs
./standalone-metastore/metastore-tools/metastore-benchmarks/target/site/apidocs
./standalone-metastore/metastore-client/target/site/apidocs
./standalone-metastore/metastore-server/target/site/apidocs
./standalone-metastore/metastore-common/target/site/apidocs
./target/site/apidocs
|
LGTM +1 (non-binding)
|
|
Thank you for such a thorough review, @Aggarwal-Raghav, @zhangbutao, @difin! |
|
one benefit of this patch is that in |
@Aggarwal-Raghav, could you please create a ticket? |
|
@deniskuzZ , filed HIVE-29347 |





What changes were proposed in this pull request?
Upgrade Hive's parent pom (org.apache:apache) version to pick up newer versions of compiler and javadoc plugins
Why are the changes needed?
Post jdk21 upgrade fixes
Does this PR introduce any user-facing change?
No
How was this patch tested?
Locally + Jenkins