This commit is contained in:
stCarolas 2019-12-07 16:19:09 +03:00
parent c94f9216c7
commit 7f7f6e2e6f

View File

@ -50,8 +50,9 @@ function getMaven(version) {
exports.getMaven = getMaven;
function downloadMaven(version) {
return __awaiter(this, void 0, void 0, function* () {
const toolDirectoryName = 'apache-maven-${version}';
const downloadUrl = 'https://www-eu.apache.org/dist/maven/maven-3/${version}/binaries/${toolDirectoryName}-bin.tar.gz';
const toolDirectoryName = `apache-maven-${version}`;
const downloadUrl = `https://www-eu.apache.org/dist/maven/maven-3/${version}/binaries/${toolDirectoryName}-bin.tar.gz`;
console.log(`downloading ${downloadUrl}`);
try {
const downloadPath = yield tc.downloadTool(downloadUrl);
const extractedPath = yield tc.extractTar(downloadPath);