mvnw Command Failed to Pull apache-maven
- The binary packages available at the Kunpeng mirror site are compiled and packaged based on the open source code, and do not involve vulnerability or bug fixes.
- When using open source software, comply with the applicable licenses.
Symptom
If the compilation environment requires a proxy to access the Internet, the apache-maven-3.5.0-bin.zip package may fail to be downloaded during the compilation.

Key Process and Cause Analysis
A proxy is used to access the Internet, which results in download failure of the required package during compilation.
Conclusion and Solution
Add a proxy in the mvnw script.
- Open the mvnw script.
vim mvnw
- Press i to enter the insert mode and add the following proxy code to the file:
"-Dhttp.proxyHost=127.0.0.1" "-Dhttp.proxyPort=3128" "-Dhttps.proxyHost=127.0.0.1" "-Dhttps.proxyPort=3128" \
In the preceding example, 127.0.0.1 and 3128 indicate the IP address and port number of the proxy host. Replace them with the actual ones.

- Press Esc, type :wq!, and press Enter to save the file and exit.
- Run the mvnw command again.
./mvnw clean install -Dgpg.skip=true
Parent topic: Troubleshooting