quarkus-hibernate-reactive-rest-data-panache-deployment
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>io.quarkus</groupId> <artifactId>quarkus-hibernate-reactive-rest-data-panache-deployment</artifactId> <version>3.21.2</version> </dependency>
<?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>io.quarkus</groupId> <artifactId>quarkus-hibernate-reactive-rest-data-panache-parent</artifactId> <version>3.21.2</version> </parent> <artifactId>quarkus-hibernate-reactive-rest-data-panache-deployment</artifactId> <name>Quarkus - Hibernate Reactive REST data with Panache - Deployment</name> <properties> <postgres.reactive.url>vertx-reactive:postgresql://localhost:5431/hibernate_orm_test</postgres.reactive.url> </properties> <dependencies> <dependency> <groupId>io.quarkus</groupId> <artifactId>quarkus-rest-data-panache-deployment</artifactId> </dependency> <dependency> <groupId>io.quarkus</groupId> <artifactId>quarkus-hibernate-reactive-rest-data-panache</artifactId> </dependency> <dependency> <groupId>io.quarkus</groupId> <artifactId>quarkus-hibernate-reactive-panache-deployment</artifactId> </dependency> <dependency> <groupId>io.quarkus</groupId> <artifactId>quarkus-rest-deployment</artifactId> </dependency> <dependency> <groupId>io.quarkus</groupId> <artifactId>quarkus-rest-links-deployment</artifactId> </dependency> <dependency> <groupId>io.quarkus</groupId> <artifactId>quarkus-junit5-internal</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>io.quarkus</groupId> <artifactId>quarkus-reactive-pg-client-deployment</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>io.quarkus</groupId> <artifactId>quarkus-rest-jsonb-deployment</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>io.rest-assured</groupId> <artifactId>rest-assured</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.assertj</groupId> <artifactId>assertj-core</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <testResources> <testResource> <directory>src/test/resources</directory> <filtering>true</filtering> </testResource> </testResources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <annotationProcessorPaths> <path> <groupId>io.quarkus</groupId> <artifactId>quarkus-extension-processor</artifactId> <version>${project.version}</version> </path> </annotationProcessorPaths> </configuration> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin> </plugins> </build> <profiles> <profile> <id>test-postgresql</id> <activation> <property> <name>test-containers</name> </property> </activation> <build> <plugins> <plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>false</skip> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>docker-postgresql</id> <activation> <property> <name>start-containers</name> </property> </activation> <build> <plugins> <plugin> <groupId>io.fabric8</groupId> <artifactId>docker-maven-plugin</artifactId> <configuration> <images> <image> <name>${postgres.image}</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> <!-- For some reason, Postgres will tell us it's ready *twice*, and that's the truth the second time only. See https://github.com/fabric8io/docker-maven-plugin/issues/628 See also how the condition is configured in testcontainers: https://github.com/testcontainers/testcontainers-java/blob/c64aab9fd5e3a452ee0faf793560327eb4da9841/modules/postgresql/src/main/java/org/testcontainers/containers/PostgreSQLContainer.java#L52-L55 --> <time>20000</time> <log>(?s)ready to accept connections.*ready to accept connections</log> </wait> </run> </image> </images> <!--Stops all postgres 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>process-test-classes</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> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <executions> <execution> <id>docker-prune</id> <phase>generate-resources</phase> <goals> <goal>exec</goal> </goals> <configuration> <executable>${docker-prune.location}</executable> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>