#!/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/netty-netty-4.1.44.Final
alias mvn='$PROJECT_PREFIX/kit/apache-maven-3.3.9/bin/mvn -Dmaven.repo.local=$PROJECT_PREFIX/kit/m2 --settings $PROJECT_PREFIX/kit/m2/settings.xml --strict-checksums -o'
mvn package --projects common,buffer,resolver,transport,codec,handler,transport-native-unix-common -DskipTests=true
