Sfoglia il codice sorgente

build and install cobbzilla-utils utility library

master
Jonathan Cobb 3 anni fa
parent
commit
fd101bed5b
1 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  1. +10
    -0
      bin/jvcl_common

+ 10
- 0
bin/jvcl_common Vedi File

@@ -60,7 +60,17 @@ if [[ -z "${JVCL_JAR}" ]] ; then
if [[ -z "$(which mvn)" ]] ; then
die "Maven not installed (mvn command not found on PATH), cannot build JVCL jar"
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"
popd || die "popd error"

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


Caricamento…
Annulla
Salva