chore(deps): update dependency maven-wrapper to v3.3.4 (#5169)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [maven-wrapper](https://maven.apache.org/tools/wrapper/) ([source](https://redirect.github.com/apache/maven-wrapper)) | `3.3.2` → `3.3.4` |  |  | --- > [!WARNING] > Some dependencies could not be looked up. Check the [Dependency Dashboard](../issues/2069) for more information. --- ### Release Notes <details> <summary>apache/maven-wrapper (maven-wrapper)</summary> ### [`v3.3.4`](https://redirect.github.com/apache/maven-wrapper/releases/tag/maven-wrapper-3.3.4): 3.3.4 [Compare Source](https://redirect.github.com/apache/maven-wrapper/compare/maven-wrapper-3.3.3...maven-wrapper-3.3.4) <!-- Optional: add a release summary here --> ##### 🐛 Bug Fixes - Revert wrapper version removal ([#​365](https://redirect.github.com/apache/maven-wrapper/pull/365)) [@​breun](https://redirect.github.com/breun) ##### 👻 Maintenance - Ensure Path Traversal is fully addressed in MavenWrapperDownloader ([#​363](https://redirect.github.com/apache/maven-wrapper/pull/363)) [@​hazendaz](https://redirect.github.com/hazendaz) ### [`v3.3.3`](https://redirect.github.com/apache/maven-wrapper/releases/tag/maven-wrapper-3.3.3): 3.3.3 [Compare Source](https://redirect.github.com/apache/maven-wrapper/compare/maven-wrapper-3.3.2...maven-wrapper-3.3.3) <!-- Optional: add a release summary here --> ##### 💥 Breaking changes - Remove wrapper lifecycle ([#​357](https://redirect.github.com/apache/maven-wrapper/pull/357)) [@​slawekjaranowski](https://redirect.github.com/slawekjaranowski) ##### 🚀 New features and improvements - Fix Maven wrapper support for snapshot distributions ([#​335](https://redirect.github.com/apache/maven-wrapper/pull/335)) [@​gnodet](https://redirect.github.com/gnodet) ##### 🐛 Bug Fixes - [\[MWRAPPER-143\]](https://issues.apache.org/jira/browse/MWRAPPER-143) - The wrapperVersion property is not used in only-script mode ([#​145](https://redirect.github.com/apache/maven-wrapper/pull/145)) [@​bdemers](https://redirect.github.com/bdemers) - fix: Maven wrapper relative distributionUrl does not work (fixes [#​272](https://redirect.github.com/apache/maven-wrapper/issues/272)) ([#​107](https://redirect.github.com/apache/maven-wrapper/pull/107)) [@​danishcake](https://redirect.github.com/danishcake) - Fix Windows Junction Link support in mvnw\.cmd ([#​143](https://redirect.github.com/apache/maven-wrapper/pull/143)) [@​fp024](https://redirect.github.com/fp024) - [\[MWRAPPER-158\]](https://issues.apache.org/jira/browse/MWRAPPER-158) - Remove incorrect license header ([#​166](https://redirect.github.com/apache/maven-wrapper/pull/166)) [@​lbruun](https://redirect.github.com/lbruun) - [\[MWRAPPER-161\]](https://issues.apache.org/jira/browse/MWRAPPER-161) - Improve script directory detection when using sh mvnw ([#​329](https://redirect.github.com/apache/maven-wrapper/pull/329)) [@​ppkarwasz](https://redirect.github.com/ppkarwasz) - [\[MWRAPPER-162\]](https://issues.apache.org/jira/browse/MWRAPPER-162) - Removed dead link was getting 404 ([#​167](https://redirect.github.com/apache/maven-wrapper/pull/167)) [@​montu376](https://redirect.github.com/montu376) - [\[MWRAPPER-159\]](https://issues.apache.org/jira/browse/MWRAPPER-159) - Fix shellcheck in mvnw ([#​168](https://redirect.github.com/apache/maven-wrapper/pull/168)) [@​slawekjaranowski](https://redirect.github.com/slawekjaranowski) - [\[MWRAPPER-146\]](https://issues.apache.org/jira/browse/MWRAPPER-146) - Bad substitution on Windows if MVNW\_REPOURL is set on script-only ([#​151](https://redirect.github.com/apache/maven-wrapper/pull/151)) [@​jahk04](https://redirect.github.com/jahk04) - [\[MWRAPPER-147\]](https://issues.apache.org/jira/browse/MWRAPPER-147) - mvnw\.cmd fails to launch maven if username contains space ([#​152](https://redirect.github.com/apache/maven-wrapper/pull/152)) [@​sebthom](https://redirect.github.com/sebthom) - [\[MWRAPPER-150\]](https://issues.apache.org/jira/browse/MWRAPPER-150) - Fails to validate checksums on MacOS Sequoia ([#​155](https://redirect.github.com/apache/maven-wrapper/pull/155)) [@​jon-signal](https://redirect.github.com/jon-signal) - [\[MWRAPPER-111\]](https://issues.apache.org/jira/browse/MWRAPPER-111) - Trim whitespace when reading from properties file ([#​158](https://redirect.github.com/apache/maven-wrapper/pull/158)) [@​mhalbritter](https://redirect.github.com/mhalbritter) - [\[MWRAPPER-153\]](https://issues.apache.org/jira/browse/MWRAPPER-153) - Fixed only-mvnw\.cmd fails when FIPS mode is enabled on Windows hosts ([#​157](https://redirect.github.com/apache/maven-wrapper/pull/157)) [@​zbalkan](https://redirect.github.com/zbalkan) ##### 📝 Documentation updates - Clarify usage of MAVEN\_USER\_HOME ([#​359](https://redirect.github.com/apache/maven-wrapper/pull/359)) [@​slawekjaranowski](https://redirect.github.com/slawekjaranowski) - site is now /tools/wrapper ([#​336](https://redirect.github.com/apache/maven-wrapper/pull/336)) [@​hboutemy](https://redirect.github.com/hboutemy) ##### 👻 Maintenance - Use invoker version from parent ([#​356](https://redirect.github.com/apache/maven-wrapper/pull/356)) [@​slawekjaranowski](https://redirect.github.com/slawekjaranowski) - Refresh download page ([#​354](https://redirect.github.com/apache/maven-wrapper/pull/354)) [@​slawekjaranowski](https://redirect.github.com/slawekjaranowski) - Update site descriptor to 2.0.0 ([#​351](https://redirect.github.com/apache/maven-wrapper/pull/351)) [@​slawekjaranowski](https://redirect.github.com/slawekjaranowski) - Enable prevent branch protection rules ([#​348](https://redirect.github.com/apache/maven-wrapper/pull/348)) [@​slawekjaranowski](https://redirect.github.com/slawekjaranowski) - Copy edit docs ([#​344](https://redirect.github.com/apache/maven-wrapper/pull/344)) [@​elharo](https://redirect.github.com/elharo) - Prefer [@​Inject](https://redirect.github.com/Inject) ([#​343](https://redirect.github.com/apache/maven-wrapper/pull/343)) [@​elharo](https://redirect.github.com/elharo) - Bump shellcheck to 0.10.0 ([#​333](https://redirect.github.com/apache/maven-wrapper/pull/333)) [@​slachiewicz](https://redirect.github.com/slachiewicz) - Enable GitHub Issues ([#​169](https://redirect.github.com/apache/maven-wrapper/pull/169)) [@​slawekjaranowski](https://redirect.github.com/slawekjaranowski) - [\[MNGSITE-529\]](https://issues.apache.org/jira/browse/MNGSITE-529) - Rename "Goals" to "Plugin Documentation" ([#​163](https://redirect.github.com/apache/maven-wrapper/pull/163)) [@​Bukama](https://redirect.github.com/Bukama) ##### 📦 Dependency updates - Bump mavenVersion from 3.9.6 to 3.9.11 ([#​360](https://redirect.github.com/apache/maven-wrapper/pull/360)) @​[dependabot\[bot\]](https://redirect.github.com/apps/dependabot) - Bump exec-maven-plugin to 3.5.1 in ITs ([#​355](https://redirect.github.com/apache/maven-wrapper/pull/355)) [@​slawekjaranowski](https://redirect.github.com/slawekjaranowski) - Bump org.codehaus.mojo:mrm-maven-plugin from 1.6.0 to 1.7.0 ([#​350](https://redirect.github.com/apache/maven-wrapper/pull/350)) @​[dependabot\[bot\]](https://redirect.github.com/apps/dependabot) - Bump org.codehaus.plexus:plexus-archiver from 4.10.0 to 4.10.1 ([#​349](https://redirect.github.com/apache/maven-wrapper/pull/349)) @​[dependabot\[bot\]](https://redirect.github.com/apps/dependabot) - Bump actions/checkout from 4 to 5 ([#​347](https://redirect.github.com/apache/maven-wrapper/pull/347)) @​[dependabot\[bot\]](https://redirect.github.com/apps/dependabot) - Bump commons-io:commons-io from 2.19.0 to 2.20.0 ([#​339](https://redirect.github.com/apache/maven-wrapper/pull/339)) @​[dependabot\[bot\]](https://redirect.github.com/apps/dependabot) - Bump commons-io:commons-io from 2.18.0 to 2.19.0 ([#​164](https://redirect.github.com/apache/maven-wrapper/pull/164)) @​[dependabot\[bot\]](https://redirect.github.com/apps/dependabot) - Bump org.apache.maven.resolver:maven-resolver-api from 1.9.20 to 1.9.24 ([#​334](https://redirect.github.com/apache/maven-wrapper/pull/334)) @​[dependabot\[bot\]](https://redirect.github.com/apps/dependabot) - Bump org.codehaus.plexus:plexus-io from 3.4.2 to 3.5.1 ([#​153](https://redirect.github.com/apache/maven-wrapper/pull/153)) @​[dependabot\[bot\]](https://redirect.github.com/apps/dependabot) - Bump org.codehaus.plexus:plexus-archiver from 4.9.2 to 4.10.0 ([#​147](https://redirect.github.com/apache/maven-wrapper/pull/147)) @​[dependabot\[bot\]](https://redirect.github.com/apps/dependabot) - Upgrade to parent pom 45 ([#​332](https://redirect.github.com/apache/maven-wrapper/pull/332)) [@​slachiewicz](https://redirect.github.com/slachiewicz) - [\[MWRAPPER-154\]](https://issues.apache.org/jira/browse/MWRAPPER-154) - Bump commons-io:commons-io from 2.16.1 to 2.18.0 ([#​161](https://redirect.github.com/apache/maven-wrapper/pull/161)) @​[dependabot\[bot\]](https://redirect.github.com/apps/dependabot) - Bump org.hamcrest:hamcrest from 2.2 to 3.0 ([#​149](https://redirect.github.com/apache/maven-wrapper/pull/149)) @​[dependabot\[bot\]](https://redirect.github.com/apps/dependabot) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/langchain4j/langchain4j). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNzMuNiIsInVwZGF0ZWRJblZlciI6IjQzLjE3My42IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
parent
b78b2f24dc
commit
da579ff44a
|
|
@ -1,19 +1,3 @@
|
|||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
wrapperVersion=3.3.2
|
||||
wrapperVersion=3.3.4
|
||||
distributionType=only-script
|
||||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
# ----------------------------------------------------------------------------
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# Apache Maven Wrapper startup batch script, version 3.3.2
|
||||
# Apache Maven Wrapper startup batch script, version 3.3.4
|
||||
#
|
||||
# Optional ENV vars
|
||||
# -----------------
|
||||
|
|
@ -105,14 +105,17 @@ trim() {
|
|||
printf "%s" "${1}" | tr -d '[:space:]'
|
||||
}
|
||||
|
||||
scriptDir="$(dirname "$0")"
|
||||
scriptName="$(basename "$0")"
|
||||
|
||||
# parse distributionUrl and optional distributionSha256Sum, requires .mvn/wrapper/maven-wrapper.properties
|
||||
while IFS="=" read -r key value; do
|
||||
case "${key-}" in
|
||||
distributionUrl) distributionUrl=$(trim "${value-}") ;;
|
||||
distributionSha256Sum) distributionSha256Sum=$(trim "${value-}") ;;
|
||||
esac
|
||||
done <"${0%/*}/.mvn/wrapper/maven-wrapper.properties"
|
||||
[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in ${0%/*}/.mvn/wrapper/maven-wrapper.properties"
|
||||
done <"$scriptDir/.mvn/wrapper/maven-wrapper.properties"
|
||||
[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
|
||||
|
||||
case "${distributionUrl##*/}" in
|
||||
maven-mvnd-*bin.*)
|
||||
|
|
@ -130,7 +133,7 @@ maven-mvnd-*bin.*)
|
|||
distributionUrl="${distributionUrl%-bin.*}-$distributionPlatform.zip"
|
||||
;;
|
||||
maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;;
|
||||
*) MVN_CMD="mvn${0##*/mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;;
|
||||
*) MVN_CMD="mvn${scriptName#mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;;
|
||||
esac
|
||||
|
||||
# apply MVNW_REPOURL and calculate MAVEN_HOME
|
||||
|
|
@ -227,7 +230,7 @@ if [ -n "${distributionSha256Sum-}" ]; then
|
|||
echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
|
||||
exit 1
|
||||
elif command -v sha256sum >/dev/null; then
|
||||
if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c >/dev/null 2>&1; then
|
||||
if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c - >/dev/null 2>&1; then
|
||||
distributionSha256Result=true
|
||||
fi
|
||||
elif command -v shasum >/dev/null; then
|
||||
|
|
@ -252,8 +255,41 @@ if command -v unzip >/dev/null; then
|
|||
else
|
||||
tar xzf${__MVNW_QUIET_TAR:+"$__MVNW_QUIET_TAR"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -C "$TMP_DOWNLOAD_DIR" || die "failed to untar"
|
||||
fi
|
||||
printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/mvnw.url"
|
||||
mv -- "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME"
|
||||
|
||||
# Find the actual extracted directory name (handles snapshots where filename != directory name)
|
||||
actualDistributionDir=""
|
||||
|
||||
# First try the expected directory name (for regular distributions)
|
||||
if [ -d "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" ]; then
|
||||
if [ -f "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/bin/$MVN_CMD" ]; then
|
||||
actualDistributionDir="$distributionUrlNameMain"
|
||||
fi
|
||||
fi
|
||||
|
||||
# If not found, search for any directory with the Maven executable (for snapshots)
|
||||
if [ -z "$actualDistributionDir" ]; then
|
||||
# enable globbing to iterate over items
|
||||
set +f
|
||||
for dir in "$TMP_DOWNLOAD_DIR"/*; do
|
||||
if [ -d "$dir" ]; then
|
||||
if [ -f "$dir/bin/$MVN_CMD" ]; then
|
||||
actualDistributionDir="$(basename "$dir")"
|
||||
break
|
||||
fi
|
||||
fi
|
||||
done
|
||||
set -f
|
||||
fi
|
||||
|
||||
if [ -z "$actualDistributionDir" ]; then
|
||||
verbose "Contents of $TMP_DOWNLOAD_DIR:"
|
||||
verbose "$(ls -la "$TMP_DOWNLOAD_DIR")"
|
||||
die "Could not find Maven distribution directory in extracted archive"
|
||||
fi
|
||||
|
||||
verbose "Found extracted Maven distribution directory: $actualDistributionDir"
|
||||
printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$actualDistributionDir/mvnw.url"
|
||||
mv -- "$TMP_DOWNLOAD_DIR/$actualDistributionDir" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME"
|
||||
|
||||
clean || :
|
||||
exec_maven "$@"
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
@REM ----------------------------------------------------------------------------
|
||||
|
||||
@REM ----------------------------------------------------------------------------
|
||||
@REM Apache Maven Wrapper startup batch script, version 3.3.2
|
||||
@REM Apache Maven Wrapper startup batch script, version 3.3.4
|
||||
@REM
|
||||
@REM Optional ENV vars
|
||||
@REM MVNW_REPOURL - repo url base for downloading maven distribution
|
||||
|
|
@ -40,7 +40,7 @@
|
|||
@SET __MVNW_ARG0_NAME__=
|
||||
@SET MVNW_USERNAME=
|
||||
@SET MVNW_PASSWORD=
|
||||
@IF NOT "%__MVNW_CMD__%"=="" (%__MVNW_CMD__% %*)
|
||||
@IF NOT "%__MVNW_CMD__%"=="" ("%__MVNW_CMD__%" %*)
|
||||
@echo Cannot start maven from wrapper >&2 && exit /b 1
|
||||
@GOTO :EOF
|
||||
: end batch / begin powershell #>
|
||||
|
|
@ -73,16 +73,30 @@ switch -wildcard -casesensitive ( $($distributionUrl -replace '^.*/','') ) {
|
|||
# apply MVNW_REPOURL and calculate MAVEN_HOME
|
||||
# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-<version>,maven-mvnd-<version>-<platform>}/<hash>
|
||||
if ($env:MVNW_REPOURL) {
|
||||
$MVNW_REPO_PATTERN = if ($USE_MVND) { "/org/apache/maven/" } else { "/maven/mvnd/" }
|
||||
$distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace '^.*'+$MVNW_REPO_PATTERN,'')"
|
||||
$MVNW_REPO_PATTERN = if ($USE_MVND -eq $False) { "/org/apache/maven/" } else { "/maven/mvnd/" }
|
||||
$distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace "^.*$MVNW_REPO_PATTERN",'')"
|
||||
}
|
||||
$distributionUrlName = $distributionUrl -replace '^.*/',''
|
||||
$distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$',''
|
||||
$MAVEN_HOME_PARENT = "$HOME/.m2/wrapper/dists/$distributionUrlNameMain"
|
||||
|
||||
$MAVEN_M2_PATH = "$HOME/.m2"
|
||||
if ($env:MAVEN_USER_HOME) {
|
||||
$MAVEN_HOME_PARENT = "$env:MAVEN_USER_HOME/wrapper/dists/$distributionUrlNameMain"
|
||||
$MAVEN_M2_PATH = "$env:MAVEN_USER_HOME"
|
||||
}
|
||||
$MAVEN_HOME_NAME = ([System.Security.Cryptography.MD5]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join ''
|
||||
|
||||
if (-not (Test-Path -Path $MAVEN_M2_PATH)) {
|
||||
New-Item -Path $MAVEN_M2_PATH -ItemType Directory | Out-Null
|
||||
}
|
||||
|
||||
$MAVEN_WRAPPER_DISTS = $null
|
||||
if ((Get-Item $MAVEN_M2_PATH).Target[0] -eq $null) {
|
||||
$MAVEN_WRAPPER_DISTS = "$MAVEN_M2_PATH/wrapper/dists"
|
||||
} else {
|
||||
$MAVEN_WRAPPER_DISTS = (Get-Item $MAVEN_M2_PATH).Target[0] + "/wrapper/dists"
|
||||
}
|
||||
|
||||
$MAVEN_HOME_PARENT = "$MAVEN_WRAPPER_DISTS/$distributionUrlNameMain"
|
||||
$MAVEN_HOME_NAME = ([System.Security.Cryptography.SHA256]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join ''
|
||||
$MAVEN_HOME = "$MAVEN_HOME_PARENT/$MAVEN_HOME_NAME"
|
||||
|
||||
if (Test-Path -Path "$MAVEN_HOME" -PathType Container) {
|
||||
|
|
@ -134,7 +148,33 @@ if ($distributionSha256Sum) {
|
|||
|
||||
# unzip and move
|
||||
Expand-Archive "$TMP_DOWNLOAD_DIR/$distributionUrlName" -DestinationPath "$TMP_DOWNLOAD_DIR" | Out-Null
|
||||
Rename-Item -Path "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" -NewName $MAVEN_HOME_NAME | Out-Null
|
||||
|
||||
# Find the actual extracted directory name (handles snapshots where filename != directory name)
|
||||
$actualDistributionDir = ""
|
||||
|
||||
# First try the expected directory name (for regular distributions)
|
||||
$expectedPath = Join-Path "$TMP_DOWNLOAD_DIR" "$distributionUrlNameMain"
|
||||
$expectedMvnPath = Join-Path "$expectedPath" "bin/$MVN_CMD"
|
||||
if ((Test-Path -Path $expectedPath -PathType Container) -and (Test-Path -Path $expectedMvnPath -PathType Leaf)) {
|
||||
$actualDistributionDir = $distributionUrlNameMain
|
||||
}
|
||||
|
||||
# If not found, search for any directory with the Maven executable (for snapshots)
|
||||
if (!$actualDistributionDir) {
|
||||
Get-ChildItem -Path "$TMP_DOWNLOAD_DIR" -Directory | ForEach-Object {
|
||||
$testPath = Join-Path $_.FullName "bin/$MVN_CMD"
|
||||
if (Test-Path -Path $testPath -PathType Leaf) {
|
||||
$actualDistributionDir = $_.Name
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!$actualDistributionDir) {
|
||||
Write-Error "Could not find Maven distribution directory in extracted archive"
|
||||
}
|
||||
|
||||
Write-Verbose "Found extracted Maven distribution directory: $actualDistributionDir"
|
||||
Rename-Item -Path "$TMP_DOWNLOAD_DIR/$actualDistributionDir" -NewName $MAVEN_HOME_NAME | Out-Null
|
||||
try {
|
||||
Move-Item -Path "$TMP_DOWNLOAD_DIR/$MAVEN_HOME_NAME" -Destination $MAVEN_HOME_PARENT | Out-Null
|
||||
} catch {
|
||||
|
|
|
|||
Loading…
Reference in New Issue