#!/bin/bash
set -xe
PROJECT_PREFIX=`readlink -e .`
[[ -d /usr/lib/jvm/java-11-openjdk/  ]] && export JAVA_HOME=/usr/lib/jvm/java-11-openjdk/ # Forcing J11 for RHEL
cd src/ehcache-2.10.1
$PROJECT_PREFIX/kit/apache-maven-3.2.5/bin/mvn -DadditionalJOption=-Xdoclint:none -Dmaven.repo.local=$PROJECT_PREFIX/kit/m2 -Dmaven.compiler.source=9 -Dmaven.compiler.target=9 -Darguments='-Dadditionalparam=-Xdoclint:none' --settings $PROJECT_PREFIX/kit/m2/settings.xml --strict-checksums -o package -DskipTests=true --projects ehcache-core
