Mercurial > dive4elements > river
comparison contrib/make_flys_release/make_release.sh @ 9719:f3aa7a12c86a 3.2.x
It's no longer necessary to install these artifacts from a file
Oracle-JDBC drivers are fetched from Maven repository since rev. ee1b409af91c.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 12 Jul 2021 14:39:58 +0200 |
parents | 8e5a8430b89c |
children | ca1319d5816d |
comparison
equal
deleted
inserted
replaced
9718:ee1b409af91c | 9719:f3aa7a12c86a |
---|---|
36 Default: $DEFAULT_WD | 36 Default: $DEFAULT_WD |
37 -t Tag the selected branch with given name. | 37 -t Tag the selected branch with given name. |
38 Note that \$USER is used as the repository user name | 38 Note that \$USER is used as the repository user name |
39 for pushing the tags. | 39 for pushing the tags. |
40 -o, --oracle Release is for oracle. | 40 -o, --oracle Release is for oracle. |
41 Suitable jar-file for JDBC driver has to be given with | |
42 the environment variable ORACLE_JDBC | |
43 TARGET must specify a tag (usually MAYOR.MINOR.PATCH) or a branch name. | 41 TARGET must specify a tag (usually MAYOR.MINOR.PATCH) or a branch name. |
44 EOF | 42 EOF |
45 exit 0 | 43 exit 0 |
46 } | 44 } |
47 # --backend-db-url Url of database backend. Default: $BACKENDURL | 45 # --backend-db-url Url of database backend. Default: $BACKENDURL |
266 echo "INFO: compile and build sources" | 264 echo "INFO: compile and build sources" |
267 cp $WORK_DIR/wsplgen-linux-64bit-static \ | 265 cp $WORK_DIR/wsplgen-linux-64bit-static \ |
268 $FLYS_SOURCE_DIR/river/artifacts/bin/wsplgen | 266 $FLYS_SOURCE_DIR/river/artifacts/bin/wsplgen |
269 | 267 |
270 if [ "$BUILD_ORACLE" = "TRUE" ]; then | 268 if [ "$BUILD_ORACLE" = "TRUE" ]; then |
271 if [ ! -f $ORACLE_JDBC ]; then | |
272 echo "Could not find oracle jdbc in $ORACLE_JDBC" | |
273 echo "Please make sure that the ORACLE_JDBC variable is set correctly" | |
274 exit 1 | |
275 fi | |
276 mvn install:install-file -DgroupId=ojdbc -DartifactId=ojdbc \ | |
277 -Dversion=0 -Dpackaging=jar -Dfile=$ORACLE_JDBC -DgeneratePom=true | |
278 mvn -f $FLYS_SOURCE_DIR/river/backend/pom-oracle.xml clean compile install | 269 mvn -f $FLYS_SOURCE_DIR/river/backend/pom-oracle.xml clean compile install |
279 mvn -f $FLYS_SOURCE_DIR/river/artifacts/pom-oracle.xml \ | 270 mvn -f $FLYS_SOURCE_DIR/river/artifacts/pom-oracle.xml \ |
280 package assembly:single | 271 package assembly:single |
281 else | 272 else |
282 mvn -f $FLYS_SOURCE_DIR/river/artifacts/pom.xml package assembly:single | 273 mvn -f $FLYS_SOURCE_DIR/river/artifacts/pom.xml package assembly:single |