comparison contrib/make_flys_release/make_release.sh @ 9779:3847836c60b5 3.2.x

Improve backend build for different database backends Use profiles instead of multiple almost identical POMs. Introduce build-time argument for Docker build.
author Tom Gottfried <tom@intevation.de>
date Tue, 07 Feb 2023 16:11:43 +0100
parents b57b236c4f4e
children
comparison
equal deleted inserted replaced
9778:b57b236c4f4e 9779:3847836c60b5
71 break;; 71 break;;
72 "-w") 72 "-w")
73 WORK_DIR=$2 73 WORK_DIR=$2
74 shift 2;; 74 shift 2;;
75 "-o"|"--oracle") 75 "-o"|"--oracle")
76 BUILD_ORACLE="TRUE" 76 ORACLE="true"
77 shift;; 77 shift;;
78 "-t") 78 "-t")
79 DO_TAG=$2 79 DO_TAG=$2
80 shift 2;; 80 shift 2;;
81 *) 81 *)
184 -DartifactId=smartgwt-lgpl -DgroupId=com.isomorphic.smartgwt.lgpl \ 184 -DartifactId=smartgwt-lgpl -DgroupId=com.isomorphic.smartgwt.lgpl \
185 -Dpackaging=jar 185 -Dpackaging=jar
186 186
187 echo "INFO: compile sources" 187 echo "INFO: compile sources"
188 mvn -f $FLYS_SOURCE_DIR/framework/pom.xml clean compile install 188 mvn -f $FLYS_SOURCE_DIR/framework/pom.xml clean compile install
189
190 # If ORACLE=true, the oracle profile in the POM is activated
189 mvn -f $FLYS_SOURCE_DIR/river/backend/pom.xml clean compile install 191 mvn -f $FLYS_SOURCE_DIR/river/backend/pom.xml clean compile install
192
190 mvn -f $FLYS_SOURCE_DIR/river/artifacts/pom.xml clean compile 193 mvn -f $FLYS_SOURCE_DIR/river/artifacts/pom.xml clean compile
191 mvn -f $FLYS_SOURCE_DIR/http-client/pom.xml clean compile install 194 mvn -f $FLYS_SOURCE_DIR/http-client/pom.xml clean compile install
192 # gwt-client has to be compiled later to allow custom CLIENT_CONF 195 # gwt-client has to be compiled later to allow custom CLIENT_CONF
193 196
194 echo "INFO: create h2 database for artifacts and datacage" 197 echo "INFO: create h2 database for artifacts and datacage"
272 275
273 echo "INFO: compile and build sources" 276 echo "INFO: compile and build sources"
274 cp $WORK_DIR/wsplgen-linux-64bit-static \ 277 cp $WORK_DIR/wsplgen-linux-64bit-static \
275 $FLYS_SOURCE_DIR/river/artifacts/bin/wsplgen 278 $FLYS_SOURCE_DIR/river/artifacts/bin/wsplgen
276 279
277 if [ "$BUILD_ORACLE" = "TRUE" ]; then 280 mvn -f $FLYS_SOURCE_DIR/river/artifacts/pom.xml package assembly:single
278 mvn -f $FLYS_SOURCE_DIR/river/backend/pom-oracle.xml clean compile install
279 mvn -f $FLYS_SOURCE_DIR/river/artifacts/pom-oracle.xml \
280 package assembly:single
281 else
282 mvn -f $FLYS_SOURCE_DIR/river/artifacts/pom.xml package assembly:single
283 fi
284 mvn -f $FLYS_SOURCE_DIR/river/gwt-client/pom.xml clean compile package 281 mvn -f $FLYS_SOURCE_DIR/river/gwt-client/pom.xml clean compile package
285 282
286 283
287 echo "INFO: create tarball" 284 echo "INFO: create tarball"
288 cd $WORK_DIR 285 cd $WORK_DIR

http://dive4elements.wald.intevation.org