diff --git a/.mvn/jvm.config b/.mvn/jvm.config index d3dd6be54f..a85f7f49c1 100644 --- a/.mvn/jvm.config +++ b/.mvn/jvm.config @@ -11,4 +11,5 @@ --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED ---add-modules=jdk.incubator.vector \ No newline at end of file +--add-modules=jdk.incubator.vector +--enable-native-access=ALL-UNNAMED \ No newline at end of file diff --git a/README.md b/README.md index 682a6eecde..5e32461960 100644 --- a/README.md +++ b/README.md @@ -217,6 +217,23 @@ mvn -Pdeveloping,postgresql verify -Dspring-boot.run.profiles=dev,populate-testd * You can use `mvn -U org.codehaus.mojo:versions-maven-plugin:display-dependency-updates` to search for dependency updates +#### SSE streams + +We have 2 SSE streams available, one in the admin API at: `api/admin/events/{clientId}` and one in the viewer API +at: `api/events/{clientId}`. When using these streams you must make sure that you are using/injecting the correct +`SseEventBus` for each API. + +For the admin use the default `eventBus` bean, inject using: `SseEventBus eventBus` (defined using the +`@EnableSseEventBus` annotation in the `TailormapConfig` class). +For the viewer use the `viewerSseEventBus` bean, inject using: `@Qualifier("viewerSseEventBus") SseEventBus eventBus` +(defined in the `TailormapConfig` class). +See: +- [ServerSentEventsAdminController](src/main/java/org/tailormap/api/controller/admin/ServerSentEventsAdminController.java) for the admin configuration +- [ServerSentEventsController](src/main/java/org/tailormap/api/controller/ServerSentEventsController.java) for the viewer configuration +- [TailormapConfig](src/main/java/org/tailormap/api/configuration/TailormapConfig.java) for the bean definitions + +If you inject the wrong one you may not receive the events you want, and you risk sending administrative events to the viewer. + ## Releasing ### Prerequisites diff --git a/build/ci/docker-compose.yml b/build/ci/docker-compose.yml index 22759440fe..9185e0494d 100644 --- a/build/ci/docker-compose.yml +++ b/build/ci/docker-compose.yml @@ -181,4 +181,4 @@ services: start_period: 60s interval: 15s timeout: 5s - retries: 3 \ No newline at end of file + retries: 3 diff --git a/build/qa/PMD-ruleset_for_TM.xml b/build/qa/PMD-ruleset_for_TM.xml index ccc1203053..4bf97d09e9 100644 --- a/build/qa/PMD-ruleset_for_TM.xml +++ b/build/qa/PMD-ruleset_for_TM.xml @@ -113,7 +113,7 @@ SPDX-License-Identifier: MIT - + diff --git a/pom.xml b/pom.xml index c143bf8928..34b882192c 100644 --- a/pom.xml +++ b/pom.xml @@ -311,10 +311,28 @@ SPDX-License-Identifier: MIT org.geotools gt-cql + + org.geotools + gt-csv + org.geotools gt-epsg-hsql + + org.geotools + gt-excel-writer + + ${geotools.version} + + + org.geotools + gt-geojson-store + + + org.geotools + gt-geopkg + org.geotools gt-http @@ -335,6 +353,10 @@ SPDX-License-Identifier: MIT org.geotools gt-referencing + + org.geotools + gt-shapefile + org.geotools gt-wfs-ng @@ -679,6 +701,14 @@ SPDX-License-Identifier: MIT Releases hosted by OSGeo https://repo.osgeo.org/repository/release/ + + + true + + repo.b3p.nl + B3Partners public repository + https://repo.b3p.nl/nexus/repository/public/ + @@ -974,12 +1004,14 @@ SPDX-License-Identifier: MIT alternatively, use environment variable BPL_JVM_CLASS_ADJUSTMENT when deploying the docker container --> 120% - - -XX:MaxDirectMemorySize=256M + + -XX:MaxDirectMemorySize=256M --enable-native-access=ALL-UNNAMED