From ab81ee26499cecfc1e9232df04646a7bad7bc0cc Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Fri, 17 Nov 2023 15:22:03 +0100 Subject: [PATCH] OZG-3532 OZG-4581 Fix warning from mapstruct --- pom.xml | 13 -------- run_local.sh | 2 +- user-manager-server/pom.xml | 64 +++++++++++++++++++++---------------- 3 files changed, 38 insertions(+), 41 deletions(-) diff --git a/pom.xml b/pom.xml index 67225ec7..48e4e433 100644 --- a/pom.xml +++ b/pom.xml @@ -220,17 +220,4 @@ </plugins> </pluginManagement> </build> - - <distributionManagement> - <repository> - <id>ozg-nexus</id> - <name>ozg-releases</name> - <url>https://nexus.ozg-sh.de/repository/ozg-releases/</url> - </repository> - <snapshotRepository> - <id>ozg-snapshots-nexus</id> - <name>ozg-snapshots</name> - <url>https://nexus.ozg-sh.de/repository/ozg-snapshots/</url> - </snapshotRepository> - </distributionManagement> </project> diff --git a/run_local.sh b/run_local.sh index 2115b363..aa82ca61 100755 --- a/run_local.sh +++ b/run_local.sh @@ -1,2 +1,2 @@ #!/usr/bin/env bash -./mvnw -f user-manager-server/pom.xml quarkus:dev -Dquarkus.profile=local,remotekc \ No newline at end of file +./mvnw -pl user-manager-server quarkus:dev -Dquarkus.profile=local,remotekc \ No newline at end of file diff --git a/user-manager-server/pom.xml b/user-manager-server/pom.xml index d188600a..2d8abe44 100644 --- a/user-manager-server/pom.xml +++ b/user-manager-server/pom.xml @@ -24,7 +24,8 @@ unter der Lizenz sind dem Lizenztext zu entnehmen. --> -<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"> +<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> @@ -249,32 +250,41 @@ <!-- Core plugins --> <plugin> <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <fork>true</fork> - <annotationProcessorPaths> - <path> - <groupId>org.projectlombok</groupId> - <artifactId>lombok</artifactId> - <version>${lombok.version}</version> - </path> - <path> - <groupId>org.mapstruct</groupId> - <artifactId>mapstruct-processor</artifactId> - <version>${mapstruct.version}</version> - </path> - <!-- other annotation processors --> - </annotationProcessorPaths> - <showWarnings>true</showWarnings> - <compilerArgs> - <arg>-parameters</arg> - <compilerArg> - -Amapstruct.defaultComponentModel=jakarta - </compilerArg> - <compilerArg> - -Amapstruct.unmappedTargetPolicy=WARN - </compilerArg> - </compilerArgs> - </configuration> + <executions> + <execution> + <id>default-compile1</id> + <phase>compile</phase> + <goals> + <goal>compile</goal> + </goals> + <configuration> + <fork>true</fork> + <annotationProcessorPaths> + <path> + <groupId>org.projectlombok</groupId> + <artifactId>lombok</artifactId> + <version>${lombok.version}</version> + </path> + <path> + <groupId>org.mapstruct</groupId> + <artifactId>mapstruct-processor</artifactId> + <version>${mapstruct.version}</version> + </path> + <!-- other annotation processors --> + </annotationProcessorPaths> + <showWarnings>true</showWarnings> + <compilerArgs> + <arg>-parameters</arg> + <compilerArg> + -Amapstruct.defaultComponentModel=jakarta + </compilerArg> + <compilerArg> + -Amapstruct.unmappedTargetPolicy=WARN + </compilerArg> + </compilerArgs> + </configuration> + </execution> + </executions> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> -- GitLab