Commit c6ee9cf
authored
[fix](compile) auto-regenerate hadoop-deps/lib when missing due to Ma… (#60964)
…ven cache
Problem:
- When Maven build cache is hit, the dependency:copy-dependencies plugin
execution is skipped
- This causes target/lib directory to be missing in hadoop-deps module
- Results in an incomplete BE output package without Hadoop dependencies
Solution:
- Add automatic regeneration logic in build.sh copy phase
- When lib directory is missing and BUILD_BE_JAVA_EXTENSIONS=1,
execute 'mvn dependency:copy-dependencies' to regenerate it
- Preserves Maven cache benefits while ensuring complete output
Impact:
- Fixes intermittent missing hadoop_hdfs jars in BE output
- No impact on normal build flow (only triggers when needed)
- Maintains build cache acceleration for other plugins
Related PR: #608191 parent bd2210a commit c6ee9cf
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
970 | 970 | | |
971 | 971 | | |
972 | 972 | | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
973 | 980 | | |
974 | 981 | | |
975 | 982 | | |
| |||
0 commit comments