1version: '{build}' 2os: Windows Server 2012 3install: 4 - ps: | 5 Add-Type -AssemblyName System.IO.Compression.FileSystem 6 if (!(Test-Path -Path "C:\maven" )) { 7 (new-object System.Net.WebClient).DownloadFile( 8 'http://www.us.apache.org/dist/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.zip', 9 'C:\maven-bin.zip' 10 ) 11 [System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven") 12 } 13 - cmd: SET PATH=C:\maven\apache-maven-3.2.5\bin;%JAVA_HOME%\bin;%PATH% 14 - cmd: SET MAVEN_OPTS=-XX:MaxPermSize=2g -Xmx4g 15 - cmd: SET JAVA_OPTS=-XX:MaxPermSize=2g -Xmx4g 16 - cmd: SET M2_HOME=C:\maven\apache-maven-3.2.5 17build_script: 18 - mvn clean package --batch-mode -DskipTest 19test_script: 20 - mvn clean install --batch-mode 21cache: 22 - C:\maven\ 23 - C:\Users\appveyor\.m2