#!/usr/bin/env bash # Installs the prebuilt EIP3 jatools (JOR) report-engine jars into the PROJECT-LOCAL # Maven repo (platform-report/local-repo) under stable coordinates so the module can # depend on them normally (and they get packaged into the Spring Boot fat jar). # # Re-run this only if the jars in ./lib change. The resulting ./local-repo is committed # with the module, so a normal `mvn install` does NOT need this script. # # Requires JAVA_HOME=/opt/homebrew/opt/openjdk@21 (or any JDK21) and mvn on PATH. set -euo pipefail cd "$(dirname "$0")" REPO="$(pwd)/local-repo" LIB="$(pwd)/lib" GROUP="com.dsasp.thirdparty" VERSION="eip3" install() { local artifact="$1" jar="$2" mvn -q org.apache.maven.plugins:maven-install-plugin:3.1.1:install-file \ -Dfile="$LIB/$jar" \ -DgroupId="$GROUP" \ -DartifactId="$artifact" \ -Dversion="$VERSION" \ -Dpackaging=jar \ -DlocalRepositoryPath="$REPO" echo "installed $GROUP:$artifact:$VERSION <- $jar" } install jatools jatools.jar install bsh bsh2.0.jar install itext itext.jar install jxl jxl.jar install jsqlparser jsqlparser.jar install jfreechart jfreechart-1.0.13.jar install jcommon jcommon-1.0.16.jar install jchart chart.jar install barcode4j barcode4j.jar install zxing zxing2.1.core.jar install commons-beanutils commons-beanutils.jar install commons-collections commons-collections-3.0.jar install commons-httpclient commons-httpclient-2.0.1.jar install commons-lang commons-lang-2.0.jar install commons-logging commons-logging-1.0.1.jar install log4j log4j-1.2.8.jar install jaxen jaxen1.1.1.jar install xerces xercesImpl.jar echo "DONE. local-repo populated at $REPO"