Add rest client + domain module
All checks were successful
Maven build / build (push) Successful in 4m18s

This commit is contained in:
Guillaume Dugas
2026-02-19 22:18:46 +01:00
parent 9341b765f2
commit 7698739063
75 changed files with 770 additions and 686 deletions

179
bom/pom.xml Normal file
View File

@@ -0,0 +1,179 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<packaging>pom</packaging>
<artifactId>semrack-bom</artifactId>
<name>Bom</name>
<properties>
<!-- Quarkus project basics -->
<compiler-plugin.version>3.14.0</compiler-plugin.version>
<maven.compiler.release>21</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
<quarkus.platform.version>${quarkus.version}</quarkus.platform.version>
<skipITs>true</skipITs>
<surefire-plugin.version>3.5.3</surefire-plugin.version>
<!-- Other properties -->
<commons-codec.version>1.16.0</commons-codec.version>
<jsonpath.version>2.9.0</jsonpath.version>
<lombok.version>1.18.38</lombok.version>
<org.mapstruct.version>1.6.3</org.mapstruct.version>
<quarkus.version>3.31.3</quarkus.version>
<semrack.version>${project.version}</semrack.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>${quarkus.platform.group-id}</groupId>
<artifactId>${quarkus.platform.artifact-id}</artifactId>
<version>${quarkus.platform.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>${commons-codec.version}</version>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
<version>${org.mapstruct.version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
<!-- SEMRACK -->
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-bom</artifactId>
<version>${semrack.version}</version>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack</artifactId>
<version>${semrack.version}</version>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-core</artifactId>
<version>${semrack.version}</version>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-core-testing</artifactId>
<version>${semrack.version}</version>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-core-deployment</artifactId>
<version>${semrack.version}</version>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-index-postgres</artifactId>
<version>${semrack.version}</version>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-index-postgres-deployment</artifactId>
<version>${semrack.version}</version>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-storage-postgres</artifactId>
<version>${semrack.version}</version>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-storage-postgres-deployment</artifactId>
<version>${semrack.version}</version>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-api-rest</artifactId>
<version>${semrack.version}</version>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-api-rest-deployment</artifactId>
<version>${semrack.version}</version>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-rest-client</artifactId>
<version>${semrack.version}</version>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-rest-client-deployment</artifactId>
<version>${semrack.version}</version>
</dependency>
<dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
<version>${jsonpath.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${quarkus.version}</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire-plugin.version}</version>
<configuration>
<systemPropertyVariables>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<maven.home>${maven.home}</maven.home>
<maven.repo>${settings.localRepository}</maven.repo>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${failsafe-plugin.version}</version>
<configuration>
<systemPropertyVariables>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<maven.home>${maven.home}</maven.home>
<maven.repo>${settings.localRepository}</maven.repo>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler-plugin.version}</version>
<configuration>
<parameters>true</parameters>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>

36
domain/pom.xml Normal file
View File

@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-bom</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../bom/pom.xml</relativePath>
</parent>
<artifactId>semrack</artifactId>
<name>Semrack</name>
<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-arc</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -1,7 +1,7 @@
package fr.codeanddata.semrack.core; package fr.codeanddata.semrack;
import fr.codeanddata.semrack.core.models.IndexSearchResult; import fr.codeanddata.semrack.models.IndexSearchResult;
import fr.codeanddata.semrack.core.models.Search; import fr.codeanddata.semrack.models.Search;
import io.smallrye.mutiny.Uni; import io.smallrye.mutiny.Uni;
public interface Index { public interface Index {

View File

@@ -1,4 +1,4 @@
package fr.codeanddata.semrack.core; package fr.codeanddata.semrack;
import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;

View File

@@ -1,6 +1,6 @@
package fr.codeanddata.semrack.core; package fr.codeanddata.semrack;
import fr.codeanddata.semrack.core.models.ReadContext; import fr.codeanddata.semrack.models.ReadContext;
import io.smallrye.mutiny.Uni; import io.smallrye.mutiny.Uni;
public interface ReadInterceptor { public interface ReadInterceptor {

View File

@@ -1,6 +1,6 @@
package fr.codeanddata.semrack.core; package fr.codeanddata.semrack;
import fr.codeanddata.semrack.core.models.SearchContext; import fr.codeanddata.semrack.models.SearchContext;
import io.smallrye.mutiny.Uni; import io.smallrye.mutiny.Uni;
public interface SearchInterceptor { public interface SearchInterceptor {

View File

@@ -1,7 +1,7 @@
package fr.codeanddata.semrack.core; package fr.codeanddata.semrack;
import fr.codeanddata.semrack.core.models.Document; import fr.codeanddata.semrack.models.Document;
import fr.codeanddata.semrack.core.models.StorageGet; import fr.codeanddata.semrack.models.StorageGet;
import io.smallrye.mutiny.Uni; import io.smallrye.mutiny.Uni;
import java.util.List; import java.util.List;

View File

@@ -1,6 +1,6 @@
package fr.codeanddata.semrack.core; package fr.codeanddata.semrack;
import fr.codeanddata.semrack.core.models.WriteContext; import fr.codeanddata.semrack.models.WriteContext;
import io.smallrye.mutiny.Uni; import io.smallrye.mutiny.Uni;
public interface WriteInterceptor { public interface WriteInterceptor {

View File

@@ -0,0 +1,10 @@
package fr.codeanddata.semrack.enums;
public enum PathTypes {
UNKNOWN,
STRING,
NUMBER,
BOOLEAN,
LIST,
OBJECT
}

View File

@@ -1,4 +1,4 @@
package fr.codeanddata.semrack.core.enums; package fr.codeanddata.semrack.enums;
public enum SortDirection { public enum SortDirection {
asc, desc asc, desc

View File

@@ -1,4 +1,4 @@
package fr.codeanddata.semrack.core.exceptions; package fr.codeanddata.semrack.exceptions;
public class SemrackException extends Exception { public class SemrackException extends Exception {
public SemrackException() { public SemrackException() {

View File

@@ -1,4 +1,4 @@
package fr.codeanddata.semrack.core.exceptions; package fr.codeanddata.semrack.exceptions;
public class SemrackRuntimeException extends RuntimeException { public class SemrackRuntimeException extends RuntimeException {
public SemrackRuntimeException() { public SemrackRuntimeException() {

View File

@@ -1,4 +1,4 @@
package fr.codeanddata.semrack.core.models; package fr.codeanddata.semrack.models;
import io.quarkus.runtime.annotations.RegisterForReflection; import io.quarkus.runtime.annotations.RegisterForReflection;
import lombok.*; import lombok.*;

View File

@@ -1,4 +1,4 @@
package fr.codeanddata.semrack.core.models; package fr.codeanddata.semrack.models;
import lombok.*; import lombok.*;

View File

@@ -1,4 +1,4 @@
package fr.codeanddata.semrack.core.models; package fr.codeanddata.semrack.models;
import lombok.*; import lombok.*;

View File

@@ -1,4 +1,4 @@
package fr.codeanddata.semrack.core.models; package fr.codeanddata.semrack.models;
import lombok.*; import lombok.*;

View File

@@ -1,4 +1,4 @@
package fr.codeanddata.semrack.core.models; package fr.codeanddata.semrack.models;
import lombok.*; import lombok.*;

View File

@@ -1,4 +1,4 @@
package fr.codeanddata.semrack.core.models; package fr.codeanddata.semrack.models;
import lombok.*; import lombok.*;

View File

@@ -1,4 +1,4 @@
package fr.codeanddata.semrack.core.models; package fr.codeanddata.semrack.models;
import lombok.*; import lombok.*;

View File

@@ -1,4 +1,4 @@
package fr.codeanddata.semrack.core.models; package fr.codeanddata.semrack.models;
import lombok.*; import lombok.*;

View File

@@ -1,4 +1,4 @@
package fr.codeanddata.semrack.core.models; package fr.codeanddata.semrack.models;
import lombok.*; import lombok.*;

View File

@@ -1,6 +1,6 @@
package fr.codeanddata.semrack.core.models; package fr.codeanddata.semrack.models;
import fr.codeanddata.semrack.core.enums.SortDirection; import fr.codeanddata.semrack.enums.SortDirection;
import lombok.*; import lombok.*;
@Getter @Getter

View File

@@ -1,4 +1,4 @@
package fr.codeanddata.semrack.core.models; package fr.codeanddata.semrack.models;
import lombok.*; import lombok.*;

View File

@@ -1,6 +1,6 @@
package fr.codeanddata.semrack.core.models; package fr.codeanddata.semrack.models;
import fr.codeanddata.semrack.core.utils.Traverser; import fr.codeanddata.semrack.enums.PathTypes;
import lombok.*; import lombok.*;
@Getter @Getter
@@ -9,7 +9,7 @@ import lombok.*;
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
public class TraverserPath { public class TraverserPath {
Traverser.PathTypes type; PathTypes type;
String fullPath; String fullPath;
Object value; Object value;
} }

View File

@@ -1,4 +1,4 @@
package fr.codeanddata.semrack.core.models; package fr.codeanddata.semrack.models;
import lombok.*; import lombok.*;

View File

@@ -1,24 +0,0 @@
services:
postgres:
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: quarkus
ports:
- "35532:5432"
semrack:
build:
context: .
dockerfile: src/main/docker/Dockerfile.native-micro
environment:
QUARKUS_FLYWAY_ACTIVE: true
ports:
- "9090:8080"
links:
- postgres
volumes:
- ./.env:/work/.env
- ./src/main/resources/application.properties:/work/config/application.properties

View File

@@ -1,139 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>fr.codeanddata.semrack</groupId>
<version>1.0-SNAPSHOT</version>
<artifactId>semrack-parent</artifactId>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>semrack-integration</artifactId>
<dependencies>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-core</artifactId>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-storage-postgres</artifactId>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-index-postgres</artifactId>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-api-rest</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>${quarkus.platform.group-id}</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${quarkus.platform.version}</version>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>build</goal>
<goal>generate-code</goal>
<goal>generate-code-tests</goal>
<goal>native-image-agent</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler-plugin.version}</version>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
<path>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${org.mapstruct.version}</version>
</path>
</annotationProcessorPaths>
<parameters>true</parameters>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire-plugin.version}</version>
<configuration>
<systemPropertyVariables>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<maven.home>${maven.home}</maven.home>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${surefire-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<systemPropertyVariables>
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<maven.home>${maven.home}</maven.home>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>native</id>
<activation>
<property>
<name>native</name>
</property>
</activation>
<properties>
<skipITs>false</skipITs>
<quarkus.native.enabled>true</quarkus.native.enabled>
</properties>
</profile>
</profiles>
</project>

View File

@@ -1,98 +0,0 @@
####
# This Dockerfile is used in order to build a container that runs the Quarkus application in JVM mode
#
# Before building the container image run:
#
# ./mvnw package
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.jvm -t quarkus/semrack-jvm .
#
# Then run the container using:
#
# docker run -i --rm -p 8080:8080 quarkus/semrack-jvm
#
# If you want to include the debug port into your docker image
# you will have to expose the debug port (default 5005 being the default) like this : EXPOSE 8080 5005.
# Additionally you will have to set -e JAVA_DEBUG=true and -e JAVA_DEBUG_PORT=*:5005
# when running the container
#
# Then run the container using :
#
# docker run -i --rm -p 8080:8080 quarkus/semrack-jvm
#
# This image uses the `run-java.sh` script to run the application.
# This scripts computes the command line to execute your Java application, and
# includes memory/GC tuning.
# You can configure the behavior using the following environment properties:
# - JAVA_OPTS: JVM options passed to the `java` command (example: "-verbose:class") - Be aware that this will override
# the default JVM options, use `JAVA_OPTS_APPEND` to append options
# - JAVA_OPTS_APPEND: User specified Java options to be appended to generated options
# in JAVA_OPTS (example: "-Dsome.property=foo")
# - JAVA_MAX_MEM_RATIO: Is used when no `-Xmx` option is given in JAVA_OPTS. This is
# used to calculate a default maximal heap memory based on a containers restriction.
# If used in a container without any memory constraints for the container then this
# option has no effect. If there is a memory constraint then `-Xmx` is set to a ratio
# of the container available memory as set here. The default is `50` which means 50%
# of the available memory is used as an upper boundary. You can skip this mechanism by
# setting this value to `0` in which case no `-Xmx` option is added.
# - JAVA_INITIAL_MEM_RATIO: Is used when no `-Xms` option is given in JAVA_OPTS. This
# is used to calculate a default initial heap memory based on the maximum heap memory.
# If used in a container without any memory constraints for the container then this
# option has no effect. If there is a memory constraint then `-Xms` is set to a ratio
# of the `-Xmx` memory as set here. The default is `25` which means 25% of the `-Xmx`
# is used as the initial heap size. You can skip this mechanism by setting this value
# to `0` in which case no `-Xms` option is added (example: "25")
# - JAVA_MAX_INITIAL_MEM: Is used when no `-Xms` option is given in JAVA_OPTS.
# This is used to calculate the maximum value of the initial heap memory. If used in
# a container without any memory constraints for the container then this option has
# no effect. If there is a memory constraint then `-Xms` is limited to the value set
# here. The default is 4096MB which means the calculated value of `-Xms` never will
# be greater than 4096MB. The value of this variable is expressed in MB (example: "4096")
# - JAVA_DIAGNOSTICS: Set this to get some diagnostics information to standard output
# when things are happening. This option, if set to true, will set
# `-XX:+UnlockDiagnosticVMOptions`. Disabled by default (example: "true").
# - JAVA_DEBUG: If set remote debugging will be switched on. Disabled by default (example:
# true").
# - JAVA_DEBUG_PORT: Port used for remote debugging. Defaults to 5005 (example: "8787").
# - CONTAINER_CORE_LIMIT: A calculated core limit as described in
# https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt. (example: "2")
# - CONTAINER_MAX_MEMORY: Memory limit given to the container (example: "1024").
# - GC_MIN_HEAP_FREE_RATIO: Minimum percentage of heap free after GC to avoid expansion.
# (example: "20")
# - GC_MAX_HEAP_FREE_RATIO: Maximum percentage of heap free after GC to avoid shrinking.
# (example: "40")
# - GC_TIME_RATIO: Specifies the ratio of the time spent outside the garbage collection.
# (example: "4")
# - GC_ADAPTIVE_SIZE_POLICY_WEIGHT: The weighting given to the current GC time versus
# previous GC times. (example: "90")
# - GC_METASPACE_SIZE: The initial metaspace size. (example: "20")
# - GC_MAX_METASPACE_SIZE: The maximum metaspace size. (example: "100")
# - GC_CONTAINER_OPTIONS: Specify Java GC to use. The value of this variable should
# contain the necessary JRE command-line options to specify the required GC, which
# will override the default of `-XX:+UseParallelGC` (example: -XX:+UseG1GC).
# - HTTPS_PROXY: The location of the https proxy. (example: "myuser@127.0.0.1:8080")
# - HTTP_PROXY: The location of the http proxy. (example: "myuser@127.0.0.1:8080")
# - NO_PROXY: A comma separated lists of hosts, IP addresses or domains that can be
# accessed directly. (example: "foo.example.com,bar.example.com")
#
###
FROM registry.access.redhat.com/ubi9/openjdk-21:1.21
ENV LANGUAGE='en_US:en'
# We make four distinct layers so if there are application changes the library layers can be re-used
COPY --chown=185 target/quarkus-app/lib/ /deployments/lib/
COPY --chown=185 target/quarkus-app/*.jar /deployments/
COPY --chown=185 target/quarkus-app/app/ /deployments/app/
COPY --chown=185 target/quarkus-app/quarkus/ /deployments/quarkus/
EXPOSE 8080
USER 185
ENV JAVA_OPTS_APPEND="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV JAVA_APP_JAR="/deployments/quarkus-run.jar"
ENTRYPOINT [ "/opt/jboss/container/java/run/run-java.sh" ]

View File

@@ -1,94 +0,0 @@
####
# This Dockerfile is used in order to build a container that runs the Quarkus application in JVM mode
#
# Before building the container image run:
#
# ./mvnw package -Dquarkus.package.jar.type=legacy-jar
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.legacy-jar -t quarkus/semrack-legacy-jar .
#
# Then run the container using:
#
# docker run -i --rm -p 8080:8080 quarkus/semrack-legacy-jar
#
# If you want to include the debug port into your docker image
# you will have to expose the debug port (default 5005 being the default) like this : EXPOSE 8080 5005.
# Additionally you will have to set -e JAVA_DEBUG=true and -e JAVA_DEBUG_PORT=*:5005
# when running the container
#
# Then run the container using :
#
# docker run -i --rm -p 8080:8080 quarkus/semrack-legacy-jar
#
# This image uses the `run-java.sh` script to run the application.
# This scripts computes the command line to execute your Java application, and
# includes memory/GC tuning.
# You can configure the behavior using the following environment properties:
# - JAVA_OPTS: JVM options passed to the `java` command (example: "-verbose:class") - Be aware that this will override
# the default JVM options, use `JAVA_OPTS_APPEND` to append options
# - JAVA_OPTS_APPEND: User specified Java options to be appended to generated options
# in JAVA_OPTS (example: "-Dsome.property=foo")
# - JAVA_MAX_MEM_RATIO: Is used when no `-Xmx` option is given in JAVA_OPTS. This is
# used to calculate a default maximal heap memory based on a containers restriction.
# If used in a container without any memory constraints for the container then this
# option has no effect. If there is a memory constraint then `-Xmx` is set to a ratio
# of the container available memory as set here. The default is `50` which means 50%
# of the available memory is used as an upper boundary. You can skip this mechanism by
# setting this value to `0` in which case no `-Xmx` option is added.
# - JAVA_INITIAL_MEM_RATIO: Is used when no `-Xms` option is given in JAVA_OPTS. This
# is used to calculate a default initial heap memory based on the maximum heap memory.
# If used in a container without any memory constraints for the container then this
# option has no effect. If there is a memory constraint then `-Xms` is set to a ratio
# of the `-Xmx` memory as set here. The default is `25` which means 25% of the `-Xmx`
# is used as the initial heap size. You can skip this mechanism by setting this value
# to `0` in which case no `-Xms` option is added (example: "25")
# - JAVA_MAX_INITIAL_MEM: Is used when no `-Xms` option is given in JAVA_OPTS.
# This is used to calculate the maximum value of the initial heap memory. If used in
# a container without any memory constraints for the container then this option has
# no effect. If there is a memory constraint then `-Xms` is limited to the value set
# here. The default is 4096MB which means the calculated value of `-Xms` never will
# be greater than 4096MB. The value of this variable is expressed in MB (example: "4096")
# - JAVA_DIAGNOSTICS: Set this to get some diagnostics information to standard output
# when things are happening. This option, if set to true, will set
# `-XX:+UnlockDiagnosticVMOptions`. Disabled by default (example: "true").
# - JAVA_DEBUG: If set remote debugging will be switched on. Disabled by default (example:
# true").
# - JAVA_DEBUG_PORT: Port used for remote debugging. Defaults to 5005 (example: "8787").
# - CONTAINER_CORE_LIMIT: A calculated core limit as described in
# https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt. (example: "2")
# - CONTAINER_MAX_MEMORY: Memory limit given to the container (example: "1024").
# - GC_MIN_HEAP_FREE_RATIO: Minimum percentage of heap free after GC to avoid expansion.
# (example: "20")
# - GC_MAX_HEAP_FREE_RATIO: Maximum percentage of heap free after GC to avoid shrinking.
# (example: "40")
# - GC_TIME_RATIO: Specifies the ratio of the time spent outside the garbage collection.
# (example: "4")
# - GC_ADAPTIVE_SIZE_POLICY_WEIGHT: The weighting given to the current GC time versus
# previous GC times. (example: "90")
# - GC_METASPACE_SIZE: The initial metaspace size. (example: "20")
# - GC_MAX_METASPACE_SIZE: The maximum metaspace size. (example: "100")
# - GC_CONTAINER_OPTIONS: Specify Java GC to use. The value of this variable should
# contain the necessary JRE command-line options to specify the required GC, which
# will override the default of `-XX:+UseParallelGC` (example: -XX:+UseG1GC).
# - HTTPS_PROXY: The location of the https proxy. (example: "myuser@127.0.0.1:8080")
# - HTTP_PROXY: The location of the http proxy. (example: "myuser@127.0.0.1:8080")
# - NO_PROXY: A comma separated lists of hosts, IP addresses or domains that can be
# accessed directly. (example: "foo.example.com,bar.example.com")
#
###
FROM registry.access.redhat.com/ubi9/openjdk-21:1.21
ENV LANGUAGE='en_US:en'
COPY target/lib/* /deployments/lib/
COPY target/*-runner.jar /deployments/quarkus-run.jar
EXPOSE 8080
USER 185
ENV JAVA_OPTS_APPEND="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV JAVA_APP_JAR="/deployments/quarkus-run.jar"
ENTRYPOINT [ "/opt/jboss/container/java/run/run-java.sh" ]

View File

@@ -1,29 +0,0 @@
####
# This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode.
#
# Before building the container image run:
#
# ./mvnw package -Dnative
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.native -t quarkus/semrack .
#
# Then run the container using:
#
# docker run -i --rm -p 8080:8080 quarkus/semrack
#
# The ` registry.access.redhat.com/ubi9/ubi-minimal:9.5` base image is based on UBI 9.
# To use UBI 8, switch to `quay.io/ubi8/ubi-minimal:8.10`.
###
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.5
WORKDIR /work/
RUN chown 1001 /work \
&& chmod "g+rwX" /work \
&& chown 1001:root /work
COPY --chown=1001:root --chmod=0755 target/*-runner /work/application
EXPOSE 8080
USER 1001
ENTRYPOINT ["./application", "-Dquarkus.http.host=0.0.0.0"]

View File

@@ -1,32 +0,0 @@
####
# This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode.
# It uses a micro base image, tuned for Quarkus native executables.
# It reduces the size of the resulting container image.
# Check https://quarkus.io/guides/quarkus-runtime-base-image for further information about this image.
#
# Before building the container image run:
#
# ./mvnw package -Dnative
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.native-micro -t quarkus/semrack .
#
# Then run the container using:
#
# docker run -i --rm -p 8080:8080 quarkus/semrack
#
# The `quay.io/quarkus/ubi9-quarkus-micro-image:2.0` base image is based on UBI 9.
# To use UBI 8, switch to `quay.io/quarkus/quarkus-micro-image:2.0`.
###
FROM quay.io/quarkus/ubi9-quarkus-micro-image:2.0
WORKDIR /work/
RUN chown 1001 /work \
&& chmod "g+rwX" /work \
&& chown 1001:root /work
COPY --chown=1001:root --chmod=0755 target/*-runner /work/application
EXPOSE 8080
USER 1001
ENTRYPOINT ["./application", "-Dquarkus.http.host=0.0.0.0"]

View File

@@ -1,25 +0,0 @@
%dev.quarkus.log.min-level=TRACE
#quarkus.hibernate-orm.mapping.format.global=ignore
# Datasource
quarkus.datasource.devservices.port=35432
quarkus.hibernate-orm.scripts.generation=none
%prod.quarkus.datasource.jdbc.url=jdbc:postgresql://${semrack.db.host}:${semrack.db.port}/${semrack.db.name}
%prod.quarkus.datasource.reactive.url=postgresql://${semrack.db.host}:${semrack.db.port}/${semrack.db.name}
%prod.quarkus.datasource.username=${semrack.db.user}
%prod.quarkus.datasource.password=${semrack.db.password}
quarkus.hibernate-orm.log.sql=true
## Flyway
quarkus.flyway.active=false
# Security
quarkus.keycloak.devservices.port=35180
quarkus.oidc.client-id=m2m-client
quarkus.oidc.credentials.secret=m2m-password
quarkus.oidc.discovery-enabled=true
%prod.quarkus.oidc.auth-server-url=${semrack.oidc.url}
%prod.quarkus.oidc.client-id=${semrack.oidc.client-id}
%prod.quarkus.oidc.credentials.secret=${semrack.oidc.client-secret}

View File

@@ -4,9 +4,9 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>fr.codeanddata.semrack</groupId> <groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-parent</artifactId> <artifactId>semrack-bom</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath> <relativePath>../../bom/pom.xml</relativePath>
</parent> </parent>
<artifactId>semrack-api-rest-parent</artifactId> <artifactId>semrack-api-rest-parent</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>

View File

@@ -1,12 +1,11 @@
package fr.codeanddata.semrack.api.rest; package fr.codeanddata.semrack.api.rest;
import fr.codeanddata.semrack.core.models.*;
import fr.codeanddata.semrack.core.repositories.DocumentRepository; import fr.codeanddata.semrack.core.repositories.DocumentRepository;
import fr.codeanddata.semrack.models.*;
import io.smallrye.mutiny.Uni; import io.smallrye.mutiny.Uni;
import jakarta.inject.Inject; import jakarta.inject.Inject;
import jakarta.ws.rs.GET; import jakarta.ws.rs.GET;
import jakarta.ws.rs.POST; import jakarta.ws.rs.POST;
import jakarta.ws.rs.PUT;
import jakarta.ws.rs.Path; import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces; import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType; import jakarta.ws.rs.core.MediaType;

View File

@@ -4,9 +4,9 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>fr.codeanddata.semrack</groupId> <groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-parent</artifactId> <artifactId>semrack-bom</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath> <relativePath>../../bom/pom.xml</relativePath>
</parent> </parent>
<artifactId>semrack-core-parent</artifactId> <artifactId>semrack-core-parent</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>

View File

@@ -12,6 +12,10 @@
<name>Semrack Core - Runtime</name> <name>Semrack Core - Runtime</name>
<dependencies> <dependencies>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack</artifactId>
</dependency>
<dependency> <dependency>
<groupId>io.quarkus</groupId> <groupId>io.quarkus</groupId>
<artifactId>quarkus-arc</artifactId> <artifactId>quarkus-arc</artifactId>

View File

@@ -2,8 +2,8 @@ package fr.codeanddata.semrack.core.interceptors;
import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import fr.codeanddata.semrack.core.WriteInterceptor; import fr.codeanddata.semrack.WriteInterceptor;
import fr.codeanddata.semrack.core.models.WriteContext; import fr.codeanddata.semrack.models.WriteContext;
import io.smallrye.mutiny.Uni; import io.smallrye.mutiny.Uni;
import jakarta.enterprise.context.ApplicationScoped; import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject; import jakarta.inject.Inject;

View File

@@ -1,8 +1,8 @@
package fr.codeanddata.semrack.core.interceptors; package fr.codeanddata.semrack.core.interceptors;
import fr.codeanddata.semrack.core.WriteInterceptor; import fr.codeanddata.semrack.WriteInterceptor;
import fr.codeanddata.semrack.core.models.WriteContext; import fr.codeanddata.semrack.models.WriteContext;
import fr.codeanddata.semrack.core.models.Document; import fr.codeanddata.semrack.models.Document;
import fr.codeanddata.semrack.core.utils.UIDGenerator; import fr.codeanddata.semrack.core.utils.UIDGenerator;
import io.smallrye.mutiny.Uni; import io.smallrye.mutiny.Uni;
import jakarta.enterprise.context.ApplicationScoped; import jakarta.enterprise.context.ApplicationScoped;

View File

@@ -1,7 +1,7 @@
package fr.codeanddata.semrack.core.mappers; package fr.codeanddata.semrack.core.mappers;
import fr.codeanddata.semrack.core.models.Document; import fr.codeanddata.semrack.models.Document;
import fr.codeanddata.semrack.core.models.PushDocument; import fr.codeanddata.semrack.models.PushDocument;
import org.mapstruct.Mapper; import org.mapstruct.Mapper;
import org.mapstruct.Mapping; import org.mapstruct.Mapping;
import org.mapstruct.MappingConstants; import org.mapstruct.MappingConstants;

View File

@@ -1,10 +1,10 @@
package fr.codeanddata.semrack.core.repositories; package fr.codeanddata.semrack.core.repositories;
import fr.codeanddata.semrack.core.WriteInterceptor; import fr.codeanddata.semrack.WriteInterceptor;
import fr.codeanddata.semrack.core.exceptions.SemrackRuntimeException; import fr.codeanddata.semrack.exceptions.SemrackRuntimeException;
import fr.codeanddata.semrack.core.models.*;
import fr.codeanddata.semrack.core.storages.StorageProxy; import fr.codeanddata.semrack.core.storages.StorageProxy;
import fr.codeanddata.semrack.core.utils.UIDGenerator; import fr.codeanddata.semrack.core.utils.UIDGenerator;
import fr.codeanddata.semrack.models.*;
import io.smallrye.mutiny.Uni; import io.smallrye.mutiny.Uni;
import jakarta.enterprise.context.ApplicationScoped; import jakarta.enterprise.context.ApplicationScoped;
import jakarta.enterprise.inject.Any; import jakarta.enterprise.inject.Any;

View File

@@ -1,8 +1,8 @@
package fr.codeanddata.semrack.core.services; package fr.codeanddata.semrack.core.services;
import fr.codeanddata.semrack.core.Index; import fr.codeanddata.semrack.Index;
import fr.codeanddata.semrack.core.models.IndexSearchResult; import fr.codeanddata.semrack.models.IndexSearchResult;
import fr.codeanddata.semrack.core.models.Search; import fr.codeanddata.semrack.models.Search;
import io.smallrye.mutiny.Uni; import io.smallrye.mutiny.Uni;
import jakarta.enterprise.context.ApplicationScoped; import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject; import jakarta.inject.Inject;

View File

@@ -1,6 +1,6 @@
package fr.codeanddata.semrack.core.services; package fr.codeanddata.semrack.core.services;
import fr.codeanddata.semrack.core.LookupExpression; import fr.codeanddata.semrack.LookupExpression;
import io.quarkus.runtime.StartupEvent; import io.quarkus.runtime.StartupEvent;
import io.smallrye.common.annotation.Identifier; import io.smallrye.common.annotation.Identifier;
import jakarta.enterprise.context.ApplicationScoped; import jakarta.enterprise.context.ApplicationScoped;

View File

@@ -1,11 +1,11 @@
package fr.codeanddata.semrack.core.storages; package fr.codeanddata.semrack.core.storages;
import fr.codeanddata.semrack.core.Index; import fr.codeanddata.semrack.Index;
import fr.codeanddata.semrack.core.Storage; import fr.codeanddata.semrack.Storage;
import fr.codeanddata.semrack.core.models.Search; import fr.codeanddata.semrack.models.Search;
import fr.codeanddata.semrack.core.models.SearchResult; import fr.codeanddata.semrack.models.SearchResult;
import fr.codeanddata.semrack.core.models.Document; import fr.codeanddata.semrack.models.Document;
import fr.codeanddata.semrack.core.models.StorageGet; import fr.codeanddata.semrack.models.StorageGet;
import io.smallrye.mutiny.Uni; import io.smallrye.mutiny.Uni;
import jakarta.enterprise.context.ApplicationScoped; import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject; import jakarta.inject.Inject;

View File

@@ -2,8 +2,8 @@ package fr.codeanddata.semrack.core.utils;
import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import fr.codeanddata.semrack.core.models.TraverserPath; import fr.codeanddata.semrack.enums.PathTypes;
import io.vertx.core.json.Json; import fr.codeanddata.semrack.models.TraverserPath;
import jakarta.enterprise.context.ApplicationScoped; import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject; import jakarta.inject.Inject;
@@ -21,15 +21,6 @@ public class Traverser implements Function<Object, List<TraverserPath>> {
return parse("", o); return parse("", o);
} }
public enum PathTypes {
UNKNOWN,
STRING,
NUMBER,
BOOLEAN,
LIST,
OBJECT
}
List<TraverserPath> parse(String basePath, Object data) { List<TraverserPath> parse(String basePath, Object data) {
final List<TraverserPath> paths = new ArrayList<>(); final List<TraverserPath> paths = new ArrayList<>();

View File

@@ -1,6 +1,6 @@
package fr.codeanddata.semrack.core.utils; package fr.codeanddata.semrack.core.utils;
import fr.codeanddata.semrack.core.models.Document; import fr.codeanddata.semrack.models.Document;
import jakarta.enterprise.context.ApplicationScoped; import jakarta.enterprise.context.ApplicationScoped;
import org.apache.commons.codec.digest.DigestUtils; import org.apache.commons.codec.digest.DigestUtils;

View File

@@ -16,6 +16,10 @@
<groupId>io.quarkus</groupId> <groupId>io.quarkus</groupId>
<artifactId>quarkus-arc</artifactId> <artifactId>quarkus-arc</artifactId>
</dependency> </dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack</artifactId>
</dependency>
<dependency> <dependency>
<groupId>fr.codeanddata.semrack</groupId> <groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-core</artifactId> <artifactId>semrack-core</artifactId>

View File

@@ -1,9 +1,11 @@
package fr.codeanddata.semrack.core; package fr.codeanddata.semrack.core;
import fr.codeanddata.semrack.core.models.IndexSearchResult; import fr.codeanddata.semrack.Index;
import fr.codeanddata.semrack.core.models.Search; import fr.codeanddata.semrack.Storage;
import fr.codeanddata.semrack.core.models.Document; import fr.codeanddata.semrack.models.IndexSearchResult;
import fr.codeanddata.semrack.core.models.StorageGet; import fr.codeanddata.semrack.models.Search;
import fr.codeanddata.semrack.models.Document;
import fr.codeanddata.semrack.models.StorageGet;
import io.quarkus.arc.DefaultBean; import io.quarkus.arc.DefaultBean;
import io.smallrye.mutiny.Uni; import io.smallrye.mutiny.Uni;
import jakarta.annotation.Priority; import jakarta.annotation.Priority;

View File

@@ -1,6 +1,7 @@
package fr.codeanddata.semrack.core.utils; package fr.codeanddata.semrack.core.utils;
import fr.codeanddata.semrack.core.models.TraverserPath; import fr.codeanddata.semrack.enums.PathTypes;
import fr.codeanddata.semrack.models.TraverserPath;
import io.quarkus.test.junit.QuarkusTest; import io.quarkus.test.junit.QuarkusTest;
import jakarta.inject.Inject; import jakarta.inject.Inject;
import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Assertions;
@@ -33,16 +34,16 @@ public class TraverserTest {
Assertions.assertEquals(14, paths.size()); Assertions.assertEquals(14, paths.size());
List<List<?>> expectations = List.of( List<List<?>> expectations = List.of(
Arrays.asList(".user", null, Traverser.PathTypes.OBJECT), Arrays.asList(".user", null, PathTypes.OBJECT),
Arrays.asList(".user.age", 14, Traverser.PathTypes.NUMBER), Arrays.asList(".user.age", 14, PathTypes.NUMBER),
Arrays.asList(".user.family[0].age", 38, Traverser.PathTypes.NUMBER), Arrays.asList(".user.family[0].age", 38, PathTypes.NUMBER),
Arrays.asList(".user.family[0].isAdult", true, Traverser.PathTypes.BOOLEAN), Arrays.asList(".user.family[0].isAdult", true, PathTypes.BOOLEAN),
Arrays.asList(".user.family[0].name", "mom", Traverser.PathTypes.STRING), Arrays.asList(".user.family[0].name", "mom", PathTypes.STRING),
Arrays.asList(".user.family[1].age", 6, Traverser.PathTypes.NUMBER), Arrays.asList(".user.family[1].age", 6, PathTypes.NUMBER),
Arrays.asList(".user.family[1].isAdult", false, Traverser.PathTypes.BOOLEAN), Arrays.asList(".user.family[1].isAdult", false, PathTypes.BOOLEAN),
Arrays.asList(".user.family[1].name", "bro", Traverser.PathTypes.STRING), Arrays.asList(".user.family[1].name", "bro", PathTypes.STRING),
Arrays.asList(".user.isAdult", false, Traverser.PathTypes.BOOLEAN), Arrays.asList(".user.isAdult", false, PathTypes.BOOLEAN),
Arrays.asList(".user.name", "bob", Traverser.PathTypes.STRING) Arrays.asList(".user.name", "bob", PathTypes.STRING)
); );
for (List<?> expectation : expectations) { for (List<?> expectation : expectations) {

View File

@@ -54,6 +54,7 @@
<dependency> <dependency>
<groupId>fr.codeanddata.semrack</groupId> <groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-core-testing</artifactId> <artifactId>semrack-core-testing</artifactId>
<scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@@ -4,9 +4,9 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>fr.codeanddata.semrack</groupId> <groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-parent</artifactId> <artifactId>semrack-bom</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath> <relativePath>../../bom/pom.xml</relativePath>
</parent> </parent>
<artifactId>semrack-index-postgres-parent</artifactId> <artifactId>semrack-index-postgres-parent</artifactId>
<name>Semrack Index Postgres - Parent</name> <name>Semrack Index Postgres - Parent</name>

View File

@@ -1,13 +1,13 @@
package fr.codeanddata.semrack.index.postgres; package fr.codeanddata.semrack.index.postgres;
import fr.codeanddata.semrack.core.Index; import fr.codeanddata.semrack.Index;
import fr.codeanddata.semrack.core.Storage; import fr.codeanddata.semrack.Storage;
import fr.codeanddata.semrack.core.models.*;
import fr.codeanddata.semrack.core.services.LookupService; import fr.codeanddata.semrack.core.services.LookupService;
import fr.codeanddata.semrack.core.utils.Traverser; import fr.codeanddata.semrack.core.utils.Traverser;
import fr.codeanddata.semrack.index.postgres.dtos.IndexEntry; import fr.codeanddata.semrack.index.postgres.dtos.IndexEntry;
import fr.codeanddata.semrack.index.postgres.entities.SemrackIndexEntity; import fr.codeanddata.semrack.index.postgres.entities.SemrackIndexEntity;
import fr.codeanddata.semrack.index.postgres.repositories.SemrackIndexRepository; import fr.codeanddata.semrack.index.postgres.repositories.SemrackIndexRepository;
import fr.codeanddata.semrack.models.*;
import io.quarkus.hibernate.reactive.panache.PanacheRepository; import io.quarkus.hibernate.reactive.panache.PanacheRepository;
import io.quarkus.hibernate.reactive.panache.common.WithSession; import io.quarkus.hibernate.reactive.panache.common.WithSession;
import io.quarkus.hibernate.reactive.panache.common.WithTransaction; import io.quarkus.hibernate.reactive.panache.common.WithTransaction;

View File

@@ -1,6 +1,6 @@
package fr.codeanddata.semrack.index.postgres.dtos; package fr.codeanddata.semrack.index.postgres.dtos;
import fr.codeanddata.semrack.core.utils.Traverser; import fr.codeanddata.semrack.enums.PathTypes;
import lombok.*; import lombok.*;
@Getter @Getter
@@ -9,6 +9,6 @@ import lombok.*;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
public class IndexEntry { public class IndexEntry {
Traverser.PathTypes type; PathTypes type;
Object value; Object value;
} }

View File

@@ -2,7 +2,7 @@ package fr.codeanddata.semrack.index.postgres.operators;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import fr.codeanddata.semrack.core.exceptions.SemrackRuntimeException; import fr.codeanddata.semrack.exceptions.SemrackRuntimeException;
import fr.codeanddata.semrack.index.postgres.EqualLookupParams; import fr.codeanddata.semrack.index.postgres.EqualLookupParams;
import io.smallrye.common.annotation.Identifier; import io.smallrye.common.annotation.Identifier;
import jakarta.enterprise.context.ApplicationScoped; import jakarta.enterprise.context.ApplicationScoped;

View File

@@ -2,7 +2,7 @@ package fr.codeanddata.semrack.index.postgres.operators;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import fr.codeanddata.semrack.core.exceptions.SemrackRuntimeException; import fr.codeanddata.semrack.exceptions.SemrackRuntimeException;
import fr.codeanddata.semrack.index.postgres.InLookupParams; import fr.codeanddata.semrack.index.postgres.InLookupParams;
import io.smallrye.common.annotation.Identifier; import io.smallrye.common.annotation.Identifier;
import jakarta.enterprise.context.ApplicationScoped; import jakarta.enterprise.context.ApplicationScoped;

View File

@@ -1,6 +1,6 @@
package fr.codeanddata.semrack.index.postgres.operators; package fr.codeanddata.semrack.index.postgres.operators;
import fr.codeanddata.semrack.core.LookupExpression; import fr.codeanddata.semrack.LookupExpression;
public interface JpaLookupExpression<T> extends LookupExpression<T> { public interface JpaLookupExpression<T> extends LookupExpression<T> {
} }

View File

@@ -0,0 +1,72 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-rest-client-parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>semrack-rest-client-deployment</artifactId>
<name>Semrack Rest Client - Deployment</name>
<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-arc-deployment</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-rest-client-deployment</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-rest-client-jackson-deployment</artifactId>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-rest-client</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit-internal</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit-mockito</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-core-testing</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-extension-processor</artifactId>
<version>${quarkus.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,14 @@
package fr.codeanddata.semrack.rest.client.deployment;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;
class SemrackRestClientProcessor {
private static final String FEATURE = "semrack-rest-client";
@BuildStep
FeatureBuildItem feature() {
return new FeatureBuildItem(FEATURE);
}
}

View File

@@ -0,0 +1,23 @@
package fr.codeanddata.semrack.rest.client.test;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import io.quarkus.test.QuarkusDevModeTest;
public class SemrackRestClientDevModeTest {
// Start hot reload (DevMode) test with your extension loaded
@RegisterExtension
static final QuarkusDevModeTest devModeTest = new QuarkusDevModeTest()
.setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class));
@Test
public void writeYourOwnDevModeTest() {
// Write your dev mode tests here - see the testing extension guide https://quarkus.io/guides/writing-extensions#testing-hot-reload for more information
Assertions.assertTrue(true, "Add dev mode assertions to " + getClass().getName());
}
}

View File

@@ -0,0 +1,28 @@
package fr.codeanddata.semrack.rest.client.test;
import fr.codeanddata.semrack.rest.client.runtime.SemrackRestClient;
import io.quarkus.test.QuarkusUnitTest;
import org.eclipse.microprofile.rest.client.inject.RestClient;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
public class SemrackRestClientTest {
@RestClient
SemrackRestClient restClient;
// Start unit test with your extension loaded
@RegisterExtension
static final QuarkusUnitTest unitTest = new QuarkusUnitTest()
.setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class));
@Test
public void writeYourOwnUnitTest() {
// Write your unit tests here - see the testing extension guide https://quarkus.io/guides/writing-extensions#testing-extensions for more information
Assertions.assertTrue(true, "Add some assertions to " + getClass().getName());
Assertions.assertNotNull(restClient);
}
}

View File

@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-rest-client-parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<artifactId>semrack-rest-client-integration-tests</artifactId>
<name>Semrack Rest Client - Integration Tests</name>
<properties>
<skipITs>true</skipITs>
</properties>
<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-rest</artifactId>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-rest-client</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<systemPropertyVariables>
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<maven.home>${maven.home}</maven.home>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>native-image</id>
<activation>
<property>
<name>native</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>${native.surefire.skip}</skipTests>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<quarkus.package.jar.enabled>false</quarkus.package.jar.enabled>
<skipITs>false</skipITs>
<quarkus.native.enabled>true</quarkus.native.enabled>
</properties>
</profile>
</profiles>
</project>

View File

@@ -0,0 +1,32 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package fr.codeanddata.semrack.rest.client.it;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
@Path("/semrack-rest-client")
@ApplicationScoped
public class SemrackRestClientResource {
// add some rest methods here
@GET
public String hello() {
return "Hello semrack-rest-client";
}
}

View File

@@ -0,0 +1,7 @@
package fr.codeanddata.semrack.rest.client.it;
import io.quarkus.test.junit.QuarkusIntegrationTest;
@QuarkusIntegrationTest
public class SemrackRestClientResourceIT extends SemrackRestClientResourceTest {
}

View File

@@ -0,0 +1,21 @@
package fr.codeanddata.semrack.rest.client.it;
import static io.restassured.RestAssured.given;
import static org.hamcrest.Matchers.is;
import org.junit.jupiter.api.Test;
import io.quarkus.test.junit.QuarkusTest;
@QuarkusTest
public class SemrackRestClientResourceTest {
@Test
public void testHelloEndpoint() {
given()
.when().get("/semrack-rest-client")
.then()
.statusCode(200)
.body(is("Hello semrack-rest-client"));
}
}

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-bom</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../../bom/pom.xml</relativePath>
</parent>
<packaging>pom</packaging>
<artifactId>semrack-rest-client-parent</artifactId>
<name>Semrack Rest Client - Parent</name>
<modules>
<module>deployment</module>
<module>runtime</module>
</modules>
</project>

View File

@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-rest-client-parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>semrack-rest-client</artifactId>
<name>Semrack Rest Client - Runtime</name>
<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-arc</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-rest-client</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-rest-client-jackson</artifactId>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-extension-maven-plugin</artifactId>
<version>${quarkus.version}</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>extension-descriptor</goal>
</goals>
<configuration>
<deployment>${project.groupId}:${project.artifactId}-deployment:${project.version}</deployment>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-extension-processor</artifactId>
</path>
</annotationProcessorPaths>
<annotationProcessorPathsUseDepMgmt>true</annotationProcessorPathsUseDepMgmt>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,40 @@
package fr.codeanddata.semrack.rest.client.runtime;
import fr.codeanddata.semrack.models.*;
import io.smallrye.mutiny.Uni;
import jakarta.ws.rs.*;
import jakarta.ws.rs.core.MediaType;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
import org.jboss.resteasy.reactive.RestPath;
@Path("/documents")
@RegisterRestClient(configKey="semrack-api")
public interface SemrackRestClient {
@POST
@Consumes("application/json")
@Produces("application/json")
Uni<Document> pushDocument(PushDocument semrackDocument);
@POST
@Path("/search")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
Uni<SearchResult> searchDocument(Search query);
@GET
@Path("{uid}")
@Produces(MediaType.APPLICATION_JSON)
Uni<Document> getDocument(@RestPath String uid);
@POST
@Path("{uid}")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
Uni<Document> getDocument(@RestPath String uid, StorageGet request);
@POST
@Path("{uid}/update")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
Uni<Document> updateDocument(@RestPath String uid, PushDocument semrackDocument);
}

View File

@@ -0,0 +1,9 @@
name: Semrack Rest Client
#description: Do something useful.
metadata:
# keywords:
# - semrack-rest-client
# guide: ... # To create and publish this guide, see https://github.com/quarkiverse/quarkiverse/wiki#documenting-your-extension
# categories:
# - "miscellaneous"
# status: "preview"

View File

@@ -0,0 +1,2 @@
semrack.rest.client.url=http://localhost:8080/semrack
quarkus.rest-client.semrack-api.url=semrack.rest.client.url

View File

@@ -1,6 +1,6 @@
package fr.codeanddata.semrack.storage.postgres.storage; package fr.codeanddata.semrack.storage.postgres.storage;
import fr.codeanddata.semrack.core.models.StorageGet; import fr.codeanddata.semrack.models.StorageGet;
import io.quarkus.hibernate.reactive.panache.Panache; import io.quarkus.hibernate.reactive.panache.Panache;
import io.quarkus.test.junit.QuarkusTest; import io.quarkus.test.junit.QuarkusTest;
import io.quarkus.test.vertx.RunOnVertxContext; import io.quarkus.test.vertx.RunOnVertxContext;

View File

@@ -4,9 +4,9 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>fr.codeanddata.semrack</groupId> <groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-parent</artifactId> <artifactId>semrack-bom</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath> <relativePath>../../bom/pom.xml</relativePath>
</parent> </parent>
<artifactId>semrack-storage-postgres-parent</artifactId> <artifactId>semrack-storage-postgres-parent</artifactId>
<name>Semrack Storage Postgres - Parent</name> <name>Semrack Storage Postgres - Parent</name>

View File

@@ -1,6 +1,6 @@
package fr.codeanddata.semrack.storage.postgres.entities; package fr.codeanddata.semrack.storage.postgres.entities;
import fr.codeanddata.semrack.core.models.Document; import fr.codeanddata.semrack.models.Document;
import io.quarkus.hibernate.reactive.panache.PanacheEntity; import io.quarkus.hibernate.reactive.panache.PanacheEntity;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;

View File

@@ -2,9 +2,9 @@ package fr.codeanddata.semrack.storage.postgres.storage;
import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import fr.codeanddata.semrack.core.Storage; import fr.codeanddata.semrack.Storage;
import fr.codeanddata.semrack.core.models.Document; import fr.codeanddata.semrack.models.Document;
import fr.codeanddata.semrack.core.models.StorageGet; import fr.codeanddata.semrack.models.StorageGet;
import fr.codeanddata.semrack.core.utils.UIDGenerator; import fr.codeanddata.semrack.core.utils.UIDGenerator;
import fr.codeanddata.semrack.storage.postgres.entities.SemrackDocumentEntity; import fr.codeanddata.semrack.storage.postgres.entities.SemrackDocumentEntity;
import io.quarkus.hibernate.reactive.panache.PanacheRepository; import io.quarkus.hibernate.reactive.panache.PanacheRepository;

147
pom.xml
View File

@@ -6,157 +6,18 @@
<artifactId>semrack-parent</artifactId> <artifactId>semrack-parent</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>Parent</name>
<modules> <modules>
<module>bom</module>
<module>domain</module>
<module>modules/semrack-core</module> <module>modules/semrack-core</module>
<module>modules/semrack-index-postgres</module> <module>modules/semrack-index-postgres</module>
<module>modules/semrack-storage-postgres</module> <module>modules/semrack-storage-postgres</module>
<module>modules/semrack-api-rest</module> <module>modules/semrack-api-rest</module>
<!-- <module>integration/semrack-integration</module>--> <module>modules/semrack-rest-client</module>
</modules> </modules>
<properties>
<!-- Quarkus project basics -->
<compiler-plugin.version>3.14.0</compiler-plugin.version>
<maven.compiler.release>21</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
<quarkus.platform.version>${quarkus.version}</quarkus.platform.version>
<skipITs>true</skipITs>
<surefire-plugin.version>3.5.3</surefire-plugin.version>
<!-- Other properties -->
<commons-codec.version>1.16.0</commons-codec.version>
<jsonpath.version>2.9.0</jsonpath.version>
<lombok.version>1.18.38</lombok.version>
<org.mapstruct.version>1.6.3</org.mapstruct.version>
<quarkus.version>3.29.4</quarkus.version>
<semrack.version>${project.version}</semrack.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>${quarkus.platform.group-id}</groupId>
<artifactId>${quarkus.platform.artifact-id}</artifactId>
<version>${quarkus.platform.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>${commons-codec.version}</version>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
<version>${org.mapstruct.version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
<!-- SEMRACK -->
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-core</artifactId>
<version>${semrack.version}</version>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-core-testing</artifactId>
<version>${semrack.version}</version>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-core-deployment</artifactId>
<version>${semrack.version}</version>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-index-postgres</artifactId>
<version>${semrack.version}</version>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-index-postgres-deployment</artifactId>
<version>${semrack.version}</version>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-storage-postgres</artifactId>
<version>${semrack.version}</version>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-storage-postgres-deployment</artifactId>
<version>${semrack.version}</version>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-api-rest</artifactId>
<version>${semrack.version}</version>
</dependency>
<dependency>
<groupId>fr.codeanddata.semrack</groupId>
<artifactId>semrack-api-rest-deployment</artifactId>
<version>${semrack.version}</version>
</dependency>
<dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
<version>${jsonpath.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${quarkus.version}</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire-plugin.version}</version>
<configuration>
<systemPropertyVariables>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<maven.home>${maven.home}</maven.home>
<maven.repo>${settings.localRepository}</maven.repo>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${failsafe-plugin.version}</version>
<configuration>
<systemPropertyVariables>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<maven.home>${maven.home}</maven.home>
<maven.repo>${settings.localRepository}</maven.repo>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler-plugin.version}</version>
<configuration>
<parameters>true</parameters>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<repositories> <repositories>
<repository> <repository>
<id>gitea</id> <id>gitea</id>