diff options
Diffstat (limited to 'aai-resources/pom.xml')
-rw-r--r-- | aai-resources/pom.xml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/aai-resources/pom.xml b/aai-resources/pom.xml index 908e1ee4..2f8736cc 100644 --- a/aai-resources/pom.xml +++ b/aai-resources/pom.xml @@ -82,7 +82,9 @@ <micrometer-core.version>1.6.6</micrometer-core.version> <micrometer-registry-prometheus.version>1.6.6</micrometer-registry-prometheus.version> <micrometer-jersey2>1.6.6</micrometer-jersey2> + <testcontainers.version>1.6.1</testcontainers.version> <!-- Setting some default value to not complain by editor but it will be overridden by gmaven plugin --> + <build.helper-maven-plugin.version>3.2.0</build.helper-maven-plugin.version> </properties> <profiles> <!-- Docker profile to be used for building docker image and pushing to nexus --> @@ -667,6 +669,18 @@ <groupId>org.keycloak</groupId> <artifactId>keycloak-spring-boot-starter</artifactId> </dependency> + <dependency> + <groupId>com.github.dasniko</groupId> + <artifactId>testcontainers-keycloak</artifactId> + <version>${testcontainers.version}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.keycloak</groupId> + <artifactId>keycloak-admin-client</artifactId> + <version>${keycloak.version}</version> + <scope>test</scope> + </dependency> </dependencies> <dependencyManagement> <dependencies> @@ -923,6 +937,7 @@ <configuration> <mainClass>${start-class}</mainClass> <layout>ZIP</layout> + <classifier>exec</classifier> </configuration> <executions> <execution> @@ -941,6 +956,39 @@ </excludes> </configuration> </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <version>${build.helper-maven-plugin.version}</version> + <executions> + <execution> + <id>add-integration-test-source</id> + <phase>generate-test-sources</phase> + <goals> + <goal>add-test-source</goal> + </goals> + <configuration> + <sources> + <source>src/it/java</source> + </sources> + </configuration> + </execution> + <execution> + <id>add-integration-test-resource</id> + <phase>generate-test-resources</phase> + <goals> + <goal>add-test-resource</goal> + </goals> + <configuration> + <resources> + <resource> + <directory>src/it/resources</directory> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> <reporting> |