Skip to content

Commit

Permalink
[misc] appveyor: install maven using chocolatey
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Jul 29, 2021
1 parent fd7ea8f commit ce03fc9
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,12 @@ environment:

clone_folder: c:\projects\mariadb-connector-j
install:
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\maven" )) {
(new-object System.Net.WebClient).DownloadFile('http://www.us.apache.org/dist/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.zip', 'C:\maven-bin.zip')
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
}
# Prepend Java entry, remove Ruby entry (C:\Ruby193\bin;) from PATH
- cmd: choco install maven
- cmd: appveyor-download.bat
- cmd: msiexec /i server.msi INSTALLDIR=c:\projects\server SERVICENAME=mariadb ALLOWREMOTEROOTACCESS=true /qn
- cmd: "\"c:\\projects\\server\\bin\\mysql.exe\" -e \"create database testj\" --user=root"
- cmd: SET PATH=C:\maven\apache-maven-3.5.4\bin;%JAVA_HOME%\bin;%PATH:C:\Ruby193\bin;=%;
- cmd: SET MAVEN_OPTS=-Xms512m -Xms768m
- cmd: SET JAVA_OPTS=-Xms512m -Xmx768m
- cmd: SET M2_HOME=C:\maven\apache-maven-3.5.4
- cmd: cd c:\projects\mariadb-connector-j
- cmd: mvn --version
- cmd: java -version
Expand Down

0 comments on commit ce03fc9

Please sign in to comment.