From ac3c46e8b81ad061fb170a3f2a9aa5afc43b6ab8 Mon Sep 17 00:00:00 2001 From: Jan van Mansum Date: Sun, 19 Aug 2018 20:24:21 +0200 Subject: [PATCH] WIP --- build-install-springfield-mod.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 build-install-springfield-mod.sh diff --git a/build-install-springfield-mod.sh b/build-install-springfield-mod.sh new file mode 100755 index 0000000..6c38065 --- /dev/null +++ b/build-install-springfield-mod.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +if (( $# < 2 )); then + echo "Installs springfield module into local Maven cache" + echo + echo "Usage: $(basename $0) " + echo "Example: $(basename $0) war/momar.war 1.0.0" + exit 1 +fi + +ARTIFACT=$1 +VERSION=$2 +BASENAME=$(basename $ARTIFACT) +MODULE=$(echo $BASENAME | cut -d. -f1) +EXT=$(echo $BASENAME | cut -d. -f2) +SPRINGFIELD_PACKAGE=springfield2 + +mvn install:install-file -Dfile=$ARTIFACT -DartifactId=$MODULE -Dpackaging=$EXT -DgroupId=nl.knaw.dans.springfield2 -Dversion=$VERSION