|
| 1 | +<?xml version="1.0"?> |
| 2 | +<!-- |
| 3 | +
|
| 4 | + Copyright 2012-2017 Gunnar Morling (http://www.gunnarmorling.de/) |
| 5 | + and/or other contributors as indicated by the @authors tag. See the |
| 6 | + copyright.txt file in the distribution for a full listing of all |
| 7 | + contributors. |
| 8 | +
|
| 9 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 10 | + you may not use this file except in compliance with the License. |
| 11 | + You may obtain a copy of the License at |
| 12 | +
|
| 13 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 14 | +
|
| 15 | + Unless required by applicable law or agreed to in writing, software |
| 16 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 17 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 18 | + See the License for the specific language governing permissions and |
| 19 | + limitations under the License. |
| 20 | +
|
| 21 | +--> |
| 22 | +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" |
| 23 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 24 | + <modelVersion>4.0.0</modelVersion> |
| 25 | + <groupId>org.mapstruct.examples.quarkus</groupId> |
| 26 | + <artifactId>mapstruct-examples-quarkus</artifactId> |
| 27 | + <version>1.0-SNAPSHOT</version> |
| 28 | + |
| 29 | + <properties> |
| 30 | + <surefire-plugin.version>2.22.0</surefire-plugin.version> |
| 31 | + <quarkus.version>0.15.0</quarkus.version> |
| 32 | + <org.mapstruct.version>1.3.0.Final</org.mapstruct.version> |
| 33 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 34 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 35 | + <maven.compiler.target>1.8</maven.compiler.target> |
| 36 | + </properties> |
| 37 | + |
| 38 | + <dependencyManagement> |
| 39 | + <dependencies> |
| 40 | + <dependency> |
| 41 | + <groupId>io.quarkus</groupId> |
| 42 | + <artifactId>quarkus-bom</artifactId> |
| 43 | + <version>${quarkus.version}</version> |
| 44 | + <type>pom</type> |
| 45 | + <scope>import</scope> |
| 46 | + </dependency> |
| 47 | + </dependencies> |
| 48 | + </dependencyManagement> |
| 49 | + |
| 50 | + <dependencies> |
| 51 | + <dependency> |
| 52 | + <groupId>org.mapstruct</groupId> |
| 53 | + <artifactId>mapstruct</artifactId> |
| 54 | + <version>${org.mapstruct.version}</version> |
| 55 | + </dependency> |
| 56 | + |
| 57 | + <dependency> |
| 58 | + <groupId>io.quarkus</groupId> |
| 59 | + <artifactId>quarkus-resteasy-jsonb</artifactId> |
| 60 | + </dependency> |
| 61 | + |
| 62 | + <dependency> |
| 63 | + <groupId>io.quarkus</groupId> |
| 64 | + <artifactId>quarkus-junit5</artifactId> |
| 65 | + <scope>test</scope> |
| 66 | + </dependency> |
| 67 | + <dependency> |
| 68 | + <groupId>io.rest-assured</groupId> |
| 69 | + <artifactId>rest-assured</artifactId> |
| 70 | + <scope>test</scope> |
| 71 | + </dependency> |
| 72 | + |
| 73 | + <dependency> |
| 74 | + <groupId>org.mapstruct</groupId> |
| 75 | + <artifactId>mapstruct-processor</artifactId> |
| 76 | + <version>${org.mapstruct.version}</version> |
| 77 | + <scope>provided</scope> |
| 78 | + </dependency> |
| 79 | + </dependencies> |
| 80 | + |
| 81 | + <build> |
| 82 | + <plugins> |
| 83 | + <plugin> |
| 84 | + <groupId>io.quarkus</groupId> |
| 85 | + <artifactId>quarkus-maven-plugin</artifactId> |
| 86 | + <version>${quarkus.version}</version> |
| 87 | + <executions> |
| 88 | + <execution> |
| 89 | + <id>quarkus-build</id> |
| 90 | + <goals> |
| 91 | + <goal>build</goal> |
| 92 | + </goals> |
| 93 | + </execution> |
| 94 | + </executions> |
| 95 | + </plugin> |
| 96 | + <plugin> |
| 97 | + <artifactId>maven-surefire-plugin</artifactId> |
| 98 | + <version>${surefire-plugin.version}</version> |
| 99 | + <configuration> |
| 100 | + <systemProperties> |
| 101 | + <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager> |
| 102 | + </systemProperties> |
| 103 | + </configuration> |
| 104 | + </plugin> |
| 105 | + </plugins> |
| 106 | + </build> |
| 107 | + |
| 108 | + <profiles> |
| 109 | + <profile> |
| 110 | + <id>native</id> |
| 111 | + <activation> |
| 112 | + <property> |
| 113 | + <name>native</name> |
| 114 | + </property> |
| 115 | + </activation> |
| 116 | + <build> |
| 117 | + <plugins> |
| 118 | + <plugin> |
| 119 | + <groupId>io.quarkus</groupId> |
| 120 | + <artifactId>quarkus-maven-plugin</artifactId> |
| 121 | + <version>${quarkus.version}</version> |
| 122 | + <executions> |
| 123 | + <execution> |
| 124 | + <goals> |
| 125 | + <goal>native-image</goal> |
| 126 | + </goals> |
| 127 | + <configuration> |
| 128 | + <enableHttpUrlHandler>true</enableHttpUrlHandler> |
| 129 | + </configuration> |
| 130 | + </execution> |
| 131 | + </executions> |
| 132 | + </plugin> |
| 133 | + <plugin> |
| 134 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 135 | + <version>${surefire-plugin.version}</version> |
| 136 | + <executions> |
| 137 | + <execution> |
| 138 | + <goals> |
| 139 | + <goal>integration-test</goal> |
| 140 | + <goal>verify</goal> |
| 141 | + </goals> |
| 142 | + <configuration> |
| 143 | + <systemProperties> |
| 144 | + <native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path> |
| 145 | + </systemProperties> |
| 146 | + </configuration> |
| 147 | + </execution> |
| 148 | + </executions> |
| 149 | + </plugin> |
| 150 | + </plugins> |
| 151 | + </build> |
| 152 | + </profile> |
| 153 | + |
| 154 | + <!-- there is an issue with JDK12 and Quarkus, see https://github.com/quarkusio/quarkus/issues/1534 --> |
| 155 | + <!-- so we will skip the quarkus plugin and tests for now in case jdk >= 12 --> |
| 156 | + <profile> |
| 157 | + <id>java12+</id> |
| 158 | + <activation> |
| 159 | + <jdk>[12,)</jdk> |
| 160 | + </activation> |
| 161 | + <properties> |
| 162 | + <maven.test.skip>true</maven.test.skip> |
| 163 | + </properties> |
| 164 | + <build> |
| 165 | + <plugins> |
| 166 | + <plugin> |
| 167 | + <groupId>io.quarkus</groupId> |
| 168 | + <artifactId>quarkus-maven-plugin</artifactId> |
| 169 | + <version>${quarkus.version}</version> |
| 170 | + <executions> |
| 171 | + <execution> |
| 172 | + <id>quarkus-build</id> |
| 173 | + <phase>none</phase> <!-- invalid phase to disable this execution --> |
| 174 | + </execution> |
| 175 | + </executions> |
| 176 | + </plugin> |
| 177 | + </plugins> |
| 178 | + </build> |
| 179 | + </profile> |
| 180 | + </profiles> |
| 181 | +</project> |
0 commit comments