[Windows] pin maven version (#7236)

This commit is contained in:
Mikhail Koliada
2023-03-05 11:41:43 +01:00
committed by GitHub
parent fe23ebfec1
commit ed49bcd543
3 changed files with 12 additions and 2 deletions

View File

@@ -133,7 +133,11 @@ if (-not (Test-IsWin22)) {
# Install Java tools
# Force chocolatey to ignore dependencies on Ant and Maven or else they will download the Oracle JDK
Choco-Install -PackageName ant -ArgumentList "-i"
Choco-Install -PackageName maven -ArgumentList "-i"
# Maven 3.9.x has multiple compatibilities problems
$toolsetMavenVersion = (Get-ToolsetContent).maven.version
$versionToInstall = Get-LatestChocoPackageVersion -TargetVersion $toolsetMavenVersion -PackageName "maven"
Choco-Install -PackageName maven -ArgumentList "--version=$versionToInstall"
Choco-Install -PackageName gradle
# Add maven env variables to Machine

View File

@@ -479,6 +479,9 @@
"node": {
"default": "18"
},
"maven": {
"version": "3.8"
},
"mysql": {
"version": "5.7"
},

View File

@@ -390,6 +390,9 @@
"node": {
"default": "18"
},
"maven": {
"version": "3.8"
},
"mysql": {
"version": "8.0"
},