Browse Source

build and install cobbzilla-utils utility library

master
Jonathan Cobb 3 years ago
parent
commit
fd101bed5b
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      bin/jvcl_common

+ 10
- 0
bin/jvcl_common View File

@@ -60,7 +60,17 @@ if [[ -z "${JVCL_JAR}" ]] ; then
if [[ -z "$(which mvn)" ]] ; then if [[ -z "$(which mvn)" ]] ; then
die "Maven not installed (mvn command not found on PATH), cannot build JVCL jar" die "Maven not installed (mvn command not found on PATH), cannot build JVCL jar"
fi fi

# Build and install utility library
pushd "${JVCL_DIR}"/utils/cobbzilla-utils || die "Error changing directories to ${JVCL_DIR}/utils/cobbzilla-utils"
mvn -DskipTests=true clean install || die "Error building cobbzilla-utils library"
popd || die "popd error"

# Build jvcl uberjar
pushd "${JVCL_DIR}" || die "Error changing directories to ${JVCL_DIR}"
mvn -DskipTests=true -Puberjar clean package || die "Error building JVCL jar" mvn -DskipTests=true -Puberjar clean package || die "Error building JVCL jar"
popd || die "popd error"

JVCL_JAR="$(find "${JVCL_DIR}"/target -type f -name "jvcl-*-prod.jar" | head -1)" JVCL_JAR="$(find "${JVCL_DIR}"/target -type f -name "jvcl-*-prod.jar" | head -1)"
if [[ -z "${JVCL_JAR}" ]] ; then if [[ -z "${JVCL_JAR}" ]] ; then
die "No JVCL jar file found after successful build" die "No JVCL jar file found after successful build"


Loading…
Cancel
Save