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" |
dfarrelly | 2d336f9 | 2019-02-22 15:31:10 +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> |
dfarrelly | 2d336f9 | 2019-02-22 15:31:10 +0000 | [diff] [blame] | 29 | <version>1.0.0-SNAPSHOT</version> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 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 | 4fde9d3 | 2019-02-12 15:49:07 +0000 | [diff] [blame] | 37 | <name>dcaegen2-services-pm-mapper</name> |
| 38 | <description>Maps PM measurement data from XML to VES</description> |
| 39 | <packaging>jar</packaging> |
| 40 | |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 41 | <properties> |
| 42 | <!-- Dependency Versions --> |
| 43 | <lombok.version>1.18.4</lombok.version> |
| 44 | <sl4j.version>1.7.25</sl4j.version> |
| 45 | <logback.version>1.2.3</logback.version> |
| 46 | <reactor.version>3.2.3.RELEASE</reactor.version> |
| 47 | <undertow.version>2.0.16.Final</undertow.version> |
| 48 | <gson.version>2.8.5</gson.version> |
JoeOLeary | 924ab47 | 2019-02-15 13:46:01 +0000 | [diff] [blame] | 49 | <freemarker.version>2.3.28</freemarker.version> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 50 | <!-- Testing.Test Dependencies --> |
| 51 | <junit.version>5.3.2</junit.version> |
| 52 | <mockito.version>2.23.4</mockito.version> |
| 53 | <mockito-ju5-ext.version>2.23.4</mockito-ju5-ext.version> |
| 54 | <powermock.version>2.0.0</powermock.version> |
emartin | 4751cb9 | 2019-01-29 12:21:51 +0000 | [diff] [blame] | 55 | <mockserver.version>3.10.8</mockserver.version> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 56 | <junit4.version>4.12</junit4.version> |
JoeOLeary | 924ab47 | 2019-02-15 13:46:01 +0000 | [diff] [blame] | 57 | <jsonschema.version>1.3.0</jsonschema.version> |
emartin | 1f982f9 | 2019-03-05 16:29:36 +0000 | [diff] [blame] | 58 | <xerces.version>2.11.0</xerces.version> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 59 | <!-- Plugin Versions --> |
| 60 | <shade.plugin.version>3.2.0</shade.plugin.version> |
| 61 | <jacoco.version>0.8.2</jacoco.version> |
JoeOLeary | becd8ee | 2019-01-28 13:44:27 +0000 | [diff] [blame] | 62 | <dockerfile.version>1.4.10</dockerfile.version> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 63 | <surefire.version>2.22.0</surefire.version> |
JoeOLeary | becd8ee | 2019-01-28 13:44:27 +0000 | [diff] [blame] | 64 | <!-- Plugin Settings --> |
JoeOLeary | c4b59c4 | 2019-01-31 08:45:39 +0000 | [diff] [blame] | 65 | <image-name>${docker.push.registry}/onap/${project.groupId}.${project.artifactId}</image-name> |
dfarrelly | 27cdb4f | 2019-03-01 14:26:42 +0000 | [diff] [blame] | 66 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
dfarrelly | 2d336f9 | 2019-02-22 15:31:10 +0000 | [diff] [blame] | 67 | <timestamp>${maven.build.timestamp}</timestamp> |
JoeOLeary | becd8ee | 2019-01-28 13:44:27 +0000 | [diff] [blame] | 68 | <sonar.language>java</sonar.language> |
| 69 | <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin> |
| 70 | <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath> |
| 71 | <sonar.jacoco.reportPaths>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPaths> |
| 72 | <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath> |
| 73 | <sonar.projectVersion>${project.version}</sonar.projectVersion> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 74 | <compiler.target.version>1.8</compiler.target.version> |
| 75 | <compiler.source.version>1.8</compiler.source.version> |
| 76 | <shade.main>org.onap.dcaegen2.services.pmmapper.App</shade.main> |
| 77 | <shade.transformer>org.apache.maven.plugins.shade.resource.ManifestResourceTransformer</shade.transformer> |
emartin | a8e48cf | 2019-02-08 18:22:27 +0000 | [diff] [blame] | 78 | <onap.logging.version>1.2.2</onap.logging.version> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 79 | </properties> |
| 80 | |
| 81 | <dependencies> |
| 82 | <dependency> |
| 83 | <groupId>org.projectlombok</groupId> |
| 84 | <artifactId>lombok</artifactId> |
| 85 | <version>${lombok.version}</version> |
| 86 | <scope>provided</scope> |
| 87 | </dependency> |
| 88 | <dependency> |
| 89 | <groupId>io.projectreactor</groupId> |
| 90 | <artifactId>reactor-core</artifactId> |
| 91 | <version>${reactor.version}</version> |
| 92 | </dependency> |
| 93 | <dependency> |
| 94 | <groupId>io.undertow</groupId> |
| 95 | <artifactId>undertow-core</artifactId> |
| 96 | <version>${undertow.version}</version> |
| 97 | </dependency> |
| 98 | <dependency> |
| 99 | <groupId>org.slf4j</groupId> |
| 100 | <artifactId>slf4j-api</artifactId> |
| 101 | <version>${sl4j.version}</version> |
| 102 | </dependency> |
| 103 | <dependency> |
| 104 | <groupId>ch.qos.logback</groupId> |
| 105 | <artifactId>logback-classic</artifactId> |
| 106 | <version>${logback.version}</version> |
| 107 | </dependency> |
| 108 | <dependency> |
emartin | a8e48cf | 2019-02-08 18:22:27 +0000 | [diff] [blame] | 109 | <groupId>org.onap.logging-analytics</groupId> |
| 110 | <artifactId>logging-slf4j</artifactId> |
| 111 | <version>${onap.logging.version}</version> |
| 112 | </dependency> |
| 113 | <dependency> |
| 114 | <groupId>javax.servlet</groupId> |
| 115 | <artifactId>servlet-api</artifactId> |
| 116 | <version>2.5</version> |
| 117 | <scope>provided</scope> |
| 118 | </dependency> |
| 119 | <dependency> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 120 | <groupId>com.google.code.gson</groupId> |
| 121 | <artifactId>gson</artifactId> |
| 122 | <version>${gson.version}</version> |
| 123 | </dependency> |
| 124 | <dependency> |
JoeOLeary | 924ab47 | 2019-02-15 13:46:01 +0000 | [diff] [blame] | 125 | <groupId>org.freemarker</groupId> |
| 126 | <artifactId>freemarker</artifactId> |
| 127 | <version>${freemarker.version}</version> |
| 128 | </dependency> |
| 129 | <dependency> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 130 | <groupId>org.junit.jupiter</groupId> |
| 131 | <artifactId>junit-jupiter-engine</artifactId> |
| 132 | <version>${junit.version}</version> |
| 133 | <scope>test</scope> |
| 134 | </dependency> |
| 135 | <dependency> |
| 136 | <groupId>org.mockito</groupId> |
| 137 | <artifactId>mockito-junit-jupiter</artifactId> |
| 138 | <version>${mockito-ju5-ext.version}</version> |
| 139 | <scope>test</scope> |
| 140 | </dependency> |
| 141 | |
| 142 | <dependency> |
| 143 | <groupId>org.mockito</groupId> |
| 144 | <artifactId>mockito-core</artifactId> |
| 145 | <version>${mockito.version}</version> |
| 146 | <scope>test</scope> |
| 147 | </dependency> |
| 148 | <dependency> |
| 149 | <groupId>org.powermock</groupId> |
| 150 | <artifactId>powermock-module-junit4</artifactId> |
| 151 | <version>${powermock.version}</version> |
| 152 | <scope>test</scope> |
| 153 | </dependency> |
| 154 | <dependency> |
| 155 | <groupId>org.junit.vintage</groupId> |
| 156 | <artifactId>junit-vintage-engine</artifactId> |
| 157 | <version>${junit.version}</version> |
| 158 | <scope>test</scope> |
| 159 | </dependency> |
| 160 | <dependency> |
| 161 | <groupId>org.powermock</groupId> |
| 162 | <artifactId>powermock-api-mockito2</artifactId> |
| 163 | <version>${powermock.version}</version> |
| 164 | <scope>test</scope> |
| 165 | </dependency> |
emartin | 4751cb9 | 2019-01-29 12:21:51 +0000 | [diff] [blame] | 166 | <dependency> |
| 167 | <groupId>org.mock-server</groupId> |
| 168 | <artifactId>mockserver-netty</artifactId> |
| 169 | <version>${mockserver.version}</version> |
| 170 | <scope>test</scope> |
| 171 | </dependency> |
| 172 | <dependency> |
| 173 | <groupId>org.mock-server</groupId> |
| 174 | <artifactId>mockserver-client-java</artifactId> |
| 175 | <version>${mockserver.version}</version> |
| 176 | <scope>test</scope> |
| 177 | </dependency> |
JoeOLeary | 924ab47 | 2019-02-15 13:46:01 +0000 | [diff] [blame] | 178 | <dependency> |
| 179 | <groupId>org.junit.jupiter</groupId> |
| 180 | <artifactId>junit-jupiter-params</artifactId> |
| 181 | <version>${junit.version}</version> |
| 182 | <scope>test</scope> |
| 183 | </dependency> |
| 184 | <dependency> |
| 185 | <groupId>org.everit.json</groupId> |
| 186 | <artifactId>org.everit.json.schema</artifactId> |
| 187 | <version>${jsonschema.version}</version> |
| 188 | <scope>test</scope> |
| 189 | </dependency> |
emartin | 1f982f9 | 2019-03-05 16:29:36 +0000 | [diff] [blame] | 190 | <dependency> |
| 191 | <groupId>xerces</groupId> |
| 192 | <artifactId>xercesImpl</artifactId> |
| 193 | <version>${xerces.version}</version> |
| 194 | <scope>test</scope> |
| 195 | </dependency> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 196 | </dependencies> |
| 197 | |
| 198 | <build> |
| 199 | <plugins> |
| 200 | <plugin> |
JoeOLeary | becd8ee | 2019-01-28 13:44:27 +0000 | [diff] [blame] | 201 | <groupId>com.spotify</groupId> |
| 202 | <artifactId>dockerfile-maven-plugin</artifactId> |
| 203 | <version>${dockerfile.version}</version> |
| 204 | <configuration> |
JoeOLeary | c4b59c4 | 2019-01-31 08:45:39 +0000 | [diff] [blame] | 205 | <repository>${image-name}</repository> |
JoeOLeary | becd8ee | 2019-01-28 13:44:27 +0000 | [diff] [blame] | 206 | <dockerfile>${project.build.outputDirectory}/Dockerfile</dockerfile> |
| 207 | <buildArgs> |
| 208 | <JAR>${project.build.finalName}-jar-with-dependencies.jar</JAR> |
| 209 | </buildArgs> |
| 210 | </configuration> |
dfarrelly | 27cdb4f | 2019-03-01 14:26:42 +0000 | [diff] [blame] | 211 | <executions> |
| 212 | <execution> |
| 213 | <id>tag-version</id> |
| 214 | <phase>none</phase> |
| 215 | <goals> |
| 216 | <goal>tag</goal> |
| 217 | </goals> |
| 218 | <configuration> |
| 219 | <tag>${project.version}-${timestamp}</tag> |
| 220 | </configuration> |
| 221 | </execution> |
| 222 | <execution> |
| 223 | <id>push-latest</id> |
| 224 | <phase>none</phase> |
| 225 | <goals> |
| 226 | <goal>push</goal> |
| 227 | </goals> |
| 228 | <configuration> |
| 229 | <tag>latest</tag> |
| 230 | </configuration> |
| 231 | </execution> |
| 232 | <execution> |
| 233 | <id>push-version</id> |
| 234 | <phase>none</phase> |
| 235 | <goals> |
| 236 | <goal>push</goal> |
| 237 | </goals> |
| 238 | <configuration> |
| 239 | <tag>${project.version}-${timestamp}</tag> |
| 240 | </configuration> |
| 241 | </execution> |
| 242 | </executions> |
JoeOLeary | becd8ee | 2019-01-28 13:44:27 +0000 | [diff] [blame] | 243 | </plugin> |
| 244 | <plugin> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 245 | <groupId>org.apache.maven.plugins</groupId> |
| 246 | <artifactId>maven-surefire-plugin</artifactId> |
| 247 | <version>${surefire.version}</version> |
emartin | 4751cb9 | 2019-01-29 12:21:51 +0000 | [diff] [blame] | 248 | <configuration combine.self="override"> |
| 249 | <useSystemClassLoader>false</useSystemClassLoader> |
| 250 | </configuration> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 251 | </plugin> |
| 252 | <plugin> |
| 253 | <groupId>org.apache.maven.plugins</groupId> |
| 254 | <artifactId>maven-failsafe-plugin</artifactId> |
| 255 | <version>${surefire.version}</version> |
| 256 | </plugin> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 257 | <plugin> |
| 258 | <groupId>org.apache.maven.plugins</groupId> |
| 259 | <artifactId>maven-shade-plugin</artifactId> |
| 260 | <version>${shade.plugin.version}</version> |
| 261 | <executions> |
| 262 | <execution> |
| 263 | <goals> |
| 264 | <goal>shade</goal> |
| 265 | </goals> |
| 266 | <configuration> |
| 267 | <shadedArtifactAttached>true</shadedArtifactAttached> |
JoeOLeary | becd8ee | 2019-01-28 13:44:27 +0000 | [diff] [blame] | 268 | <shadedClassifierName>jar-with-dependencies</shadedClassifierName> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 269 | <transformers> |
emartin | 4751cb9 | 2019-01-29 12:21:51 +0000 | [diff] [blame] | 270 | <transformer |
dfarrelly | 2d336f9 | 2019-02-22 15:31:10 +0000 | [diff] [blame] | 271 | implementation="${shade.transformer}"> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 272 | <mainClass>${shade.main}</mainClass> |
| 273 | </transformer> |
| 274 | </transformers> |
| 275 | </configuration> |
| 276 | </execution> |
| 277 | </executions> |
| 278 | </plugin> |
| 279 | <plugin> |
| 280 | <groupId>org.apache.maven.plugins</groupId> |
| 281 | <artifactId>maven-compiler-plugin</artifactId> |
| 282 | <configuration> |
JoeOLeary | becd8ee | 2019-01-28 13:44:27 +0000 | [diff] [blame] | 283 | <source>${maven.compiler.source}</source> |
| 284 | <target>${maven.compiler.target}</target> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 285 | </configuration> |
| 286 | </plugin> |
| 287 | <plugin> |
| 288 | <groupId>org.jacoco</groupId> |
| 289 | <artifactId>jacoco-maven-plugin</artifactId> |
| 290 | <version>${jacoco.version}</version> |
| 291 | <executions> |
| 292 | <execution> |
| 293 | <id>jacoco-instrument</id> |
| 294 | <goals> |
| 295 | <goal>instrument</goal> |
| 296 | </goals> |
| 297 | </execution> |
| 298 | <execution> |
| 299 | <id>jacoco-restore-instrumented-classes</id> |
| 300 | <goals> |
| 301 | <goal>restore-instrumented-classes</goal> |
| 302 | </goals> |
| 303 | </execution> |
| 304 | <execution> |
| 305 | <goals> |
| 306 | <goal>prepare-agent</goal> |
| 307 | </goals> |
JoeOLeary | e501391 | 2019-03-01 14:09:52 +0000 | [diff] [blame] | 308 | <configuration> |
| 309 | <excludes> |
| 310 | <exclude>*</exclude> |
| 311 | </excludes> |
| 312 | </configuration> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 313 | </execution> |
| 314 | <execution> |
| 315 | <id>report</id> |
| 316 | <phase>prepare-package</phase> |
| 317 | <goals> |
| 318 | <goal>report</goal> |
| 319 | </goals> |
| 320 | </execution> |
| 321 | </executions> |
JoeOLeary | 8338d2e | 2019-01-22 16:09:34 +0000 | [diff] [blame] | 322 | </plugin> |
| 323 | </plugins> |
| 324 | </build> |
| 325 | |
| 326 | </project> |