|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | + <parent> |
| 6 | + <artifactId>quarkus-integration-tests-parent</artifactId> |
| 7 | + <groupId>io.quarkus</groupId> |
| 8 | + <version>999-SNAPSHOT</version> |
| 9 | + </parent> |
| 10 | + <modelVersion>4.0.0</modelVersion> |
| 11 | + |
| 12 | + <artifactId>quarkus-integration-test-hibernate-reactive-oracle</artifactId> |
| 13 | + <name>Quarkus - Integration Tests - Hibernate Reactive - Oracle</name> |
| 14 | + <description>Hibernate Reactive related tests running with the Oracle database</description> |
| 15 | + |
| 16 | + <properties> |
| 17 | + <reactive-oracle.url>vertx-reactive:oracle:thin:@localhost:1520/hibernate_orm_test</reactive-oracle.url> |
| 18 | + </properties> |
| 19 | + |
| 20 | + <dependencies> |
| 21 | + <dependency> |
| 22 | + <groupId>io.quarkus</groupId> |
| 23 | + <artifactId>quarkus-hibernate-reactive</artifactId> |
| 24 | + </dependency> |
| 25 | + <dependency> |
| 26 | + <groupId>io.quarkus</groupId> |
| 27 | + <artifactId>quarkus-reactive-oracle-client</artifactId> |
| 28 | + </dependency> |
| 29 | + <dependency> |
| 30 | + <groupId>io.quarkus</groupId> |
| 31 | + <artifactId>quarkus-rest-jsonb</artifactId> |
| 32 | + </dependency> |
| 33 | + <dependency> |
| 34 | + <groupId>io.quarkus</groupId> |
| 35 | + <artifactId>quarkus-elytron-security-properties-file</artifactId> |
| 36 | + </dependency> |
| 37 | + |
| 38 | + <!-- test dependencies --> |
| 39 | + <dependency> |
| 40 | + <groupId>io.quarkus</groupId> |
| 41 | + <artifactId>quarkus-junit5</artifactId> |
| 42 | + <scope>test</scope> |
| 43 | + </dependency> |
| 44 | + <dependency> |
| 45 | + <groupId>io.rest-assured</groupId> |
| 46 | + <artifactId>rest-assured</artifactId> |
| 47 | + <scope>test</scope> |
| 48 | + </dependency> |
| 49 | + |
| 50 | + <!-- Minimal test dependencies to *-deployment artifacts for consistent build order --> |
| 51 | + <dependency> |
| 52 | + <groupId>io.quarkus</groupId> |
| 53 | + <artifactId>quarkus-hibernate-reactive-deployment</artifactId> |
| 54 | + <version>${project.version}</version> |
| 55 | + <type>pom</type> |
| 56 | + <scope>test</scope> |
| 57 | + <exclusions> |
| 58 | + <exclusion> |
| 59 | + <groupId>*</groupId> |
| 60 | + <artifactId>*</artifactId> |
| 61 | + </exclusion> |
| 62 | + </exclusions> |
| 63 | + </dependency> |
| 64 | + <dependency> |
| 65 | + <groupId>io.quarkus</groupId> |
| 66 | + <artifactId>quarkus-reactive-oracle-client-deployment</artifactId> |
| 67 | + <version>${project.version}</version> |
| 68 | + <type>pom</type> |
| 69 | + <scope>test</scope> |
| 70 | + <exclusions> |
| 71 | + <exclusion> |
| 72 | + <groupId>*</groupId> |
| 73 | + <artifactId>*</artifactId> |
| 74 | + </exclusion> |
| 75 | + </exclusions> |
| 76 | + </dependency> |
| 77 | + <dependency> |
| 78 | + <groupId>io.quarkus</groupId> |
| 79 | + <artifactId>quarkus-rest-jsonb-deployment</artifactId> |
| 80 | + <version>${project.version}</version> |
| 81 | + <type>pom</type> |
| 82 | + <scope>test</scope> |
| 83 | + <exclusions> |
| 84 | + <exclusion> |
| 85 | + <groupId>*</groupId> |
| 86 | + <artifactId>*</artifactId> |
| 87 | + </exclusion> |
| 88 | + </exclusions> |
| 89 | + </dependency> |
| 90 | + <dependency> |
| 91 | + <groupId>io.quarkus</groupId> |
| 92 | + <artifactId>quarkus-elytron-security-properties-file-deployment</artifactId> |
| 93 | + <version>${project.version}</version> |
| 94 | + <type>pom</type> |
| 95 | + <scope>test</scope> |
| 96 | + <exclusions> |
| 97 | + <exclusion> |
| 98 | + <groupId>*</groupId> |
| 99 | + <artifactId>*</artifactId> |
| 100 | + </exclusion> |
| 101 | + </exclusions> |
| 102 | + </dependency> |
| 103 | + </dependencies> |
| 104 | + |
| 105 | + <build> |
| 106 | + <resources> |
| 107 | + <resource> |
| 108 | + <directory>src/main/resources</directory> |
| 109 | + <filtering>true</filtering> |
| 110 | + </resource> |
| 111 | + </resources> |
| 112 | + <plugins> |
| 113 | + <plugin> |
| 114 | + <artifactId>maven-surefire-plugin</artifactId> |
| 115 | + <configuration> |
| 116 | + <skip>true</skip> |
| 117 | + <systemPropertyVariables> |
| 118 | + <org.hibernate.reactive.common.InternalStateAssertions.ENFORCE>true |
| 119 | + </org.hibernate.reactive.common.InternalStateAssertions.ENFORCE> |
| 120 | + </systemPropertyVariables> |
| 121 | + </configuration> |
| 122 | + </plugin> |
| 123 | + <plugin> |
| 124 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 125 | + <configuration> |
| 126 | + <skip>true</skip> |
| 127 | + <systemPropertyVariables> |
| 128 | + <org.hibernate.reactive.common.InternalStateAssertions.ENFORCE>true |
| 129 | + </org.hibernate.reactive.common.InternalStateAssertions.ENFORCE> |
| 130 | + </systemPropertyVariables> |
| 131 | + </configuration> |
| 132 | + </plugin> |
| 133 | + <plugin> |
| 134 | + <groupId>io.quarkus</groupId> |
| 135 | + <artifactId>quarkus-maven-plugin</artifactId> |
| 136 | + <executions> |
| 137 | + <execution> |
| 138 | + <goals> |
| 139 | + <goal>build</goal> |
| 140 | + </goals> |
| 141 | + </execution> |
| 142 | + </executions> |
| 143 | + </plugin> |
| 144 | + </plugins> |
| 145 | + </build> |
| 146 | + |
| 147 | + <profiles> |
| 148 | + <profile> |
| 149 | + <id>test-oracle</id> |
| 150 | + <activation> |
| 151 | + <property> |
| 152 | + <name>test-containers</name> |
| 153 | + </property> |
| 154 | + </activation> |
| 155 | + <build> |
| 156 | + <plugins> |
| 157 | + <plugin> |
| 158 | + <artifactId>maven-surefire-plugin</artifactId> |
| 159 | + <configuration> |
| 160 | + <skip>false</skip> |
| 161 | + </configuration> |
| 162 | + </plugin> |
| 163 | + <plugin> |
| 164 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 165 | + <configuration> |
| 166 | + <skip>false</skip> |
| 167 | + </configuration> |
| 168 | + </plugin> |
| 169 | + </plugins> |
| 170 | + </build> |
| 171 | + </profile> |
| 172 | + |
| 173 | + <profile> |
| 174 | + <id>docker-oracle</id> |
| 175 | + <activation> |
| 176 | + <property> |
| 177 | + <name>start-containers</name> |
| 178 | + </property> |
| 179 | + </activation> |
| 180 | + <build> |
| 181 | + <plugins> |
| 182 | + <plugin> |
| 183 | + <groupId>io.fabric8</groupId> |
| 184 | + <artifactId>docker-maven-plugin</artifactId> |
| 185 | + <configuration> |
| 186 | + <images> |
| 187 | + <image> |
| 188 | + <name>${oracle.image}</name> |
| 189 | + <alias>oracle</alias> |
| 190 | + <run> |
| 191 | + <env> |
| 192 | + <ORACLE_DATABASE>hibernate_orm_test</ORACLE_DATABASE> |
| 193 | + <ORACLE_PASSWORD>hibernate_orm_test</ORACLE_PASSWORD> |
| 194 | + <APP_USER>hibernate_orm_test</APP_USER> |
| 195 | + <APP_USER_PASSWORD>hibernate_orm_test</APP_USER_PASSWORD> |
| 196 | + </env> |
| 197 | + <ports> |
| 198 | + <port>1520:1521</port> |
| 199 | + </ports> |
| 200 | + <log> |
| 201 | + <prefix>ORACLE:</prefix> |
| 202 | + <date>default</date> |
| 203 | + <color>cyan</color> |
| 204 | + </log> |
| 205 | + </run> |
| 206 | + </image> |
| 207 | + </images> |
| 208 | + <!--Stops all postgres images currently running, not just those we just started. |
| 209 | + Useful to stop processes still running from a previously failed integration test run --> |
| 210 | + <allContainers>true</allContainers> |
| 211 | + </configuration> |
| 212 | + <executions> |
| 213 | + <execution> |
| 214 | + <id>docker-start</id> |
| 215 | + <phase>pre-integration-test</phase> |
| 216 | + <goals> |
| 217 | + <goal>stop</goal> |
| 218 | + <goal>build</goal> |
| 219 | + <goal>start</goal> |
| 220 | + </goals> |
| 221 | + </execution> |
| 222 | + <execution> |
| 223 | + <id>docker-stop</id> |
| 224 | + <phase>post-integration-test</phase> |
| 225 | + <goals> |
| 226 | + <goal>stop</goal> |
| 227 | + </goals> |
| 228 | + </execution> |
| 229 | + </executions> |
| 230 | + </plugin> |
| 231 | + <plugin> |
| 232 | + <groupId>org.codehaus.mojo</groupId> |
| 233 | + <artifactId>exec-maven-plugin</artifactId> |
| 234 | + <executions> |
| 235 | + <execution> |
| 236 | + <id>docker-prune</id> |
| 237 | + <phase>generate-resources</phase> |
| 238 | + <goals> |
| 239 | + <goal>exec</goal> |
| 240 | + </goals> |
| 241 | + <configuration> |
| 242 | + <executable>${docker-prune.location}</executable> |
| 243 | + </configuration> |
| 244 | + </execution> |
| 245 | + </executions> |
| 246 | + </plugin> |
| 247 | + </plugins> |
| 248 | + </build> |
| 249 | + </profile> |
| 250 | + </profiles> |
| 251 | + |
| 252 | + |
| 253 | +</project> |
0 commit comments