Enable caching in AppVeyor
This supposed to reduce build time and more importantly reduce false
build failures which occur due to inability to download dependencies.
diff --git a/.appveyor.yml b/.appveyor.yml
index bc96944..66f3c3f 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -1,7 +1,13 @@
+cache:
+ - C:\Users\appveyor\apache-maven-3.3.9 -> appveyor.yml
+ - C:\Users\appveyor\.m2 -> **\pom.xml
+
install:
- - curl -LsS "http://www.apache.org/dyn/closer.cgi?action=download&filename=maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip" > apache-maven-3.3.9-bin.zip
- - unzip apache-maven-3.3.9-bin.zip
- - SET PATH=%CD%\apache-maven-3.3.9\bin;%PATH%
+ - if not exist C:\Users\appveyor\apache-maven-3.3.9 (
+ curl -LsS "http://www.apache.org/dyn/closer.cgi?action=download&filename=maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip" > apache-maven-3.3.9-bin.zip &&
+ unzip apache-maven-3.3.9-bin.zip -d C:\Users\appveyor
+ )
+ - SET PATH=C:\Users\appveyor\apache-maven-3.3.9\bin;%PATH%
build_script:
# Maven 3.3.9 requires Java >= 7, but generation of Javadocs requires Java <= 6 (https://github.com/jacoco/jacoco/issues/110)