.travis.yml: install java 6 compatible maven version
Project: http://git-wip-us.apache.org/repos/asf/commons-cli/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-cli/commit/282bdb62 Tree: http://git-wip-us.apache.org/repos/asf/commons-cli/tree/282bdb62 Diff: http://git-wip-us.apache.org/repos/asf/commons-cli/diff/282bdb62 Branch: refs/heads/master Commit: 282bdb6216776f6585e543a8d41f42b7102f51bd Parents: 9bdb3db Author: Pascal Schumacher <pascalschumac...@gmx.net> Authored: Thu Sep 21 21:17:08 2017 +0200 Committer: Pascal Schumacher <pascalschumac...@gmx.net> Committed: Thu Sep 21 21:52:38 2017 +0200 ---------------------------------------------------------------------- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-cli/blob/282bdb62/.travis.yml ---------------------------------------------------------------------- diff --git a/.travis.yml b/.travis.yml index 9c54708..6abfbad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,6 +21,13 @@ addons: packages: - openjdk-6-jdk +# use java 6 compatible maven version (installed into target directory so rat check passes) +before_install: + - wget https://archive.apache.org/dist/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.zip -P ./target + - unzip -qq ./target/apache-maven-3.2.5-bin.zip -d ./target + - export M2_HOME=$PWD/target/apache-maven-3.2.5 + - export PATH=$M2_HOME/bin:$PATH + jdk: - openjdk6 - openjdk7