更新 lib/installer.js

This commit is contained in:
jqyt 2025-04-03 01:21:31 +00:00
parent 6908ba7fe5
commit 2d193ec7cb

View File

@ -68,7 +68,8 @@ exports.getMaven = getMaven;
function downloadMaven(version) {
return __awaiter(this, void 0, void 0, function* () {
const toolDirectoryName = `apache-maven-${version}`;
const downloadUrl = `https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/${version}/apache-maven-${version}-bin.tar.gz`;
const downloadUrl = `https://mirrors.huaweicloud.com/apache/maven/maven-3/${version}/binaries/apache-maven-${version}-bin.zip`;
console.log(`downloading ${downloadUrl}`);
try {
const downloadPath = yield tc.downloadTool(downloadUrl);