Mercurial > dive4elements > river
comparison backend/pom.xml @ 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 | 47eee0be5792 |
comparison
equal
deleted
inserted
replaced
9778:b57b236c4f4e | 9779:3847836c60b5 |
---|---|
183 <dependency> | 183 <dependency> |
184 <groupId>com.vividsolutions</groupId> | 184 <groupId>com.vividsolutions</groupId> |
185 <artifactId>jts</artifactId> | 185 <artifactId>jts</artifactId> |
186 <version>1.11</version> | 186 <version>1.11</version> |
187 </dependency> | 187 </dependency> |
188 <dependency> | 188 </dependencies> |
189 <!-- overwrite dependency of postgis-jdbc --> | 189 |
190 <groupId>org.postgresql</groupId> | 190 <profiles> |
191 <artifactId>postgresql</artifactId> | 191 <!-- Build with support for PostgreSQL/PostGIS by default --> |
192 <version>42.0.0.jre7</version> | 192 <profile> |
193 <scope>runtime</scope> | 193 <id>postgis</id> |
194 </dependency> | 194 <activation> |
195 <dependency> | 195 <activeByDefault>true</activeByDefault> |
196 <groupId>org.postgis</groupId> | 196 </activation> |
197 <artifactId>postgis-jdbc</artifactId> | 197 <dependencies> |
198 <version>1.3.3</version> | 198 <dependency> |
199 <scope>runtime</scope> | 199 <!-- overwrite dependency of postgis-jdbc --> |
200 <exclusions> | 200 <groupId>org.postgresql</groupId> |
201 <exclusion> | |
202 <groupId>postgresql</groupId> | |
203 <artifactId>postgresql</artifactId> | 201 <artifactId>postgresql</artifactId> |
204 </exclusion> | 202 <version>42.0.0.jre7</version> |
205 </exclusions> | 203 <scope>runtime</scope> |
206 </dependency> | 204 </dependency> |
207 <dependency> | 205 <dependency> |
208 <groupId>org.hibernatespatial</groupId> | 206 <groupId>org.postgis</groupId> |
209 <artifactId>hibernate-spatial-postgis</artifactId> | 207 <artifactId>postgis-jdbc</artifactId> |
210 <version>1.1.1</version> | 208 <version>1.3.3</version> |
211 <scope>runtime</scope> | 209 <scope>runtime</scope> |
212 </dependency> | 210 <exclusions> |
213 </dependencies> | 211 <exclusion> |
212 <groupId>postgresql</groupId> | |
213 <artifactId>postgresql</artifactId> | |
214 </exclusion> | |
215 </exclusions> | |
216 </dependency> | |
217 <dependency> | |
218 <groupId>org.hibernatespatial</groupId> | |
219 <artifactId>hibernate-spatial-postgis</artifactId> | |
220 <version>1.1.1</version> | |
221 <scope>runtime</scope> | |
222 </dependency> | |
223 </dependencies> | |
224 </profile> | |
225 | |
226 <!-- Build with Oracle support by setting environment variable ORACLE=true --> | |
227 <profile> | |
228 <id>oracle</id> | |
229 <activation> | |
230 <property> | |
231 <name>env.ORACLE</name> | |
232 <value>true</value> | |
233 </property> | |
234 </activation> | |
235 <dependencies> | |
236 <dependency> | |
237 <groupId>org.hibernatespatial</groupId> | |
238 <artifactId>hibernate-spatial-oracle</artifactId> | |
239 <version>1.1.1</version> | |
240 <scope>runtime</scope> | |
241 </dependency> | |
242 <dependency> | |
243 <groupId>com.oracle.database.jdbc</groupId> | |
244 <artifactId>ojdbc8</artifactId> | |
245 <version>[19,20)</version> | |
246 <scope>runtime</scope> | |
247 </dependency> | |
248 </dependencies> | |
249 </profile> | |
250 </profiles> | |
214 | 251 |
215 <repositories> | 252 <repositories> |
216 <repository> | 253 <repository> |
217 <id>Hibernate Spatial repo</id> | 254 <id>Hibernate Spatial repo</id> |
218 <url>http://www.hibernatespatial.org/repository</url> | 255 <url>http://www.hibernatespatial.org/repository</url> |