mirror of
https://github.com/jlengrand/quarkus.git
synced 2026-03-10 08:41:22 +00:00
260 lines
10 KiB
XML
260 lines
10 KiB
XML
<?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">
|
|
<parent>
|
|
<artifactId>quarkus-integration-tests-parent</artifactId>
|
|
<groupId>io.quarkus</groupId>
|
|
<version>999-SNAPSHOT</version>
|
|
<relativePath>../</relativePath>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>quarkus-integration-test-oidc-code-flow</artifactId>
|
|
<name>Quarkus - Integration Tests - OpenID Connect Adapter Code Flow</name>
|
|
<description>Module that contains OpenID Connect Code Flow related tests</description>
|
|
|
|
<properties>
|
|
<keycloak.url>http://localhost:8180/auth</keycloak.url>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-oidc</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-resteasy-jackson</artifactId>
|
|
</dependency>
|
|
|
|
<!-- test dependencies -->
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-junit5</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.keycloak</groupId>
|
|
<artifactId>keycloak-adapter-core</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.keycloak</groupId>
|
|
<artifactId>keycloak-core</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.rest-assured</groupId>
|
|
<artifactId>rest-assured</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.sourceforge.htmlunit</groupId>
|
|
<artifactId>htmlunit</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
</resources>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-maven-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>build</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>test-keycloak</id>
|
|
<activation>
|
|
<property>
|
|
<name>test-keycloak</name>
|
|
</property>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<skip>false</skip>
|
|
<systemPropertyVariables>
|
|
<keycloak.url>${keycloak.url}</keycloak.url>
|
|
</systemPropertyVariables>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
<configuration>
|
|
<skip>false</skip>
|
|
<systemPropertyVariables>
|
|
<keycloak.url>${keycloak.url}</keycloak.url>
|
|
</systemPropertyVariables>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-maven-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>build</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>native-image</id>
|
|
<activation>
|
|
<property>
|
|
<name>native</name>
|
|
</property>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>integration-test</goal>
|
|
<goal>verify</goal>
|
|
</goals>
|
|
<configuration>
|
|
<systemProperties>
|
|
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
|
|
</systemProperties>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-maven-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>native-image</id>
|
|
<goals>
|
|
<goal>native-image</goal>
|
|
</goals>
|
|
<configuration>
|
|
<reportErrorsAtRuntime>false</reportErrorsAtRuntime>
|
|
<cleanupServer>true</cleanupServer>
|
|
<enableHttpUrlHandler>true</enableHttpUrlHandler>
|
|
<enableServer>false</enableServer>
|
|
<dumpProxies>false</dumpProxies>
|
|
<graalvmHome>${graalvmHome}</graalvmHome>
|
|
<debugBuildProcess>false</debugBuildProcess>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>docker-keycloak</id>
|
|
<activation>
|
|
<property>
|
|
<name>docker</name>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<keycloak.url>http://localhost:8180/auth</keycloak.url>
|
|
</properties>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
<configuration>
|
|
<images>
|
|
<image>
|
|
<name>${keycloak.docker.image}</name>
|
|
<alias>quarkus-test-keycloak</alias>
|
|
<run>
|
|
<ports>
|
|
<port>8180:8080</port>
|
|
</ports>
|
|
<env>
|
|
<KEYCLOAK_USER>admin</KEYCLOAK_USER>
|
|
<KEYCLOAK_PASSWORD>admin</KEYCLOAK_PASSWORD>
|
|
</env>
|
|
<log>
|
|
<prefix>Keycloak:</prefix>
|
|
<date>default</date>
|
|
<color>cyan</color>
|
|
</log>
|
|
<wait>
|
|
<!-- good docs found at: http://dmp.fabric8.io/#build-healthcheck -->
|
|
<http>
|
|
<url>http://localhost:8180</url>
|
|
</http>
|
|
<time>100000</time>
|
|
</wait>
|
|
</run>
|
|
</image>
|
|
</images>
|
|
<allContainers>true</allContainers>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>docker-start</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>stop</goal>
|
|
<goal>start</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>docker-stop</id>
|
|
<phase>post-integration-test</phase>
|
|
<goals>
|
|
<goal>stop</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
</project>
|