| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <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>org.apache.camel.quarkus</groupId> |
| <artifactId>camel-quarkus-integration-tests</artifactId> |
| <version>1.0.0-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>camel-quarkus-integration-test-fhir</artifactId> |
| <name>Camel Quarkus :: Integration Tests :: FHIR</name> |
| <description>Integration tests for Camel Quarkus FHIR extension</description> |
| |
| <properties> |
| <!-- By default hapi-fhir's http client will not be tested. Activate the fhir-it Maven profile to do so --> |
| <fhir.http.client>false</fhir.http.client> |
| </properties> |
| |
| <dependencyManagement> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.camel.quarkus</groupId> |
| <artifactId>camel-quarkus-bom-deployment</artifactId> |
| <version>${project.version}</version> |
| <type>pom</type> |
| <scope>import</scope> |
| </dependency> |
| </dependencies> |
| </dependencyManagement> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.camel.quarkus</groupId> |
| <artifactId>camel-quarkus-fhir</artifactId> |
| <exclusions> |
| <exclusion> |
| <!-- Pulled in from junit5 --> |
| <groupId>org.slf4j</groupId> |
| <artifactId>jcl-over-slf4j</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>io.quarkus</groupId> |
| <artifactId>quarkus-resteasy-jsonb</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel.quarkus</groupId> |
| <artifactId>camel-quarkus-direct</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> |
| <groupId>io.quarkus</groupId> |
| <artifactId>quarkus-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>build</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <excludes> |
| <exclude>**/FhirClientIntegrationTest.java</exclude> |
| <exclude>**/FhirClientJvmIntegrationTest.java</exclude> |
| <exclude>**/FhirDataformatIntegrationTest.java</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>native</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> |
| <excludes> |
| <exclude>**/FhirClientJvmIntegrationTest.java</exclude> |
| </excludes> |
| <includes combine.children="append"> |
| <include>**/FhirClientIntegrationTest.java</include> |
| <include>**/FhirDataformatIntegrationTest.java</include> |
| </includes> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>io.quarkus</groupId> |
| <artifactId>quarkus-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>native-image</id> |
| <goals> |
| <goal>native-image</goal> |
| </goals> |
| <configuration> |
| <reportErrorsAtRuntime>false</reportErrorsAtRuntime> |
| <cleanupServer>true</cleanupServer> |
| <enableHttpsUrlHandler>true</enableHttpsUrlHandler> |
| <enableHttpUrlHandler>true</enableHttpUrlHandler> |
| <enableServer>false</enableServer> |
| <dumpProxies>false</dumpProxies> |
| <graalvmHome>${graalvmHome}</graalvmHome> |
| <enableJni>true</enableJni> |
| <enableAllSecurityServices>true</enableAllSecurityServices> |
| <disableReports>true</disableReports> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>fhir-it</id> |
| <activation> |
| <property> |
| <name>fhir-it</name> |
| </property> |
| </activation> |
| <properties> |
| <fhir.http.client>true</fhir.http.client> |
| </properties> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <version>${maven-dependency-plugin.version}</version> |
| <executions> |
| <execution> |
| <id>deploy-converter-factory</id> |
| <phase>generate-test-resources</phase> |
| <goals> |
| <goal>copy</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>ca.uhn.hapi.fhir</groupId> |
| <artifactId>hapi-fhir-jpaserver-starter</artifactId> |
| <version>${hapi.version}</version> |
| <type>war</type> |
| <outputDirectory>${project.build.directory}/war</outputDirectory> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>${build-helper-maven-plugin.version}</version> |
| <executions> |
| <execution> |
| <id>reserve-fhir-port</id> |
| <goals> |
| <goal>reserve-network-port</goal> |
| </goals> |
| <phase>generate-test-sources</phase> |
| <configuration> |
| <portNames> |
| <portName>fhir.port</portName> |
| <portName>fhir.stop.port</portName> |
| </portNames> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>${maven-resources-plugin.version}</version> |
| <executions> |
| <execution> |
| <id>filter-resources</id> |
| <phase>generate-test-sources</phase> |
| <goals> |
| <goal>resources</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>properties-maven-plugin</artifactId> |
| <version>${properties-maven-plugin.version}</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>set-system-properties</goal> |
| </goals> |
| <configuration> |
| <properties> |
| <property> |
| <name>hapi.properties</name> |
| <value>src/test/resources/hapi.properties</value> |
| </property> |
| </properties> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-maven-plugin</artifactId> |
| <version>${jetty-maven-plugin.version}</version> |
| <configuration> |
| <war>${project.build.directory}/war/hapi-fhir-jpaserver-starter-${hapi.version}.war</war> |
| <stopKey>alpha</stopKey> |
| <stopPort>${fhir.stop.port}</stopPort> |
| <httpConnector> |
| <port>${fhir.port}</port> |
| </httpConnector> |
| <supportedPackagings> |
| <supportedPackaging>jar</supportedPackaging> |
| </supportedPackagings> |
| </configuration> |
| <executions> |
| <execution> |
| <id>start-jetty</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>deploy-war</goal> |
| </goals> |
| <configuration> |
| <scanIntervalSeconds>0</scanIntervalSeconds> |
| </configuration> |
| </execution> |
| <execution> |
| <id>stop-jetty</id> |
| <phase>post-integration-test</phase> |
| <goals> |
| <goal>stop</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <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> |
| <fhir.port>${fhir.port}</fhir.port> |
| </systemProperties> |
| <includes> |
| <include>**/FhirClientJvmIntegrationTest.java</include> |
| </includes> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| </project> |