Переглянути джерело

build and install cobbzilla-utils utility library

master
Jonathan Cobb 3 роки тому
джерело
коміт
fd101bed5b
1 змінених файлів з 10 додано та 0 видалено
  1. +10
    -0
      bin/jvcl_common

+ 10
- 0
bin/jvcl_common Переглянути файл

@@ -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"


Завантаження…
Відмінити
Зберегти