mirror of
https://github.com/stCarolas/setup-maven.git
synced 2024-11-13 21:38:04 +00:00
add bin
This commit is contained in:
parent
c94f9216c7
commit
7f7f6e2e6f
@ -50,8 +50,9 @@ function getMaven(version) {
|
|||||||
exports.getMaven = getMaven;
|
exports.getMaven = getMaven;
|
||||||
function downloadMaven(version) {
|
function downloadMaven(version) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const toolDirectoryName = 'apache-maven-${version}';
|
const toolDirectoryName = `apache-maven-${version}`;
|
||||||
const downloadUrl = 'https://www-eu.apache.org/dist/maven/maven-3/${version}/binaries/${toolDirectoryName}-bin.tar.gz';
|
const downloadUrl = `https://www-eu.apache.org/dist/maven/maven-3/${version}/binaries/${toolDirectoryName}-bin.tar.gz`;
|
||||||
|
console.log(`downloading ${downloadUrl}`);
|
||||||
try {
|
try {
|
||||||
const downloadPath = yield tc.downloadTool(downloadUrl);
|
const downloadPath = yield tc.downloadTool(downloadUrl);
|
||||||
const extractedPath = yield tc.extractTar(downloadPath);
|
const extractedPath = yield tc.extractTar(downloadPath);
|
||||||
|
Loading…
Reference in New Issue
Block a user