1 <?xml version="1.0" encoding="UTF-8"?>
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
10 http://www.apache.org/licenses/LICENSE-2.0
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.
18 SPDX-License-Identifier: Apache-2.0
19 ============LICENSE_END=========================================================
22 <project xmlns="http://maven.apache.org/POM/4.0.0"
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">
25 <modelVersion>4.0.0</modelVersion>
27 <groupId>org.onap.dcaegen2.services</groupId>
28 <artifactId>pm-mapper</artifactId>
29 <version>1.2.0-SNAPSHOT</version>
32 <groupId>org.onap.oparent</groupId>
33 <artifactId>oparent</artifactId>
34 <version>2.0.0</version>
37 <name>dcaegen2-services-pm-mapper</name>
38 <description>Maps PM measurement data from XML to VES</description>
39 <packaging>jar</packaging>
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>
49 <freemarker.version>2.3.28</freemarker.version>
50 <commons.io.version>2.6</commons.io.version>
51 <!-- Testing.Test Dependencies -->
52 <junit.version>5.3.2</junit.version>
53 <mockito.version>2.23.4</mockito.version>
54 <mockito-ju5-ext.version>2.23.4</mockito-ju5-ext.version>
55 <powermock.version>2.0.0</powermock.version>
56 <mockserver.version>3.10.8</mockserver.version>
57 <junit4.version>4.12</junit4.version>
58 <jsonschema.version>1.3.0</jsonschema.version>
59 <xerces.version>2.11.0</xerces.version>
60 <reactor.test>3.1.0.RELEASE</reactor.test>
61 <!-- Plugin Versions -->
62 <jacoco.version>0.8.2</jacoco.version>
63 <surefire.version>2.22.0</surefire.version>
64 <git-commit.version>3.0.0</git-commit.version>
65 <build-helper.version>3.0.0</build-helper.version>
66 <docker-maven.version>0.30.0</docker-maven.version>
67 <maven-jar.version>3.1.2</maven-jar.version>
68 <dependencies.version>3.1.1</dependencies.version>
69 <!-- Plugin Settings -->
70 <image-name>${docker.push.registry}/onap/${project.groupId}.${project.artifactId}</image-name>
71 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
72 <timestamp>${maven.build.timestamp}</timestamp>
73 <sonar.language>java</sonar.language>
74 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
75 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
76 <sonar.jacoco.reportPaths>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPaths>
77 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
78 <sonar.projectVersion>${project.version}</sonar.projectVersion>
79 <compiler.target.version>1.8</compiler.target.version>
80 <compiler.source.version>1.8</compiler.source.version>
81 <onap.logging.version>1.2.2</onap.logging.version>
82 <classpath.separator>@@</classpath.separator>
83 <pmmapper.main.class>org.onap.dcaegen2.services.pmmapper.App</pmmapper.main.class>
84 <dep.dir.name>libs</dep.dir.name>
85 <ext.dep.dir.path>${dep.dir.name}/external</ext.dep.dir.path>
90 <groupId>org.projectlombok</groupId>
91 <artifactId>lombok</artifactId>
92 <version>${lombok.version}</version>
93 <scope>provided</scope>
96 <groupId>io.projectreactor</groupId>
97 <artifactId>reactor-core</artifactId>
98 <version>${reactor.version}</version>
101 <groupId>io.undertow</groupId>
102 <artifactId>undertow-core</artifactId>
103 <version>${undertow.version}</version>
106 <groupId>org.slf4j</groupId>
107 <artifactId>slf4j-api</artifactId>
108 <version>${sl4j.version}</version>
111 <groupId>ch.qos.logback</groupId>
112 <artifactId>logback-classic</artifactId>
113 <version>${logback.version}</version>
116 <groupId>org.onap.logging-analytics</groupId>
117 <artifactId>logging-slf4j</artifactId>
118 <version>${onap.logging.version}</version>
121 <groupId>javax.servlet</groupId>
122 <artifactId>servlet-api</artifactId>
123 <version>2.5</version>
124 <scope>provided</scope>
127 <groupId>com.google.code.gson</groupId>
128 <artifactId>gson</artifactId>
129 <version>${gson.version}</version>
132 <groupId>org.freemarker</groupId>
133 <artifactId>freemarker</artifactId>
134 <version>${freemarker.version}</version>
137 <groupId>commons-io</groupId>
138 <artifactId>commons-io</artifactId>
139 <version>${commons.io.version}</version>
142 <groupId>org.junit.jupiter</groupId>
143 <artifactId>junit-jupiter-engine</artifactId>
144 <version>${junit.version}</version>
148 <groupId>org.mockito</groupId>
149 <artifactId>mockito-junit-jupiter</artifactId>
150 <version>${mockito-ju5-ext.version}</version>
155 <groupId>org.mockito</groupId>
156 <artifactId>mockito-core</artifactId>
157 <version>${mockito.version}</version>
161 <groupId>org.powermock</groupId>
162 <artifactId>powermock-module-junit4</artifactId>
163 <version>${powermock.version}</version>
167 <groupId>org.junit.vintage</groupId>
168 <artifactId>junit-vintage-engine</artifactId>
169 <version>${junit.version}</version>
173 <groupId>org.powermock</groupId>
174 <artifactId>powermock-api-mockito2</artifactId>
175 <version>${powermock.version}</version>
179 <groupId>org.mock-server</groupId>
180 <artifactId>mockserver-netty</artifactId>
181 <version>${mockserver.version}</version>
185 <groupId>org.mock-server</groupId>
186 <artifactId>mockserver-client-java</artifactId>
187 <version>${mockserver.version}</version>
191 <groupId>org.junit.jupiter</groupId>
192 <artifactId>junit-jupiter-params</artifactId>
193 <version>${junit.version}</version>
197 <groupId>io.projectreactor</groupId>
198 <artifactId>reactor-test</artifactId>
199 <version>${reactor.test}</version>
203 <groupId>org.everit.json</groupId>
204 <artifactId>org.everit.json.schema</artifactId>
205 <version>${jsonschema.version}</version>
209 <groupId>xerces</groupId>
210 <artifactId>xercesImpl</artifactId>
211 <version>${xerces.version}</version>
219 <groupId>pl.project13.maven</groupId>
220 <artifactId>git-commit-id-plugin</artifactId>
221 <version>${git-commit.version}</version>
223 <dateFormat>${maven.build.timestamp.format}</dateFormat>
227 <id>get-git-info</id>
229 <goal>revision</goal>
235 <groupId>org.apache.maven.plugins</groupId>
236 <artifactId>maven-dependency-plugin</artifactId>
237 <version>${dependencies.version}</version>
239 <silent>true</silent>
240 <includeScope>runtime</includeScope>
241 <pathSeparator>${classpath.separator}</pathSeparator>
245 <id>copy-external-dependencies</id>
246 <phase>prepare-package</phase>
248 <goal>copy-dependencies</goal>
249 <goal>build-classpath</goal>
252 <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
253 <outputDirectory>${project.build.directory}/${ext.dep.dir.path}</outputDirectory>
254 <prefix>./${ext.dep.dir.path}</prefix>
255 <outputProperty>classpath.external</outputProperty>
261 <groupId>org.codehaus.mojo</groupId>
262 <artifactId>build-helper-maven-plugin</artifactId>
263 <version>${build-helper.version}</version>
266 <id>fix-classpath-separator</id>
267 <phase>prepare-package</phase>
269 <goal>regex-properties</goal>
272 <regexPropertySettings>
273 <regexPropertySetting>
274 <name>classpath.external</name>
275 <value>${classpath.external}</value>
276 <regex>${classpath.separator}</regex>
277 <replacement xml:space="preserve"> </replacement>
278 </regexPropertySetting>
279 </regexPropertySettings>
285 <groupId>io.fabric8</groupId>
286 <artifactId>docker-maven-plugin</artifactId>
287 <version>${docker-maven.version}</version>
291 <name>onap/${project.groupId}.${project.artifactId}</name>
292 <registry>${onap.nexus.dockerregistry.daily}</registry>
294 <contextDir>${project.basedir}</contextDir>
295 <dockerFile>${project.build.outputDirectory}/Dockerfile</dockerFile>
297 <JAR>${project.build.finalName}.jar</JAR>
299 <cleanup>none</cleanup>
301 <tag>${project.version}</tag>
302 <tag>${project.version}-${maven.build.timestamp}Z</tag>
310 <groupId>org.apache.maven.plugins</groupId>
311 <artifactId>maven-jar-plugin</artifactId>
312 <version>${maven-jar.version}</version>
316 <mainClass>${pmmapper.main.class}</mainClass>
317 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
318 <addBuildEnvironmentEntries>true</addBuildEnvironmentEntries>
319 <useUniqueVersions>false</useUniqueVersions> <!-- workaround for MJAR-156 -->
322 <Class-Path>${classpath.external}</Class-Path>
323 <Git-Branch>${git.branch}</Git-Branch>
324 <Git-Build-Host>${git.build.host}</Git-Build-Host>
325 <Git-Build-Time>${git.build.time}</Git-Build-Time>
326 <Git-Build-User-Email>${git.build.user.email}</Git-Build-User-Email>
327 <Git-Build-User-Name>${git.build.user.name}</Git-Build-User-Name>
328 <Git-Build-Version>${git.build.version}</Git-Build-Version>
329 <Git-Closest-Tag-Name>${git.closest.tag.name}</Git-Closest-Tag-Name>
330 <Git-Commit-Id>${git.commit.id}</Git-Commit-Id>
331 <Git-Commit-Message-Short>${git.commit.message.short}</Git-Commit-Message-Short>
332 <Git-Commit-Time>${git.commit.time}</Git-Commit-Time>
333 <Git-Commit-User-Email>${git.commit.user.email}</Git-Commit-User-Email>
334 <Git-Commit-User-Name>${git.commit.user.name}</Git-Commit-User-Name>
340 <groupId>org.apache.maven.plugins</groupId>
341 <artifactId>maven-surefire-plugin</artifactId>
342 <version>${surefire.version}</version>
343 <configuration combine.self="override">
344 <useSystemClassLoader>false</useSystemClassLoader>
348 <groupId>org.apache.maven.plugins</groupId>
349 <artifactId>maven-failsafe-plugin</artifactId>
350 <version>${surefire.version}</version>
353 <groupId>org.apache.maven.plugins</groupId>
354 <artifactId>maven-compiler-plugin</artifactId>
356 <source>${maven.compiler.source}</source>
357 <target>${maven.compiler.target}</target>
361 <groupId>org.jacoco</groupId>
362 <artifactId>jacoco-maven-plugin</artifactId>
363 <version>${jacoco.version}</version>
366 <id>jacoco-instrument</id>
368 <goal>instrument</goal>
372 <id>jacoco-restore-instrumented-classes</id>
374 <goal>restore-instrumented-classes</goal>
379 <goal>prepare-agent</goal>
389 <phase>prepare-package</phase>