Latest stable Apache Maven, or you can use Maven Wrapper instead.
export JAVA_HOME="PATH_TO_YOUR_JDK_11"
export JAVA_HOME_JDK7="PATH_TO_YOUR_JDK_7"
./mvnw -t .mvn/toolchains.xml package -Plegacy-support -Dmaven.test.skip=true
# Run with test and code coverage requires at least JDK-8
export JAVA_HOME_JDK7="PATH_TO_YOUR_JDK_8"
./mvnw -t .mvn/toolchains.xml package jacoco:report-aggregate -Pcoverage -Plegacy-support
set JAVA_HOME="PATH_TO_YOUR_JDK_11"
set JAVA_HOME_JDK7="PATH_TO_YOUR_JDK_7"
mvnw.bat -t .mvn\toolchains.xml package -Plegacy-support -Dmaven.test.skip=true
;; Run with test and code coverage requires at least JDK-8
export JAVA_HOME_JDK7="PATH_TO_YOUR_JDK_8"
mvnw.bat -t .mvn/toolchains.xml package jacoco:report-aggregate -Pcoverage -Plegacy-support