Update undertow-core and freemarker versions
[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    Copyright (C) 2021 Samsung Electronics. All rights reserved.
7   ================================================================================
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"
25          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">
27     <modelVersion>4.0.0</modelVersion>
28
29     <parent>
30         <groupId>org.onap.oparent</groupId>
31         <artifactId>oparent</artifactId>
32         <version>2.0.0</version>
33     </parent>
34
35     <groupId>org.onap.dcaegen2.services</groupId>
36     <artifactId>pm-mapper</artifactId>
37     <version>1.7.0-SNAPSHOT</version>
38
39
40     <name>dcaegen2-services-pm-mapper</name>
41     <description>Maps PM measurement data from XML to VES</description>
42     <packaging>jar</packaging>
43
44     <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>
49         <reactor.version>3.4.0</reactor.version>
50         <undertow.version>2.2.9.Final</undertow.version>
51         <gson.version>2.8.6</gson.version>
52         <freemarker.version>2.3.31</freemarker.version>
53         <commons.io.version>2.8.0</commons.io.version>
54         <xml.version>2.3.1</xml.version>
55         <jaxb.version>2.3.0.1</jaxb.version>
56         <dmaap-client.version>1.8.2</dmaap-client.version>
57         <!-- Testing Test Dependencies -->
58         <junit.version>5.3.2</junit.version>
59         <mockito.version>2.23.4</mockito.version>
60         <mockito-ju5-ext.version>2.23.4</mockito-ju5-ext.version>
61         <powermock.version>2.0.7</powermock.version>
62         <mockserver.version>5.11.2</mockserver.version>
63         <junit4.version>4.12</junit4.version>
64         <jsonschema.version>1.5.1</jsonschema.version>
65         <json.version>20210307</json.version>
66         <jackson.version>2.12.2</jackson.version>
67         <xerces.version>2.11.0</xerces.version>
68         <reactor.test>3.4.0</reactor.test>
69         <!-- Plugin Versions -->
70         <jacoco.version>0.8.2</jacoco.version>
71         <surefire.version>2.22.0</surefire.version>
72         <git-commit.version>3.0.0</git-commit.version>
73         <build-helper.version>3.0.0</build-helper.version>
74         <docker-maven.version>0.30.0</docker-maven.version>
75         <maven-jar.version>3.1.2</maven-jar.version>
76         <dependencies.version>3.1.1</dependencies.version>
77         <!-- Plugin Settings -->
78         <image-name>${docker.push.registry}/onap/${project.groupId}.${project.artifactId}</image-name>
79         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
80         <timestamp>${maven.build.timestamp}</timestamp>
81         <sonar.language>java</sonar.language>
82         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
83         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
84         <sonar.jacoco.reportPaths>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPaths>
85         <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
86         <sonar.projectVersion>${project.version}</sonar.projectVersion>
87         <compiler.target.version>1.11</compiler.target.version>
88         <compiler.source.version>1.11</compiler.source.version>
89         <onap.logging.version>1.2.2</onap.logging.version>
90         <classpath.separator>@@</classpath.separator>
91         <pmmapper.main.class>org.onap.dcaegen2.services.pmmapper.App</pmmapper.main.class>
92         <dep.dir.name>libs</dep.dir.name>
93         <ext.dep.dir.path>${dep.dir.name}/external</ext.dep.dir.path>
94
95         <docker-image.tag.latest>latest</docker-image.tag.latest>
96     </properties>
97
98     <dependencies>
99         <dependency>
100             <groupId>org.projectlombok</groupId>
101             <artifactId>lombok</artifactId>
102             <version>${lombok.version}</version>
103             <scope>provided</scope>
104         </dependency>
105         <dependency>
106             <groupId>io.projectreactor</groupId>
107             <artifactId>reactor-core</artifactId>
108             <version>${reactor.version}</version>
109         </dependency>
110         <dependency>
111             <groupId>io.undertow</groupId>
112             <artifactId>undertow-core</artifactId>
113             <version>${undertow.version}</version>
114         </dependency>
115         <dependency>
116             <groupId>javax.xml.bind</groupId>
117             <artifactId>jaxb-api</artifactId>
118             <version>${xml.version}</version>
119         </dependency>
120         <dependency>
121             <groupId>com.sun.xml.bind</groupId>
122             <artifactId>jaxb-core</artifactId>
123             <version>${jaxb.version}</version>
124         </dependency>
125         <dependency>
126             <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
127             <artifactId>dmaap-client</artifactId>
128             <version>${dmaap-client.version}</version>
129         </dependency>
130         <dependency>
131             <groupId>com.sun.xml.bind</groupId>
132             <artifactId>jaxb-impl</artifactId>
133             <version>${xml.version}</version>
134         </dependency>
135         <dependency>
136             <groupId>org.slf4j</groupId>
137             <artifactId>slf4j-api</artifactId>
138             <version>${sl4j.version}</version>
139         </dependency>
140         <dependency>
141             <groupId>ch.qos.logback</groupId>
142             <artifactId>logback-classic</artifactId>
143             <version>${logback.version}</version>
144         </dependency>
145         <dependency>
146             <groupId>org.onap.logging-analytics</groupId>
147             <artifactId>logging-slf4j</artifactId>
148             <version>${onap.logging.version}</version>
149         </dependency>
150         <dependency>
151             <groupId>javax.servlet</groupId>
152             <artifactId>servlet-api</artifactId>
153             <version>2.5</version>
154             <scope>provided</scope>
155         </dependency>
156         <dependency>
157             <groupId>com.google.code.gson</groupId>
158             <artifactId>gson</artifactId>
159             <version>${gson.version}</version>
160         </dependency>
161         <dependency>
162             <groupId>org.freemarker</groupId>
163             <artifactId>freemarker</artifactId>
164             <version>${freemarker.version}</version>
165         </dependency>
166         <dependency>
167             <groupId>commons-io</groupId>
168             <artifactId>commons-io</artifactId>
169             <version>${commons.io.version}</version>
170         </dependency>
171         <dependency>
172             <groupId>org.junit.jupiter</groupId>
173             <artifactId>junit-jupiter-engine</artifactId>
174             <version>${junit.version}</version>
175             <scope>test</scope>
176         </dependency>
177         <dependency>
178             <groupId>org.mockito</groupId>
179             <artifactId>mockito-junit-jupiter</artifactId>
180             <version>${mockito-ju5-ext.version}</version>
181             <scope>test</scope>
182         </dependency>
183
184         <dependency>
185             <groupId>org.mockito</groupId>
186             <artifactId>mockito-core</artifactId>
187             <version>${mockito.version}</version>
188             <scope>test</scope>
189         </dependency>
190         <dependency>
191             <groupId>org.powermock</groupId>
192             <artifactId>powermock-module-junit4</artifactId>
193             <version>${powermock.version}</version>
194             <scope>test</scope>
195         </dependency>
196         <dependency>
197             <groupId>org.junit.vintage</groupId>
198             <artifactId>junit-vintage-engine</artifactId>
199             <version>${junit.version}</version>
200             <scope>test</scope>
201         </dependency>
202         <dependency>
203             <groupId>org.powermock</groupId>
204             <artifactId>powermock-api-mockito2</artifactId>
205             <version>${powermock.version}</version>
206             <scope>test</scope>
207         </dependency>
208         <dependency>
209             <groupId>org.mock-server</groupId>
210             <artifactId>mockserver-netty</artifactId>
211             <version>${mockserver.version}</version>
212             <scope>test</scope>
213         </dependency>
214         <dependency>
215             <groupId>org.mock-server</groupId>
216             <artifactId>mockserver-client-java</artifactId>
217             <version>${mockserver.version}</version>
218             <scope>test</scope>
219         </dependency>
220         <dependency>
221             <groupId>org.json</groupId>
222             <artifactId>json</artifactId>
223             <version>${json.version}</version>
224             <scope>test</scope>
225         </dependency>
226         <dependency>
227             <groupId>com.fasterxml.jackson.core</groupId>
228             <artifactId>jackson-core</artifactId>
229             <version>${jackson.version}</version>
230             <scope>test</scope>
231         </dependency>
232         <dependency>
233             <groupId>org.junit.jupiter</groupId>
234             <artifactId>junit-jupiter-params</artifactId>
235             <version>${junit.version}</version>
236             <scope>test</scope>
237         </dependency>
238         <dependency>
239             <groupId>io.projectreactor</groupId>
240             <artifactId>reactor-test</artifactId>
241             <version>${reactor.test}</version>
242             <scope>test</scope>
243         </dependency>
244         <dependency>
245             <groupId>org.everit.json</groupId>
246             <artifactId>org.everit.json.schema</artifactId>
247             <version>${jsonschema.version}</version>
248             <scope>test</scope>
249         </dependency>
250         <dependency>
251             <groupId>xerces</groupId>
252             <artifactId>xercesImpl</artifactId>
253             <version>${xerces.version}</version>
254             <scope>test</scope>
255         </dependency>
256     </dependencies>
257
258     <build>
259         <plugins>
260             <plugin>
261                 <groupId>pl.project13.maven</groupId>
262                 <artifactId>git-commit-id-plugin</artifactId>
263                 <version>${git-commit.version}</version>
264                 <configuration>
265                     <dateFormat>${maven.build.timestamp.format}</dateFormat>
266                 </configuration>
267                 <executions>
268                     <execution>
269                         <id>get-git-info</id>
270                         <goals>
271                             <goal>revision</goal>
272                         </goals>
273                     </execution>
274                 </executions>
275             </plugin>
276             <plugin>
277                 <groupId>org.apache.maven.plugins</groupId>
278                 <artifactId>maven-dependency-plugin</artifactId>
279                 <version>${dependencies.version}</version>
280                 <configuration>
281                     <silent>true</silent>
282                     <includeScope>runtime</includeScope>
283                     <pathSeparator>${classpath.separator}</pathSeparator>
284                 </configuration>
285                 <executions>
286                     <execution>
287                         <id>copy-external-dependencies</id>
288                         <phase>prepare-package</phase>
289                         <goals>
290                             <goal>copy-dependencies</goal>
291                             <goal>build-classpath</goal>
292                         </goals>
293                         <configuration>
294                             <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
295                             <outputDirectory>${project.build.directory}/${ext.dep.dir.path}</outputDirectory>
296                             <prefix>./${ext.dep.dir.path}</prefix>
297                             <outputProperty>classpath.external</outputProperty>
298                         </configuration>
299                     </execution>
300                 </executions>
301             </plugin>
302             <plugin>
303                 <groupId>org.codehaus.mojo</groupId>
304                 <artifactId>build-helper-maven-plugin</artifactId>
305                 <version>${build-helper.version}</version>
306                 <executions>
307                     <execution>
308                         <id>fix-classpath-separator</id>
309                         <phase>prepare-package</phase>
310                         <goals>
311                             <goal>regex-properties</goal>
312                         </goals>
313                         <configuration>
314                             <regexPropertySettings>
315                                 <regexPropertySetting>
316                                     <name>classpath.external</name>
317                                     <value>${classpath.external}</value>
318                                     <regex>${classpath.separator}</regex>
319                                     <replacement xml:space="preserve"> </replacement>
320                                 </regexPropertySetting>
321                             </regexPropertySettings>
322                         </configuration>
323                     </execution>
324                 </executions>
325             </plugin>
326             <plugin>
327                 <groupId>io.fabric8</groupId>
328                 <artifactId>docker-maven-plugin</artifactId>
329                 <version>${docker-maven.version}</version>
330                 <configuration>
331                     <images>
332                         <image>
333                             <name>onap/${project.groupId}.${project.artifactId}:${docker-image.tag.latest}</name>
334                             <registry>${onap.nexus.dockerregistry.daily}</registry>
335                             <build>
336                                 <contextDir>${project.basedir}</contextDir>
337                                 <dockerFile>${project.build.outputDirectory}/Dockerfile</dockerFile>
338                                 <args>
339                                     <JAR>${project.build.finalName}.jar</JAR>
340                                 </args>
341                                 <cleanup>none</cleanup>
342                                 <tags>
343                                     <tag>${project.version}</tag>
344                                     <tag>${project.version}-${maven.build.timestamp}Z</tag>
345                                 </tags>
346                             </build>
347                         </image>
348                     </images>
349                 </configuration>
350             </plugin>
351             <plugin>
352                 <groupId>org.apache.maven.plugins</groupId>
353                 <artifactId>maven-jar-plugin</artifactId>
354                 <version>${maven-jar.version}</version>
355                 <configuration>
356                     <archive>
357                         <manifest>
358                             <mainClass>${pmmapper.main.class}</mainClass>
359                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
360                             <addBuildEnvironmentEntries>true</addBuildEnvironmentEntries>
361                             <useUniqueVersions>false</useUniqueVersions> <!-- workaround for MJAR-156 -->
362                         </manifest>
363                         <manifestEntries>
364                             <Class-Path>${classpath.external}</Class-Path>
365                             <Git-Branch>${git.branch}</Git-Branch>
366                             <Git-Build-Host>${git.build.host}</Git-Build-Host>
367                             <Git-Build-Time>${git.build.time}</Git-Build-Time>
368                             <Git-Build-User-Email>${git.build.user.email}</Git-Build-User-Email>
369                             <Git-Build-User-Name>${git.build.user.name}</Git-Build-User-Name>
370                             <Git-Build-Version>${git.build.version}</Git-Build-Version>
371                             <Git-Closest-Tag-Name>${git.closest.tag.name}</Git-Closest-Tag-Name>
372                             <Git-Commit-Id>${git.commit.id}</Git-Commit-Id>
373                             <Git-Commit-Message-Short>${git.commit.message.short}</Git-Commit-Message-Short>
374                             <Git-Commit-Time>${git.commit.time}</Git-Commit-Time>
375                             <Git-Commit-User-Email>${git.commit.user.email}</Git-Commit-User-Email>
376                             <Git-Commit-User-Name>${git.commit.user.name}</Git-Commit-User-Name>
377                         </manifestEntries>
378                     </archive>
379                 </configuration>
380             </plugin>
381             <plugin>
382                 <groupId>org.apache.maven.plugins</groupId>
383                 <artifactId>maven-surefire-plugin</artifactId>
384                 <version>${surefire.version}</version>
385                 <configuration combine.self="override">
386                     <useSystemClassLoader>false</useSystemClassLoader>
387                 </configuration>
388             </plugin>
389             <plugin>
390                 <groupId>org.apache.maven.plugins</groupId>
391                 <artifactId>maven-failsafe-plugin</artifactId>
392                 <version>${surefire.version}</version>
393             </plugin>
394             <plugin>
395                 <groupId>org.apache.maven.plugins</groupId>
396                 <artifactId>maven-compiler-plugin</artifactId>
397                 <configuration>
398                     <source>${maven.compiler.source}</source>
399                     <target>${maven.compiler.target}</target>
400                 </configuration>
401             </plugin>
402             <plugin>
403                 <groupId>org.jacoco</groupId>
404                 <artifactId>jacoco-maven-plugin</artifactId>
405                 <version>${jacoco.version}</version>
406                 <executions>
407                     <execution>
408                         <id>jacoco-instrument</id>
409                         <goals>
410                             <goal>instrument</goal>
411                         </goals>
412                     </execution>
413                     <execution>
414                         <id>jacoco-restore-instrumented-classes</id>
415                         <goals>
416                             <goal>restore-instrumented-classes</goal>
417                         </goals>
418                     </execution>
419                     <execution>
420                         <goals>
421                             <goal>prepare-agent</goal>
422                         </goals>
423                         <configuration>
424                             <excludes>
425                                 <exclude>*</exclude>
426                             </excludes>
427                         </configuration>
428                     </execution>
429                     <execution>
430                         <id>report</id>
431                         <phase>prepare-package</phase>
432                         <goals>
433                             <goal>report</goal>
434                         </goals>
435                     </execution>
436                 </executions>
437             </plugin>
438         </plugins>
439     </build>
440
441 </project>