fix: Add missing maven-wrapper.jar for Docker builds

- Download maven-wrapper.jar from Maven Central Repository
- Update .gitignore to allow maven-wrapper.jar to be committed
- This fixes 'Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain' error
- Ensures Maven Wrapper works properly in CI/CD and Docker environments
- Enables builds without pre-installed Maven
This commit is contained in:
wangtianqi 2025-06-23 23:36:10 +08:00
parent b285211b6c
commit 1a8d663c51
2 changed files with 2 additions and 1 deletions

3
.gitignore vendored
View File

@ -34,7 +34,8 @@ release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.mvn/wrapper/maven-wrapper.jar
# Note: maven-wrapper.jar should be committed to enable builds without Maven pre-installed
# .mvn/wrapper/maven-wrapper.jar
# Eclipse
.metadata

BIN
.mvn/wrapper/maven-wrapper.jar vendored Normal file

Binary file not shown.