mirror of
https://github.com/jlengrand/quarkus.git
synced 2026-03-10 08:41:22 +00:00
224 lines
8.7 KiB
XML
224 lines
8.7 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">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<artifactId>quarkus-integration-tests-parent</artifactId>
|
|
<groupId>io.quarkus</groupId>
|
|
<version>999-SNAPSHOT</version>
|
|
<relativePath>../</relativePath>
|
|
</parent>
|
|
|
|
<artifactId>quarkus-integration-test-reactive-pg-client</artifactId>
|
|
|
|
<name>Quarkus - Integration Tests - Reactive Pg Client</name>
|
|
|
|
<properties>
|
|
<reactive-postgres.url>vertx-reactive:postgresql:///hibernate_orm_test</reactive-postgres.url>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-resteasy</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-reactive-pg-client</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>
|
|
</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-postgresql</id>
|
|
<activation>
|
|
<property>
|
|
<name>test-postgresql</name>
|
|
</property>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<skip>false</skip>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
<configuration>
|
|
<skip>false</skip>
|
|
</configuration>
|
|
</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>
|
|
<cleanupServer>true</cleanupServer>
|
|
<enableHttpUrlHandler>true</enableHttpUrlHandler>
|
|
<graalvmHome>${graalvmHome}</graalvmHome>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>docker-postgresql</id>
|
|
<activation>
|
|
<property>
|
|
<name>docker</name>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<reactive-postgres.url>vertx-reactive:postgresql://:5431/hibernate_orm_test</reactive-postgres.url>
|
|
</properties>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
<configuration>
|
|
<images>
|
|
<image>
|
|
<name>postgres:10.5</name>
|
|
<alias>postgresql</alias>
|
|
<run>
|
|
<env>
|
|
<POSTGRES_USER>hibernate_orm_test</POSTGRES_USER>
|
|
<POSTGRES_PASSWORD>hibernate_orm_test</POSTGRES_PASSWORD>
|
|
<POSTGRES_DB>hibernate_orm_test</POSTGRES_DB>
|
|
</env>
|
|
<ports>
|
|
<port>5431:5432</port>
|
|
</ports>
|
|
<wait>
|
|
<tcp>
|
|
<mode>mapped</mode>
|
|
<ports>
|
|
<port>5432</port>
|
|
</ports>
|
|
</tcp>
|
|
<time>10000</time>
|
|
</wait>
|
|
</run>
|
|
</image>
|
|
</images>
|
|
<!--Stops all postgres:10.5 images currently running, not just those we just started.
|
|
Useful to stop processes still running from a previously failed integration test run -->
|
|
<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>
|