We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc96c1b commit 191b3c9Copy full SHA for 191b3c9
1 file changed
maven-wrapper-distribution/src/resources/only-mvnw.cmd
@@ -89,9 +89,9 @@ if (-not (Test-Path -Path $MAVEN_M2_PATH)) {
89
}
90
91
$MAVEN_WRAPPER_DISTS = $null
92
-$m2PathItem = (Get-Item -Path $MAVEN_M2_PATH -Force).Target
93
-if ($m2PathItem -is [array] -and $m2PathItem.Count -gt 0) {
94
- $MAVEN_WRAPPER_DISTS = $m2PathItem[0] + "/wrapper/dists"
+$m2LinkTarget = (Get-Item -Path $MAVEN_M2_PATH -Force).Target
+if ($m2LinkTarget -is [array] -and $m2LinkTarget.Count -gt 0) {
+ $MAVEN_WRAPPER_DISTS = "$($m2LinkTarget[0])/wrapper/dists"
95
} else {
96
$MAVEN_WRAPPER_DISTS = "$MAVEN_M2_PATH/wrapper/dists"
97
0 commit comments