[DCAE/PM-Mapper] Bump snapshot version to 1.5.1
[dcaegen2/services/pm-mapper.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
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
10
11        http://www.apache.org/licenses/LICENSE-2.0
12
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.
18
19   SPDX-License-Identifier: Apache-2.0
20   ============LICENSE_END=========================================================
21 -->
22
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>
27
28     <groupId>org.onap.dcaegen2.services</groupId>
29     <artifactId>pm-mapper</artifactId>
30     <version>1.5.1-SNAPSHOT</version>
31
32     <parent>
33         <groupId>org.onap.oparent</groupId>
34         <artifactId>oparent</artifactId>
35         <version>2.0.0</version>
36     </parent>
37
38     <name>dcaegen2-services-pm-mapper</name>
39     <description>Maps PM measurement data from XML to VES</description>
40     <packaging>jar</packaging>
41
42     <properties>
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>
89     </properties>
90
91     <dependencies>
92         <dependency>
93             <groupId>org.projectlombok</groupId>
94             <artifactId>lombok</artifactId>
95             <version>${lombok.version}</version>
96             <scope>provided</scope>
97         </dependency>
98         <dependency>
99             <groupId>io.projectreactor</groupId>
100             <artifactId>reactor-core</artifactId>
101             <version>${reactor.version}</version>
102         </dependency>
103         <dependency>
104             <groupId>io.undertow</groupId>
105             <artifactId>undertow-core</artifactId>
106             <version>${undertow.version}</version>
107         </dependency>
108         <dependency>
109             <groupId>javax.xml.bind</groupId>
110             <artifactId>jaxb-api</artifactId>
111             <version>${xml.version}</version>
112         </dependency>
113         <dependency>
114             <groupId>com.sun.xml.bind</groupId>
115             <artifactId>jaxb-core</artifactId>
116             <version>${jaxb.version}</version>
117         </dependency>
118         <dependency>
119             <groupId>com.sun.xml.bind</groupId>
120             <artifactId>jaxb-impl</artifactId>
121             <version>${xml.version}</version>
122         </dependency>
123         <dependency>
124             <groupId>org.slf4j</groupId>
125             <artifactId>slf4j-api</artifactId>
126             <version>${sl4j.version}</version>
127         </dependency>
128         <dependency>
129             <groupId>ch.qos.logback</groupId>
130             <artifactId>logback-classic</artifactId>
131             <version>${logback.version}</version>
132         </dependency>
133         <dependency>
134             <groupId>org.onap.logging-analytics</groupId>
135             <artifactId>logging-slf4j</artifactId>
136             <version>${onap.logging.version}</version>
137         </dependency>
138         <dependency>
139             <groupId>javax.servlet</groupId>
140             <artifactId>servlet-api</artifactId>
141             <version>2.5</version>
142             <scope>provided</scope>
143         </dependency>
144         <dependency>
145             <groupId>com.google.code.gson</groupId>
146             <artifactId>gson</artifactId>
147             <version>${gson.version}</version>
148         </dependency>
149         <dependency>
150             <groupId>org.freemarker</groupId>
151             <artifactId>freemarker</artifactId>
152             <version>${freemarker.version}</version>
153         </dependency>
154         <dependency>
155             <groupId>commons-io</groupId>
156             <artifactId>commons-io</artifactId>
157             <version>${commons.io.version}</version>
158         </dependency>
159         <dependency>
160             <groupId>org.junit.jupiter</groupId>
161             <artifactId>junit-jupiter-engine</artifactId>
162             <version>${junit.version}</version>
163             <scope>test</scope>
164         </dependency>
165         <dependency>
166             <groupId>org.mockito</groupId>
167             <artifactId>mockito-junit-jupiter</artifactId>
168             <version>${mockito-ju5-ext.version}</version>
169             <scope>test</scope>
170         </dependency>
171
172         <dependency>
173             <groupId>org.mockito</groupId>
174             <artifactId>mockito-core</artifactId>
175             <version>${mockito.version}</version>
176             <scope>test</scope>
177         </dependency>
178         <dependency>
179             <groupId>org.powermock</groupId>
180             <artifactId>powermock-module-junit4</artifactId>
181             <version>${powermock.version}</version>
182             <scope>test</scope>
183         </dependency>
184         <dependency>
185             <groupId>org.junit.vintage</groupId>
186             <artifactId>junit-vintage-engine</artifactId>
187             <version>${junit.version}</version>
188             <scope>test</scope>
189         </dependency>
190         <dependency>
191             <groupId>org.powermock</groupId>
192             <artifactId>powermock-api-mockito2</artifactId>
193             <version>${powermock.version}</version>
194             <scope>test</scope>
195         </dependency>
196         <dependency>
197             <groupId>org.mock-server</groupId>
198             <artifactId>mockserver-netty</artifactId>
199             <version>${mockserver.version}</version>
200             <scope>test</scope>
201         </dependency>
202         <dependency>
203             <groupId>org.mock-server</groupId>
204             <artifactId>mockserver-client-java</artifactId>
205             <version>${mockserver.version}</version>
206             <scope>test</scope>
207         </dependency>
208         <dependency>
209             <groupId>org.junit.jupiter</groupId>
210             <artifactId>junit-jupiter-params</artifactId>
211             <version>${junit.version}</version>
212             <scope>test</scope>
213         </dependency>
214         <dependency>
215             <groupId>io.projectreactor</groupId>
216             <artifactId>reactor-test</artifactId>
217             <version>${reactor.test}</version>
218             <scope>test</scope>
219         </dependency>
220         <dependency>
221             <groupId>org.everit.json</groupId>
222             <artifactId>org.everit.json.schema</artifactId>
223             <version>${jsonschema.version}</version>
224             <scope>test</scope>
225         </dependency>
226         <dependency>
227             <groupId>xerces</groupId>
228             <artifactId>xercesImpl</artifactId>
229             <version>${xerces.version}</version>
230             <scope>test</scope>
231         </dependency>
232     </dependencies>
233
234     <build>
235         <plugins>
236             <plugin>
237                 <groupId>pl.project13.maven</groupId>
238                 <artifactId>git-commit-id-plugin</artifactId>
239                 <version>${git-commit.version}</version>
240                 <configuration>
241                     <dateFormat>${maven.build.timestamp.format}</dateFormat>
242                 </configuration>
243                 <executions>
244                     <execution>
245                         <id>get-git-info</id>
246                         <goals>
247                             <goal>revision</goal>
248                         </goals>
249                     </execution>
250                 </executions>
251             </plugin>
252             <plugin>
253                 <groupId>org.apache.maven.plugins</groupId>
254                 <artifactId>maven-dependency-plugin</artifactId>
255                 <version>${dependencies.version}</version>
256                 <configuration>
257                     <silent>true</silent>
258                     <includeScope>runtime</includeScope>
259                     <pathSeparator>${classpath.separator}</pathSeparator>
260                 </configuration>
261                 <executions>
262                     <execution>
263                         <id>copy-external-dependencies</id>
264                         <phase>prepare-package</phase>
265                         <goals>
266                             <goal>copy-dependencies</goal>
267                             <goal>build-classpath</goal>
268                         </goals>
269                         <configuration>
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>
274                         </configuration>
275                     </execution>
276                 </executions>
277             </plugin>
278             <plugin>
279                 <groupId>org.codehaus.mojo</groupId>
280                 <artifactId>build-helper-maven-plugin</artifactId>
281                 <version>${build-helper.version}</version>
282                 <executions>
283                     <execution>
284                         <id>fix-classpath-separator</id>
285                         <phase>prepare-package</phase>
286                         <goals>
287                             <goal>regex-properties</goal>
288                         </goals>
289                         <configuration>
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>
298                         </configuration>
299                     </execution>
300                 </executions>
301             </plugin>
302             <plugin>
303                 <groupId>io.fabric8</groupId>
304                 <artifactId>docker-maven-plugin</artifactId>
305                 <version>${docker-maven.version}</version>
306                 <configuration>
307                     <images>
308                         <image>
309                             <name>onap/${project.groupId}.${project.artifactId}</name>
310                             <registry>${onap.nexus.dockerregistry.daily}</registry>
311                             <build>
312                                 <contextDir>${project.basedir}</contextDir>
313                                 <dockerFile>${project.build.outputDirectory}/Dockerfile</dockerFile>
314                                 <args>
315                                     <JAR>${project.build.finalName}.jar</JAR>
316                                 </args>
317                                 <cleanup>none</cleanup>
318                                 <tags>
319                                     <tag>${project.version}</tag>
320                                     <tag>${project.version}-${maven.build.timestamp}Z</tag>
321                                 </tags>
322                             </build>
323                         </image>
324                     </images>
325                 </configuration>
326             </plugin>
327             <plugin>
328                 <groupId>org.apache.maven.plugins</groupId>
329                 <artifactId>maven-jar-plugin</artifactId>
330                 <version>${maven-jar.version}</version>
331                 <configuration>
332                     <archive>
333                         <manifest>
334                             <mainClass>${pmmapper.main.class}</mainClass>
335                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
336                             <addBuildEnvironmentEntries>true</addBuildEnvironmentEntries>
337                             <useUniqueVersions>false</useUniqueVersions> <!-- workaround for MJAR-156 -->
338                         </manifest>
339                         <manifestEntries>
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>
353                         </manifestEntries>
354                     </archive>
355                 </configuration>
356             </plugin>
357             <plugin>
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>
363                 </configuration>
364             </plugin>
365             <plugin>
366                 <groupId>org.apache.maven.plugins</groupId>
367                 <artifactId>maven-failsafe-plugin</artifactId>
368                 <version>${surefire.version}</version>
369             </plugin>
370             <plugin>
371                 <groupId>org.apache.maven.plugins</groupId>
372                 <artifactId>maven-compiler-plugin</artifactId>
373                 <configuration>
374                     <source>${maven.compiler.source}</source>
375                     <target>${maven.compiler.target}</target>
376                 </configuration>
377             </plugin>
378             <plugin>
379                 <groupId>org.jacoco</groupId>
380                 <artifactId>jacoco-maven-plugin</artifactId>
381                 <version>${jacoco.version}</version>
382                 <executions>
383                     <execution>
384                         <id>jacoco-instrument</id>
385                         <goals>
386                             <goal>instrument</goal>
387                         </goals>
388                     </execution>
389                     <execution>
390                         <id>jacoco-restore-instrumented-classes</id>
391                         <goals>
392                             <goal>restore-instrumented-classes</goal>
393                         </goals>
394                     </execution>
395                     <execution>
396                         <goals>
397                             <goal>prepare-agent</goal>
398                         </goals>
399                         <configuration>
400                             <excludes>
401                                 <exclude>*</exclude>
402                             </excludes>
403                         </configuration>
404                     </execution>
405                     <execution>
406                         <id>report</id>
407                         <phase>prepare-package</phase>
408                         <goals>
409                             <goal>report</goal>
410                         </goals>
411                     </execution>
412                 </executions>
413             </plugin>
414         </plugins>
415     </build>
416
417 </project>