blob: 5b0d9a412debdb8264bef05e2629c1adb11fa68d [file] [log] [blame]
JoeOLeary8338d2e2019-01-22 16:09:34 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
JoeOLearyd5270c62020-06-22 14:01:13 +01004 Copyright (C) 2019-2020 Nordix Foundation.
Tomasz Wrobel59fe5fc2021-11-16 10:36:10 +01005 Copyright (C) 2020-2022 Nokia. All rights reserved.
Alexander Mazuruk0f080182021-02-24 09:30:38 +01006 Copyright (C) 2021 Samsung Electronics. All rights reserved.
JoeOLeary8338d2e2019-01-22 16:09:34 +00007 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19
20 SPDX-License-Identifier: Apache-2.0
21 ============LICENSE_END=========================================================
22-->
23
24<project xmlns="http://maven.apache.org/POM/4.0.0"
dfarrelly2d336f92019-02-22 15:31:10 +000025 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
26 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
JoeOLeary8338d2e2019-01-22 16:09:34 +000027 <modelVersion>4.0.0</modelVersion>
28
JoeOLearybecd8ee2019-01-28 13:44:27 +000029 <parent>
30 <groupId>org.onap.oparent</groupId>
31 <artifactId>oparent</artifactId>
Piotr Marcinkiewicz1fde4cb2021-07-23 13:48:13 +020032 <version>3.2.0</version>
JoeOLearybecd8ee2019-01-28 13:44:27 +000033 </parent>
34
Pawel126c8592021-02-03 12:49:19 +010035 <groupId>org.onap.dcaegen2.services</groupId>
36 <artifactId>pm-mapper</artifactId>
Tomasz Wrobel59fe5fc2021-11-16 10:36:10 +010037 <version>1.8.0-SNAPSHOT</version>
Pawel126c8592021-02-03 12:49:19 +010038
39
JoeOLeary4fde9d32019-02-12 15:49:07 +000040 <name>dcaegen2-services-pm-mapper</name>
41 <description>Maps PM measurement data from XML to VES</description>
42 <packaging>jar</packaging>
43
JoeOLeary8338d2e2019-01-22 16:09:34 +000044 <properties>
45 <!-- Dependency Versions -->
46 <lombok.version>1.18.4</lombok.version>
47 <sl4j.version>1.7.25</sl4j.version>
48 <logback.version>1.2.3</logback.version>
tkogut874d0e62020-12-02 12:59:59 +010049 <reactor.version>3.4.0</reactor.version>
Remigiusz Janeczekfe63a7b2021-07-23 08:50:35 +020050 <undertow.version>2.2.9.Final</undertow.version>
tkogutf789f252021-04-13 10:11:35 +020051 <gson.version>2.8.6</gson.version>
Remigiusz Janeczekfe63a7b2021-07-23 08:50:35 +020052 <freemarker.version>2.3.31</freemarker.version>
deen198574877ac2021-01-27 17:29:43 +010053 <commons.io.version>2.8.0</commons.io.version>
JoeOLearyd5270c62020-06-22 14:01:13 +010054 <xml.version>2.3.1</xml.version>
55 <jaxb.version>2.3.0.1</jaxb.version>
Tomasz Wrobel59fe5fc2021-11-16 10:36:10 +010056 <!-- DCAE SDK -->
57 <sdk.version>1.8.7</sdk.version>
JoeOLearyd5270c62020-06-22 14:01:13 +010058 <!-- Testing Test Dependencies -->
JoeOLeary8338d2e2019-01-22 16:09:34 +000059 <junit.version>5.3.2</junit.version>
60 <mockito.version>2.23.4</mockito.version>
61 <mockito-ju5-ext.version>2.23.4</mockito-ju5-ext.version>
JoeOLearyd5270c62020-06-22 14:01:13 +010062 <powermock.version>2.0.7</powermock.version>
tkogutf789f252021-04-13 10:11:35 +020063 <mockserver.version>5.11.2</mockserver.version>
JoeOLeary8338d2e2019-01-22 16:09:34 +000064 <junit4.version>4.12</junit4.version>
tkogutf789f252021-04-13 10:11:35 +020065 <jsonschema.version>1.5.1</jsonschema.version>
66 <json.version>20210307</json.version>
67 <jackson.version>2.12.2</jackson.version>
emartin1f982f92019-03-05 16:29:36 +000068 <xerces.version>2.11.0</xerces.version>
tkogut874d0e62020-12-02 12:59:59 +010069 <reactor.test>3.4.0</reactor.test>
JoeOLeary8338d2e2019-01-22 16:09:34 +000070 <!-- Plugin Versions -->
JoeOLeary8338d2e2019-01-22 16:09:34 +000071 <jacoco.version>0.8.2</jacoco.version>
JoeOLeary8338d2e2019-01-22 16:09:34 +000072 <surefire.version>2.22.0</surefire.version>
dfarrelly924a8052019-07-24 16:17:13 +000073 <git-commit.version>3.0.0</git-commit.version>
74 <build-helper.version>3.0.0</build-helper.version>
75 <docker-maven.version>0.30.0</docker-maven.version>
76 <maven-jar.version>3.1.2</maven-jar.version>
77 <dependencies.version>3.1.1</dependencies.version>
JoeOLearybecd8ee2019-01-28 13:44:27 +000078 <!-- Plugin Settings -->
JoeOLearyc4b59c42019-01-31 08:45:39 +000079 <image-name>${docker.push.registry}/onap/${project.groupId}.${project.artifactId}</image-name>
dfarrelly27cdb4f2019-03-01 14:26:42 +000080 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
dfarrelly2d336f92019-02-22 15:31:10 +000081 <timestamp>${maven.build.timestamp}</timestamp>
JoeOLearybecd8ee2019-01-28 13:44:27 +000082 <sonar.language>java</sonar.language>
83 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
84 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
85 <sonar.jacoco.reportPaths>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPaths>
86 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
87 <sonar.projectVersion>${project.version}</sonar.projectVersion>
JoeOLearyd5270c62020-06-22 14:01:13 +010088 <compiler.target.version>1.11</compiler.target.version>
89 <compiler.source.version>1.11</compiler.source.version>
emartina8e48cf2019-02-08 18:22:27 +000090 <onap.logging.version>1.2.2</onap.logging.version>
dfarrelly924a8052019-07-24 16:17:13 +000091 <classpath.separator>@@</classpath.separator>
92 <pmmapper.main.class>org.onap.dcaegen2.services.pmmapper.App</pmmapper.main.class>
93 <dep.dir.name>libs</dep.dir.name>
94 <ext.dep.dir.path>${dep.dir.name}/external</ext.dep.dir.path>
Tomasz Wrobel3a1cb682021-02-22 11:02:49 +010095
96 <docker-image.tag.latest>latest</docker-image.tag.latest>
JoeOLeary8338d2e2019-01-22 16:09:34 +000097 </properties>
98
99 <dependencies>
100 <dependency>
101 <groupId>org.projectlombok</groupId>
102 <artifactId>lombok</artifactId>
103 <version>${lombok.version}</version>
104 <scope>provided</scope>
105 </dependency>
106 <dependency>
107 <groupId>io.projectreactor</groupId>
108 <artifactId>reactor-core</artifactId>
109 <version>${reactor.version}</version>
110 </dependency>
111 <dependency>
112 <groupId>io.undertow</groupId>
113 <artifactId>undertow-core</artifactId>
114 <version>${undertow.version}</version>
115 </dependency>
116 <dependency>
JoeOLearyd5270c62020-06-22 14:01:13 +0100117 <groupId>javax.xml.bind</groupId>
118 <artifactId>jaxb-api</artifactId>
119 <version>${xml.version}</version>
120 </dependency>
121 <dependency>
122 <groupId>com.sun.xml.bind</groupId>
123 <artifactId>jaxb-core</artifactId>
124 <version>${jaxb.version}</version>
125 </dependency>
126 <dependency>
tkogutf789f252021-04-13 10:11:35 +0200127 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
128 <artifactId>dmaap-client</artifactId>
Tomasz Wrobel59fe5fc2021-11-16 10:36:10 +0100129 <version>${sdk.version}</version>
130 </dependency>
131 <dependency>
132 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
133 <artifactId>cbs-client</artifactId>
134 <version>${sdk.version}</version>
tkogutf789f252021-04-13 10:11:35 +0200135 </dependency>
136 <dependency>
JoeOLearyd5270c62020-06-22 14:01:13 +0100137 <groupId>com.sun.xml.bind</groupId>
138 <artifactId>jaxb-impl</artifactId>
139 <version>${xml.version}</version>
140 </dependency>
141 <dependency>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000142 <groupId>org.slf4j</groupId>
143 <artifactId>slf4j-api</artifactId>
144 <version>${sl4j.version}</version>
145 </dependency>
146 <dependency>
147 <groupId>ch.qos.logback</groupId>
148 <artifactId>logback-classic</artifactId>
149 <version>${logback.version}</version>
150 </dependency>
151 <dependency>
emartina8e48cf2019-02-08 18:22:27 +0000152 <groupId>org.onap.logging-analytics</groupId>
153 <artifactId>logging-slf4j</artifactId>
154 <version>${onap.logging.version}</version>
155 </dependency>
156 <dependency>
157 <groupId>javax.servlet</groupId>
158 <artifactId>servlet-api</artifactId>
159 <version>2.5</version>
160 <scope>provided</scope>
161 </dependency>
162 <dependency>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000163 <groupId>com.google.code.gson</groupId>
164 <artifactId>gson</artifactId>
165 <version>${gson.version}</version>
166 </dependency>
167 <dependency>
JoeOLeary924ab472019-02-15 13:46:01 +0000168 <groupId>org.freemarker</groupId>
169 <artifactId>freemarker</artifactId>
170 <version>${freemarker.version}</version>
171 </dependency>
172 <dependency>
emartin39bec812019-04-02 11:40:04 +0000173 <groupId>commons-io</groupId>
174 <artifactId>commons-io</artifactId>
175 <version>${commons.io.version}</version>
176 </dependency>
177 <dependency>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000178 <groupId>org.junit.jupiter</groupId>
179 <artifactId>junit-jupiter-engine</artifactId>
180 <version>${junit.version}</version>
181 <scope>test</scope>
182 </dependency>
183 <dependency>
184 <groupId>org.mockito</groupId>
185 <artifactId>mockito-junit-jupiter</artifactId>
186 <version>${mockito-ju5-ext.version}</version>
187 <scope>test</scope>
188 </dependency>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000189 <dependency>
190 <groupId>org.mockito</groupId>
191 <artifactId>mockito-core</artifactId>
192 <version>${mockito.version}</version>
193 <scope>test</scope>
194 </dependency>
195 <dependency>
196 <groupId>org.powermock</groupId>
197 <artifactId>powermock-module-junit4</artifactId>
198 <version>${powermock.version}</version>
199 <scope>test</scope>
200 </dependency>
201 <dependency>
202 <groupId>org.junit.vintage</groupId>
203 <artifactId>junit-vintage-engine</artifactId>
204 <version>${junit.version}</version>
205 <scope>test</scope>
206 </dependency>
207 <dependency>
208 <groupId>org.powermock</groupId>
209 <artifactId>powermock-api-mockito2</artifactId>
210 <version>${powermock.version}</version>
211 <scope>test</scope>
212 </dependency>
emartin4751cb92019-01-29 12:21:51 +0000213 <dependency>
214 <groupId>org.mock-server</groupId>
215 <artifactId>mockserver-netty</artifactId>
216 <version>${mockserver.version}</version>
217 <scope>test</scope>
218 </dependency>
219 <dependency>
220 <groupId>org.mock-server</groupId>
221 <artifactId>mockserver-client-java</artifactId>
222 <version>${mockserver.version}</version>
223 <scope>test</scope>
224 </dependency>
JoeOLeary924ab472019-02-15 13:46:01 +0000225 <dependency>
tkogutf789f252021-04-13 10:11:35 +0200226 <groupId>org.json</groupId>
227 <artifactId>json</artifactId>
228 <version>${json.version}</version>
229 <scope>test</scope>
230 </dependency>
231 <dependency>
232 <groupId>com.fasterxml.jackson.core</groupId>
233 <artifactId>jackson-core</artifactId>
234 <version>${jackson.version}</version>
235 <scope>test</scope>
236 </dependency>
237 <dependency>
JoeOLeary924ab472019-02-15 13:46:01 +0000238 <groupId>org.junit.jupiter</groupId>
239 <artifactId>junit-jupiter-params</artifactId>
240 <version>${junit.version}</version>
241 <scope>test</scope>
242 </dependency>
243 <dependency>
emartinab263672019-03-22 16:45:31 +0000244 <groupId>io.projectreactor</groupId>
245 <artifactId>reactor-test</artifactId>
246 <version>${reactor.test}</version>
247 <scope>test</scope>
248 </dependency>
249 <dependency>
JoeOLeary924ab472019-02-15 13:46:01 +0000250 <groupId>org.everit.json</groupId>
251 <artifactId>org.everit.json.schema</artifactId>
252 <version>${jsonschema.version}</version>
253 <scope>test</scope>
254 </dependency>
emartin1f982f92019-03-05 16:29:36 +0000255 <dependency>
256 <groupId>xerces</groupId>
257 <artifactId>xercesImpl</artifactId>
258 <version>${xerces.version}</version>
259 <scope>test</scope>
260 </dependency>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000261 </dependencies>
262
263 <build>
264 <plugins>
265 <plugin>
dfarrelly924a8052019-07-24 16:17:13 +0000266 <groupId>pl.project13.maven</groupId>
267 <artifactId>git-commit-id-plugin</artifactId>
268 <version>${git-commit.version}</version>
JoeOLearybecd8ee2019-01-28 13:44:27 +0000269 <configuration>
dfarrelly924a8052019-07-24 16:17:13 +0000270 <dateFormat>${maven.build.timestamp.format}</dateFormat>
JoeOLearybecd8ee2019-01-28 13:44:27 +0000271 </configuration>
dfarrelly27cdb4f2019-03-01 14:26:42 +0000272 <executions>
273 <execution>
dfarrelly924a8052019-07-24 16:17:13 +0000274 <id>get-git-info</id>
dfarrelly27cdb4f2019-03-01 14:26:42 +0000275 <goals>
dfarrelly924a8052019-07-24 16:17:13 +0000276 <goal>revision</goal>
dfarrelly27cdb4f2019-03-01 14:26:42 +0000277 </goals>
dfarrelly27cdb4f2019-03-01 14:26:42 +0000278 </execution>
dfarrelly924a8052019-07-24 16:17:13 +0000279 </executions>
280 </plugin>
281 <plugin>
282 <groupId>org.apache.maven.plugins</groupId>
283 <artifactId>maven-dependency-plugin</artifactId>
284 <version>${dependencies.version}</version>
285 <configuration>
286 <silent>true</silent>
287 <includeScope>runtime</includeScope>
288 <pathSeparator>${classpath.separator}</pathSeparator>
289 </configuration>
290 <executions>
dfarrelly27cdb4f2019-03-01 14:26:42 +0000291 <execution>
dfarrelly924a8052019-07-24 16:17:13 +0000292 <id>copy-external-dependencies</id>
293 <phase>prepare-package</phase>
JoeOLeary2c8ddf32019-07-19 10:02:12 +0000294 <goals>
dfarrelly924a8052019-07-24 16:17:13 +0000295 <goal>copy-dependencies</goal>
296 <goal>build-classpath</goal>
JoeOLeary2c8ddf32019-07-19 10:02:12 +0000297 </goals>
298 <configuration>
dfarrelly924a8052019-07-24 16:17:13 +0000299 <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
300 <outputDirectory>${project.build.directory}/${ext.dep.dir.path}</outputDirectory>
301 <prefix>./${ext.dep.dir.path}</prefix>
302 <outputProperty>classpath.external</outputProperty>
dfarrelly27cdb4f2019-03-01 14:26:42 +0000303 </configuration>
304 </execution>
305 </executions>
JoeOLearybecd8ee2019-01-28 13:44:27 +0000306 </plugin>
307 <plugin>
dfarrelly924a8052019-07-24 16:17:13 +0000308 <groupId>org.codehaus.mojo</groupId>
309 <artifactId>build-helper-maven-plugin</artifactId>
310 <version>${build-helper.version}</version>
311 <executions>
312 <execution>
313 <id>fix-classpath-separator</id>
314 <phase>prepare-package</phase>
315 <goals>
316 <goal>regex-properties</goal>
317 </goals>
318 <configuration>
319 <regexPropertySettings>
320 <regexPropertySetting>
321 <name>classpath.external</name>
322 <value>${classpath.external}</value>
323 <regex>${classpath.separator}</regex>
324 <replacement xml:space="preserve"> </replacement>
325 </regexPropertySetting>
326 </regexPropertySettings>
327 </configuration>
328 </execution>
329 </executions>
330 </plugin>
331 <plugin>
332 <groupId>io.fabric8</groupId>
333 <artifactId>docker-maven-plugin</artifactId>
334 <version>${docker-maven.version}</version>
335 <configuration>
336 <images>
337 <image>
Tomasz Wrobel3a1cb682021-02-22 11:02:49 +0100338 <name>onap/${project.groupId}.${project.artifactId}:${docker-image.tag.latest}</name>
dfarrelly924a8052019-07-24 16:17:13 +0000339 <registry>${onap.nexus.dockerregistry.daily}</registry>
340 <build>
341 <contextDir>${project.basedir}</contextDir>
342 <dockerFile>${project.build.outputDirectory}/Dockerfile</dockerFile>
343 <args>
344 <JAR>${project.build.finalName}.jar</JAR>
345 </args>
346 <cleanup>none</cleanup>
347 <tags>
348 <tag>${project.version}</tag>
349 <tag>${project.version}-${maven.build.timestamp}Z</tag>
350 </tags>
351 </build>
352 </image>
353 </images>
354 </configuration>
355 </plugin>
356 <plugin>
357 <groupId>org.apache.maven.plugins</groupId>
358 <artifactId>maven-jar-plugin</artifactId>
359 <version>${maven-jar.version}</version>
360 <configuration>
361 <archive>
362 <manifest>
363 <mainClass>${pmmapper.main.class}</mainClass>
364 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
365 <addBuildEnvironmentEntries>true</addBuildEnvironmentEntries>
366 <useUniqueVersions>false</useUniqueVersions> <!-- workaround for MJAR-156 -->
367 </manifest>
368 <manifestEntries>
369 <Class-Path>${classpath.external}</Class-Path>
370 <Git-Branch>${git.branch}</Git-Branch>
371 <Git-Build-Host>${git.build.host}</Git-Build-Host>
372 <Git-Build-Time>${git.build.time}</Git-Build-Time>
373 <Git-Build-User-Email>${git.build.user.email}</Git-Build-User-Email>
374 <Git-Build-User-Name>${git.build.user.name}</Git-Build-User-Name>
375 <Git-Build-Version>${git.build.version}</Git-Build-Version>
376 <Git-Closest-Tag-Name>${git.closest.tag.name}</Git-Closest-Tag-Name>
377 <Git-Commit-Id>${git.commit.id}</Git-Commit-Id>
378 <Git-Commit-Message-Short>${git.commit.message.short}</Git-Commit-Message-Short>
379 <Git-Commit-Time>${git.commit.time}</Git-Commit-Time>
380 <Git-Commit-User-Email>${git.commit.user.email}</Git-Commit-User-Email>
381 <Git-Commit-User-Name>${git.commit.user.name}</Git-Commit-User-Name>
382 </manifestEntries>
383 </archive>
384 </configuration>
385 </plugin>
386 <plugin>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000387 <groupId>org.apache.maven.plugins</groupId>
388 <artifactId>maven-surefire-plugin</artifactId>
389 <version>${surefire.version}</version>
emartin4751cb92019-01-29 12:21:51 +0000390 <configuration combine.self="override">
391 <useSystemClassLoader>false</useSystemClassLoader>
392 </configuration>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000393 </plugin>
394 <plugin>
395 <groupId>org.apache.maven.plugins</groupId>
396 <artifactId>maven-failsafe-plugin</artifactId>
397 <version>${surefire.version}</version>
398 </plugin>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000399 <plugin>
400 <groupId>org.apache.maven.plugins</groupId>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000401 <artifactId>maven-compiler-plugin</artifactId>
402 <configuration>
JoeOLearybecd8ee2019-01-28 13:44:27 +0000403 <source>${maven.compiler.source}</source>
404 <target>${maven.compiler.target}</target>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000405 </configuration>
406 </plugin>
407 <plugin>
408 <groupId>org.jacoco</groupId>
409 <artifactId>jacoco-maven-plugin</artifactId>
410 <version>${jacoco.version}</version>
411 <executions>
412 <execution>
413 <id>jacoco-instrument</id>
414 <goals>
415 <goal>instrument</goal>
416 </goals>
417 </execution>
418 <execution>
419 <id>jacoco-restore-instrumented-classes</id>
420 <goals>
421 <goal>restore-instrumented-classes</goal>
422 </goals>
423 </execution>
424 <execution>
425 <goals>
426 <goal>prepare-agent</goal>
427 </goals>
JoeOLearye5013912019-03-01 14:09:52 +0000428 <configuration>
429 <excludes>
430 <exclude>*</exclude>
431 </excludes>
432 </configuration>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000433 </execution>
434 <execution>
435 <id>report</id>
436 <phase>prepare-package</phase>
437 <goals>
438 <goal>report</goal>
439 </goals>
440 </execution>
441 </executions>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000442 </plugin>
443 </plugins>
444 </build>
445
JoeOLeary1f2e1352020-06-24 08:38:24 +0100446</project>