1 <?xml version="1.0" encoding="UTF-8"?>
3 ============LICENSE_START=======================================================
4 Copyright (C) 2019-2020 Nordix Foundation.
5 Copyright (C) 2020-2021 Nokia. All rights reserved.
6 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-2.0
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
19 SPDX-License-Identifier: Apache-2.0
20 ============LICENSE_END=========================================================
23 <project xmlns="http://maven.apache.org/POM/4.0.0"
24 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26 <modelVersion>4.0.0</modelVersion>
28 <groupId>org.onap.dcaegen2.services</groupId>
29 <artifactId>pm-mapper</artifactId>
30 <version>1.5.1-SNAPSHOT</version>
33 <groupId>org.onap.oparent</groupId>
34 <artifactId>oparent</artifactId>
35 <version>2.0.0</version>
38 <name>dcaegen2-services-pm-mapper</name>
39 <description>Maps PM measurement data from XML to VES</description>
40 <packaging>jar</packaging>
43 <!-- Dependency Versions -->
44 <lombok.version>1.18.4</lombok.version>
45 <sl4j.version>1.7.25</sl4j.version>
46 <logback.version>1.2.3</logback.version>
47 <reactor.version>3.4.0</reactor.version>
48 <undertow.version>2.2.3.Final</undertow.version>
49 <gson.version>2.8.5</gson.version>
50 <freemarker.version>2.3.28</freemarker.version>
51 <commons.io.version>2.8.0</commons.io.version>
52 <xml.version>2.3.1</xml.version>
53 <jaxb.version>2.3.0.1</jaxb.version>
54 <!-- Testing Test Dependencies -->
55 <junit.version>5.3.2</junit.version>
56 <mockito.version>2.23.4</mockito.version>
57 <mockito-ju5-ext.version>2.23.4</mockito-ju5-ext.version>
58 <powermock.version>2.0.7</powermock.version>
59 <mockserver.version>3.10.8</mockserver.version>
60 <junit4.version>4.12</junit4.version>
61 <jsonschema.version>1.3.0</jsonschema.version>
62 <xerces.version>2.11.0</xerces.version>
63 <reactor.test>3.4.0</reactor.test>
64 <!-- Plugin Versions -->
65 <jacoco.version>0.8.2</jacoco.version>
66 <surefire.version>2.22.0</surefire.version>
67 <git-commit.version>3.0.0</git-commit.version>
68 <build-helper.version>3.0.0</build-helper.version>
69 <docker-maven.version>0.30.0</docker-maven.version>
70 <maven-jar.version>3.1.2</maven-jar.version>
71 <dependencies.version>3.1.1</dependencies.version>
72 <!-- Plugin Settings -->
73 <image-name>${docker.push.registry}/onap/${project.groupId}.${project.artifactId}</image-name>
74 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
75 <timestamp>${maven.build.timestamp}</timestamp>
76 <sonar.language>java</sonar.language>
77 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
78 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
79 <sonar.jacoco.reportPaths>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPaths>
80 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
81 <sonar.projectVersion>${project.version}</sonar.projectVersion>
82 <compiler.target.version>1.11</compiler.target.version>
83 <compiler.source.version>1.11</compiler.source.version>
84 <onap.logging.version>1.2.2</onap.logging.version>
85 <classpath.separator>@@</classpath.separator>
86 <pmmapper.main.class>org.onap.dcaegen2.services.pmmapper.App</pmmapper.main.class>
87 <dep.dir.name>libs</dep.dir.name>
88 <ext.dep.dir.path>${dep.dir.name}/external</ext.dep.dir.path>
93 <groupId>org.projectlombok</groupId>
94 <artifactId>lombok</artifactId>
95 <version>${lombok.version}</version>
96 <scope>provided</scope>
99 <groupId>io.projectreactor</groupId>
100 <artifactId>reactor-core</artifactId>
101 <version>${reactor.version}</version>
104 <groupId>io.undertow</groupId>
105 <artifactId>undertow-core</artifactId>
106 <version>${undertow.version}</version>
109 <groupId>javax.xml.bind</groupId>
110 <artifactId>jaxb-api</artifactId>
111 <version>${xml.version}</version>
114 <groupId>com.sun.xml.bind</groupId>
115 <artifactId>jaxb-core</artifactId>
116 <version>${jaxb.version}</version>
119 <groupId>com.sun.xml.bind</groupId>
120 <artifactId>jaxb-impl</artifactId>
121 <version>${xml.version}</version>
124 <groupId>org.slf4j</groupId>
125 <artifactId>slf4j-api</artifactId>
126 <version>${sl4j.version}</version>
129 <groupId>ch.qos.logback</groupId>
130 <artifactId>logback-classic</artifactId>
131 <version>${logback.version}</version>
134 <groupId>org.onap.logging-analytics</groupId>
135 <artifactId>logging-slf4j</artifactId>
136 <version>${onap.logging.version}</version>
139 <groupId>javax.servlet</groupId>
140 <artifactId>servlet-api</artifactId>
141 <version>2.5</version>
142 <scope>provided</scope>
145 <groupId>com.google.code.gson</groupId>
146 <artifactId>gson</artifactId>
147 <version>${gson.version}</version>
150 <groupId>org.freemarker</groupId>
151 <artifactId>freemarker</artifactId>
152 <version>${freemarker.version}</version>
155 <groupId>commons-io</groupId>
156 <artifactId>commons-io</artifactId>
157 <version>${commons.io.version}</version>
160 <groupId>org.junit.jupiter</groupId>
161 <artifactId>junit-jupiter-engine</artifactId>
162 <version>${junit.version}</version>
166 <groupId>org.mockito</groupId>
167 <artifactId>mockito-junit-jupiter</artifactId>
168 <version>${mockito-ju5-ext.version}</version>
173 <groupId>org.mockito</groupId>
174 <artifactId>mockito-core</artifactId>
175 <version>${mockito.version}</version>
179 <groupId>org.powermock</groupId>
180 <artifactId>powermock-module-junit4</artifactId>
181 <version>${powermock.version}</version>
185 <groupId>org.junit.vintage</groupId>
186 <artifactId>junit-vintage-engine</artifactId>
187 <version>${junit.version}</version>
191 <groupId>org.powermock</groupId>
192 <artifactId>powermock-api-mockito2</artifactId>
193 <version>${powermock.version}</version>
197 <groupId>org.mock-server</groupId>
198 <artifactId>mockserver-netty</artifactId>
199 <version>${mockserver.version}</version>
203 <groupId>org.mock-server</groupId>
204 <artifactId>mockserver-client-java</artifactId>
205 <version>${mockserver.version}</version>
209 <groupId>org.junit.jupiter</groupId>
210 <artifactId>junit-jupiter-params</artifactId>
211 <version>${junit.version}</version>
215 <groupId>io.projectreactor</groupId>
216 <artifactId>reactor-test</artifactId>
217 <version>${reactor.test}</version>
221 <groupId>org.everit.json</groupId>
222 <artifactId>org.everit.json.schema</artifactId>
223 <version>${jsonschema.version}</version>
227 <groupId>xerces</groupId>
228 <artifactId>xercesImpl</artifactId>
229 <version>${xerces.version}</version>
237 <groupId>pl.project13.maven</groupId>
238 <artifactId>git-commit-id-plugin</artifactId>
239 <version>${git-commit.version}</version>
241 <dateFormat>${maven.build.timestamp.format}</dateFormat>
245 <id>get-git-info</id>
247 <goal>revision</goal>
253 <groupId>org.apache.maven.plugins</groupId>
254 <artifactId>maven-dependency-plugin</artifactId>
255 <version>${dependencies.version}</version>
257 <silent>true</silent>
258 <includeScope>runtime</includeScope>
259 <pathSeparator>${classpath.separator}</pathSeparator>
263 <id>copy-external-dependencies</id>
264 <phase>prepare-package</phase>
266 <goal>copy-dependencies</goal>
267 <goal>build-classpath</goal>
270 <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
271 <outputDirectory>${project.build.directory}/${ext.dep.dir.path}</outputDirectory>
272 <prefix>./${ext.dep.dir.path}</prefix>
273 <outputProperty>classpath.external</outputProperty>
279 <groupId>org.codehaus.mojo</groupId>
280 <artifactId>build-helper-maven-plugin</artifactId>
281 <version>${build-helper.version}</version>
284 <id>fix-classpath-separator</id>
285 <phase>prepare-package</phase>
287 <goal>regex-properties</goal>
290 <regexPropertySettings>
291 <regexPropertySetting>
292 <name>classpath.external</name>
293 <value>${classpath.external}</value>
294 <regex>${classpath.separator}</regex>
295 <replacement xml:space="preserve"> </replacement>
296 </regexPropertySetting>
297 </regexPropertySettings>
303 <groupId>io.fabric8</groupId>
304 <artifactId>docker-maven-plugin</artifactId>
305 <version>${docker-maven.version}</version>
309 <name>onap/${project.groupId}.${project.artifactId}</name>
310 <registry>${onap.nexus.dockerregistry.daily}</registry>
312 <contextDir>${project.basedir}</contextDir>
313 <dockerFile>${project.build.outputDirectory}/Dockerfile</dockerFile>
315 <JAR>${project.build.finalName}.jar</JAR>
317 <cleanup>none</cleanup>
319 <tag>${project.version}</tag>
320 <tag>${project.version}-${maven.build.timestamp}Z</tag>
328 <groupId>org.apache.maven.plugins</groupId>
329 <artifactId>maven-jar-plugin</artifactId>
330 <version>${maven-jar.version}</version>
334 <mainClass>${pmmapper.main.class}</mainClass>
335 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
336 <addBuildEnvironmentEntries>true</addBuildEnvironmentEntries>
337 <useUniqueVersions>false</useUniqueVersions> <!-- workaround for MJAR-156 -->
340 <Class-Path>${classpath.external}</Class-Path>
341 <Git-Branch>${git.branch}</Git-Branch>
342 <Git-Build-Host>${git.build.host}</Git-Build-Host>
343 <Git-Build-Time>${git.build.time}</Git-Build-Time>
344 <Git-Build-User-Email>${git.build.user.email}</Git-Build-User-Email>
345 <Git-Build-User-Name>${git.build.user.name}</Git-Build-User-Name>
346 <Git-Build-Version>${git.build.version}</Git-Build-Version>
347 <Git-Closest-Tag-Name>${git.closest.tag.name}</Git-Closest-Tag-Name>
348 <Git-Commit-Id>${git.commit.id}</Git-Commit-Id>
349 <Git-Commit-Message-Short>${git.commit.message.short}</Git-Commit-Message-Short>
350 <Git-Commit-Time>${git.commit.time}</Git-Commit-Time>
351 <Git-Commit-User-Email>${git.commit.user.email}</Git-Commit-User-Email>
352 <Git-Commit-User-Name>${git.commit.user.name}</Git-Commit-User-Name>
358 <groupId>org.apache.maven.plugins</groupId>
359 <artifactId>maven-surefire-plugin</artifactId>
360 <version>${surefire.version}</version>
361 <configuration combine.self="override">
362 <useSystemClassLoader>false</useSystemClassLoader>
366 <groupId>org.apache.maven.plugins</groupId>
367 <artifactId>maven-failsafe-plugin</artifactId>
368 <version>${surefire.version}</version>
371 <groupId>org.apache.maven.plugins</groupId>
372 <artifactId>maven-compiler-plugin</artifactId>
374 <source>${maven.compiler.source}</source>
375 <target>${maven.compiler.target}</target>
379 <groupId>org.jacoco</groupId>
380 <artifactId>jacoco-maven-plugin</artifactId>
381 <version>${jacoco.version}</version>
384 <id>jacoco-instrument</id>
386 <goal>instrument</goal>
390 <id>jacoco-restore-instrumented-classes</id>
392 <goal>restore-instrumented-classes</goal>
397 <goal>prepare-agent</goal>
407 <phase>prepare-package</phase>