#!/bin/bash
set -xe
PROJECT_PREFIX=`readlink -e .`
cd src/xstream-XSTREAM_1_4_10
alias ant='$PROJECT_PREFIX/kit/apache-ant-1.9.4/bin/ant'
alias mvn='$PROJECT_PREFIX/kit/apache-maven-3.2.5/bin/mvn -Dmaven.repo.local=$PROJECT_PREFIX/kit/m2 --settings $PROJECT_PREFIX/kit/m2/settings.xml --strict-checksums -o'
export MAVEN_OPTS="--add-modules java.xml.bind --add-modules java.annotation --add-exports java.annotation/javax.annotation.security=ALL-UNNAMED"
mvn package -DskipTests=true -Dmaven.javadoc.skip=true
