JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
| 4 | Copyright (C) 2019 Nordix Foundation. |
| 5 | ================================================================================ |
| 6 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | you may not use this file except in compliance with the License. |
| 8 | You may obtain a copy of the License at |
| 9 | |
| 10 | http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | |
| 12 | Unless required by applicable law or agreed to in writing, software |
| 13 | distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | See the License for the specific language governing permissions and |
| 16 | limitations under the License. |
| 17 | |
| 18 | SPDX-License-Identifier: Apache-2.0 |
| 19 | ============LICENSE_END========================================================= |
| 20 | --> |
| 21 | |
| 22 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
emartin | 4751cb9 | 2019-01-29 12:21:51 +0000 | [diff] [blame] | 23 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 24 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 25 | <modelVersion>4.0.0</modelVersion> |
| 26 | |
| 27 | <groupId>org.onap.dcaegen2.services</groupId> |
| 28 | <artifactId>pm-mapper</artifactId> |
| 29 | <version>1.0-SNAPSHOT</version> |
| 30 | |
JoeOLeary | becd8ee | 2019-01-28 13:44:27 +0000 | [diff] [blame] | 31 | <parent> |
| 32 | <groupId>org.onap.oparent</groupId> |
| 33 | <artifactId>oparent</artifactId> |
| 34 | <version>1.2.0</version> |
| 35 | </parent> |
| 36 | |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 37 | <properties> |
| 38 | <!-- Dependency Versions --> |
| 39 | <lombok.version>1.18.4</lombok.version> |
| 40 | <sl4j.version>1.7.25</sl4j.version> |
| 41 | <logback.version>1.2.3</logback.version> |
| 42 | <reactor.version>3.2.3.RELEASE</reactor.version> |
| 43 | <undertow.version>2.0.16.Final</undertow.version> |
| 44 | <gson.version>2.8.5</gson.version> |
| 45 | <!-- Testing.Test Dependencies --> |
| 46 | <junit.version>5.3.2</junit.version> |
| 47 | <mockito.version>2.23.4</mockito.version> |
| 48 | <mockito-ju5-ext.version>2.23.4</mockito-ju5-ext.version> |
| 49 | <powermock.version>2.0.0</powermock.version> |
emartin | 4751cb9 | 2019-01-29 12:21:51 +0000 | [diff] [blame] | 50 | <mockserver.version>3.10.8</mockserver.version> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 51 | <junit4.version>4.12</junit4.version> |
| 52 | <!-- Plugin Versions --> |
| 53 | <shade.plugin.version>3.2.0</shade.plugin.version> |
| 54 | <jacoco.version>0.8.2</jacoco.version> |
JoeOLeary | becd8ee | 2019-01-28 13:44:27 +0000 | [diff] [blame] | 55 | <dockerfile.version>1.4.10</dockerfile.version> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 56 | <surefire.version>2.22.0</surefire.version> |
JoeOLeary | becd8ee | 2019-01-28 13:44:27 +0000 | [diff] [blame] | 57 | <!-- Plugin Settings --> |
JoeOLeary | c4b59c4 | 2019-01-31 08:45:39 +0000 | [diff] [blame] | 58 | <image-name>${docker.push.registry}/onap/${project.groupId}.${project.artifactId}</image-name> |
JoeOLeary | becd8ee | 2019-01-28 13:44:27 +0000 | [diff] [blame] | 59 | <sonar.language>java</sonar.language> |
| 60 | <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin> |
| 61 | <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath> |
| 62 | <sonar.jacoco.reportPaths>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPaths> |
| 63 | <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath> |
| 64 | <sonar.projectVersion>${project.version}</sonar.projectVersion> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 65 | <compiler.target.version>1.8</compiler.target.version> |
| 66 | <compiler.source.version>1.8</compiler.source.version> |
| 67 | <shade.main>org.onap.dcaegen2.services.pmmapper.App</shade.main> |
| 68 | <shade.transformer>org.apache.maven.plugins.shade.resource.ManifestResourceTransformer</shade.transformer> |
| 69 | </properties> |
| 70 | |
| 71 | <dependencies> |
| 72 | <dependency> |
| 73 | <groupId>org.projectlombok</groupId> |
| 74 | <artifactId>lombok</artifactId> |
| 75 | <version>${lombok.version}</version> |
| 76 | <scope>provided</scope> |
| 77 | </dependency> |
| 78 | <dependency> |
| 79 | <groupId>io.projectreactor</groupId> |
| 80 | <artifactId>reactor-core</artifactId> |
| 81 | <version>${reactor.version}</version> |
| 82 | </dependency> |
| 83 | <dependency> |
| 84 | <groupId>io.undertow</groupId> |
| 85 | <artifactId>undertow-core</artifactId> |
| 86 | <version>${undertow.version}</version> |
| 87 | </dependency> |
| 88 | <dependency> |
| 89 | <groupId>org.slf4j</groupId> |
| 90 | <artifactId>slf4j-api</artifactId> |
| 91 | <version>${sl4j.version}</version> |
| 92 | </dependency> |
| 93 | <dependency> |
| 94 | <groupId>ch.qos.logback</groupId> |
| 95 | <artifactId>logback-classic</artifactId> |
| 96 | <version>${logback.version}</version> |
| 97 | </dependency> |
| 98 | <dependency> |
| 99 | <groupId>com.google.code.gson</groupId> |
| 100 | <artifactId>gson</artifactId> |
| 101 | <version>${gson.version}</version> |
| 102 | </dependency> |
| 103 | <dependency> |
| 104 | <groupId>org.junit.jupiter</groupId> |
| 105 | <artifactId>junit-jupiter-engine</artifactId> |
| 106 | <version>${junit.version}</version> |
| 107 | <scope>test</scope> |
| 108 | </dependency> |
| 109 | <dependency> |
| 110 | <groupId>org.mockito</groupId> |
| 111 | <artifactId>mockito-junit-jupiter</artifactId> |
| 112 | <version>${mockito-ju5-ext.version}</version> |
| 113 | <scope>test</scope> |
| 114 | </dependency> |
| 115 | |
| 116 | <dependency> |
| 117 | <groupId>org.mockito</groupId> |
| 118 | <artifactId>mockito-core</artifactId> |
| 119 | <version>${mockito.version}</version> |
| 120 | <scope>test</scope> |
| 121 | </dependency> |
| 122 | <dependency> |
| 123 | <groupId>org.powermock</groupId> |
| 124 | <artifactId>powermock-module-junit4</artifactId> |
| 125 | <version>${powermock.version}</version> |
| 126 | <scope>test</scope> |
| 127 | </dependency> |
| 128 | <dependency> |
| 129 | <groupId>org.junit.vintage</groupId> |
| 130 | <artifactId>junit-vintage-engine</artifactId> |
| 131 | <version>${junit.version}</version> |
| 132 | <scope>test</scope> |
| 133 | </dependency> |
| 134 | <dependency> |
| 135 | <groupId>org.powermock</groupId> |
| 136 | <artifactId>powermock-api-mockito2</artifactId> |
| 137 | <version>${powermock.version}</version> |
| 138 | <scope>test</scope> |
| 139 | </dependency> |
emartin | 4751cb9 | 2019-01-29 12:21:51 +0000 | [diff] [blame] | 140 | <dependency> |
| 141 | <groupId>org.mock-server</groupId> |
| 142 | <artifactId>mockserver-netty</artifactId> |
| 143 | <version>${mockserver.version}</version> |
| 144 | <scope>test</scope> |
| 145 | </dependency> |
| 146 | <dependency> |
| 147 | <groupId>org.mock-server</groupId> |
| 148 | <artifactId>mockserver-client-java</artifactId> |
| 149 | <version>${mockserver.version}</version> |
| 150 | <scope>test</scope> |
| 151 | </dependency> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 152 | </dependencies> |
| 153 | |
| 154 | <build> |
| 155 | <plugins> |
| 156 | <plugin> |
JoeOLeary | becd8ee | 2019-01-28 13:44:27 +0000 | [diff] [blame] | 157 | <groupId>com.spotify</groupId> |
| 158 | <artifactId>dockerfile-maven-plugin</artifactId> |
| 159 | <version>${dockerfile.version}</version> |
| 160 | <configuration> |
JoeOLeary | c4b59c4 | 2019-01-31 08:45:39 +0000 | [diff] [blame] | 161 | <repository>${image-name}</repository> |
JoeOLeary | becd8ee | 2019-01-28 13:44:27 +0000 | [diff] [blame] | 162 | <tag>${project.version}</tag> |
| 163 | <dockerfile>${project.build.outputDirectory}/Dockerfile</dockerfile> |
| 164 | <buildArgs> |
| 165 | <JAR>${project.build.finalName}-jar-with-dependencies.jar</JAR> |
| 166 | </buildArgs> |
| 167 | </configuration> |
| 168 | </plugin> |
| 169 | <plugin> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 170 | <groupId>org.apache.maven.plugins</groupId> |
| 171 | <artifactId>maven-surefire-plugin</artifactId> |
| 172 | <version>${surefire.version}</version> |
emartin | 4751cb9 | 2019-01-29 12:21:51 +0000 | [diff] [blame] | 173 | <configuration combine.self="override"> |
| 174 | <useSystemClassLoader>false</useSystemClassLoader> |
| 175 | </configuration> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 176 | </plugin> |
| 177 | <plugin> |
| 178 | <groupId>org.apache.maven.plugins</groupId> |
| 179 | <artifactId>maven-failsafe-plugin</artifactId> |
| 180 | <version>${surefire.version}</version> |
| 181 | </plugin> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 182 | <plugin> |
| 183 | <groupId>org.apache.maven.plugins</groupId> |
| 184 | <artifactId>maven-shade-plugin</artifactId> |
| 185 | <version>${shade.plugin.version}</version> |
| 186 | <executions> |
| 187 | <execution> |
| 188 | <goals> |
| 189 | <goal>shade</goal> |
| 190 | </goals> |
| 191 | <configuration> |
| 192 | <shadedArtifactAttached>true</shadedArtifactAttached> |
JoeOLeary | becd8ee | 2019-01-28 13:44:27 +0000 | [diff] [blame] | 193 | <shadedClassifierName>jar-with-dependencies</shadedClassifierName> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 194 | <transformers> |
emartin | 4751cb9 | 2019-01-29 12:21:51 +0000 | [diff] [blame] | 195 | <transformer |
| 196 | implementation="${shade.transformer}"> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 197 | <mainClass>${shade.main}</mainClass> |
| 198 | </transformer> |
| 199 | </transformers> |
| 200 | </configuration> |
| 201 | </execution> |
| 202 | </executions> |
| 203 | </plugin> |
| 204 | <plugin> |
| 205 | <groupId>org.apache.maven.plugins</groupId> |
| 206 | <artifactId>maven-compiler-plugin</artifactId> |
| 207 | <configuration> |
JoeOLeary | becd8ee | 2019-01-28 13:44:27 +0000 | [diff] [blame] | 208 | <source>${maven.compiler.source}</source> |
| 209 | <target>${maven.compiler.target}</target> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 210 | </configuration> |
| 211 | </plugin> |
| 212 | <plugin> |
| 213 | <groupId>org.jacoco</groupId> |
| 214 | <artifactId>jacoco-maven-plugin</artifactId> |
| 215 | <version>${jacoco.version}</version> |
| 216 | <executions> |
| 217 | <execution> |
| 218 | <id>jacoco-instrument</id> |
| 219 | <goals> |
| 220 | <goal>instrument</goal> |
| 221 | </goals> |
| 222 | </execution> |
| 223 | <execution> |
| 224 | <id>jacoco-restore-instrumented-classes</id> |
| 225 | <goals> |
| 226 | <goal>restore-instrumented-classes</goal> |
| 227 | </goals> |
| 228 | </execution> |
| 229 | <execution> |
| 230 | <goals> |
| 231 | <goal>prepare-agent</goal> |
| 232 | </goals> |
| 233 | </execution> |
| 234 | <execution> |
| 235 | <id>report</id> |
| 236 | <phase>prepare-package</phase> |
| 237 | <goals> |
| 238 | <goal>report</goal> |
| 239 | </goals> |
| 240 | </execution> |
| 241 | </executions> |
| 242 | <configuration> |
| 243 | <excludes> |
| 244 | <exclude>**/*App.*</exclude> |
| 245 | </excludes> |
| 246 | </configuration> |
| 247 | </plugin> |
| 248 | </plugins> |
| 249 | </build> |
| 250 | |
| 251 | </project> |