view artifact-database/bin/createArtifacts.sh @ 579:7abdf5472ed7 3.2.x

Fix groupId It changed due to inheritance introduced with rev. 9f49cf2d05bc.
author Tom Gottfried <tom@intevation.de>
date Fri, 13 Jan 2023 19:21:07 +0100
parents 5f09f902dec2
children
line wrap: on
line source
#!/bin/bash

mkdir -p artifactsdb

DIR=`dirname $0`
DIR=`readlink -f "$DIR"`

if [ $# != 1 ]; then
    SCHEMA="$DIR/../doc/schema-h2.sql"
else
    SCHEMA="$1"
fi

URL="jdbc:h2:`readlink -f artifactsdb`/artifacts"

mvn -e -Dexec.mainClass=org.h2.tools.RunScript exec:java \
    -Dexec.args="-url $URL -script $SCHEMA"

http://dive4elements.wald.intevation.org