kyuubi/build
Cheng Pan f58f21f40c
[KYUUBI #6606] build/mvn checks project local downloaded binary ahead
# 🔍 Description

I found sometimes `build/mvn -version` is pretty slow even `build/apache-maven-${MVN_VERSION}` is already cached, and I found it may stuck at the following call when network quality is not good.

bdd91f4539/build/mvn (L86)

## Types of changes 🔖

- [x] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Test Plan 🧪

Tested `build/mvn -version` in the following cases:
1. when `build/apache-maven-${MVN_VERSION}/bin/mvn` is available, the command always finishes quickly.
2. when `build/apache-maven-${MVN_VERSION}/bin/mvn` is unavailable but global installed `mvn` version matches `maven.version` defined in root `pom.xml`, the command always finishes quickly too.
3. otherwise, it automatically downloads the maven binary tarball from network.

---

# Checklist 📝

- [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

**Be nice. Be informative.**

Closes #6606 from pan3793/mvn.

Closes #6606

a801d793f [Cheng Pan] nit
3a9f35f2b [Cheng Pan] build/mvn checks local downloaded binary ahead before network access

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2024-08-12 14:35:49 +08:00
..
release [KYUUBI #6559] Various improvments for release scripts 2024-07-23 21:15:52 +08:00
dependency.sh [KYUUBI #4191] [Improvement] Skip fetching Maven dependency snapshot update when building dependencyList 2023-01-30 13:47:12 +08:00
dist [KYUUBI #6599] Disable Javadoc/Scaladoc by default 2024-08-09 13:11:50 +08:00
Dockerfile.CI [KYUUBI #6091] Deprecate and remove building support for Spark 3.1 2024-03-04 20:23:06 +08:00
Dockerfile.HMS [KYUUBI #6145] Use HiveMetaStore Docker for testing 2024-03-11 16:03:18 +08:00
kyuubi-build-info [KYUUBI #6588] Get effective USER if env var is unavailable 2024-08-07 17:44:42 +08:00
kyuubi-build-info.cmd [KYUUBI #4187][FOLLOWUP] Windows build-info script supports revision time 2023-07-10 12:27:22 +08:00
mvn [KYUUBI #6606] build/mvn checks project local downloaded binary ahead 2024-08-12 14:35:49 +08:00
util.sh [KYUUBI #889] [BUILD] Package release tarball 2021-08-06 13:17:51 +08:00