blob: 9f9426b719ec78a8c447f08fd5683f036b1239a1 [file] [log] [blame]
JoeOLeary8338d2e2019-01-22 16:09:34 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!--
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
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
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.
17
18 SPDX-License-Identifier: Apache-2.0
19 ============LICENSE_END=========================================================
20-->
21
22<project xmlns="http://maven.apache.org/POM/4.0.0"
emartin4751cb92019-01-29 12:21:51 +000023 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">
JoeOLeary8338d2e2019-01-22 16:09:34 +000025 <modelVersion>4.0.0</modelVersion>
26
27 <groupId>org.onap.dcaegen2.services</groupId>
28 <artifactId>pm-mapper</artifactId>
29 <version>1.0-SNAPSHOT</version>
30
JoeOLearybecd8ee2019-01-28 13:44:27 +000031 <parent>
32 <groupId>org.onap.oparent</groupId>
33 <artifactId>oparent</artifactId>
34 <version>1.2.0</version>
35 </parent>
36
JoeOLeary4fde9d32019-02-12 15:49:07 +000037 <name>dcaegen2-services-pm-mapper</name>
38 <description>Maps PM measurement data from XML to VES</description>
39 <packaging>jar</packaging>
40
JoeOLeary8338d2e2019-01-22 16:09:34 +000041 <properties>
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 <!-- Testing.Test Dependencies -->
50 <junit.version>5.3.2</junit.version>
51 <mockito.version>2.23.4</mockito.version>
52 <mockito-ju5-ext.version>2.23.4</mockito-ju5-ext.version>
53 <powermock.version>2.0.0</powermock.version>
emartin4751cb92019-01-29 12:21:51 +000054 <mockserver.version>3.10.8</mockserver.version>
JoeOLeary8338d2e2019-01-22 16:09:34 +000055 <junit4.version>4.12</junit4.version>
56 <!-- Plugin Versions -->
57 <shade.plugin.version>3.2.0</shade.plugin.version>
58 <jacoco.version>0.8.2</jacoco.version>
JoeOLearybecd8ee2019-01-28 13:44:27 +000059 <dockerfile.version>1.4.10</dockerfile.version>
JoeOLeary8338d2e2019-01-22 16:09:34 +000060 <surefire.version>2.22.0</surefire.version>
JoeOLearybecd8ee2019-01-28 13:44:27 +000061 <!-- Plugin Settings -->
JoeOLearyc4b59c42019-01-31 08:45:39 +000062 <image-name>${docker.push.registry}/onap/${project.groupId}.${project.artifactId}</image-name>
JoeOLearybecd8ee2019-01-28 13:44:27 +000063 <sonar.language>java</sonar.language>
64 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
65 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
66 <sonar.jacoco.reportPaths>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPaths>
67 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
68 <sonar.projectVersion>${project.version}</sonar.projectVersion>
JoeOLeary8338d2e2019-01-22 16:09:34 +000069 <compiler.target.version>1.8</compiler.target.version>
70 <compiler.source.version>1.8</compiler.source.version>
71 <shade.main>org.onap.dcaegen2.services.pmmapper.App</shade.main>
72 <shade.transformer>org.apache.maven.plugins.shade.resource.ManifestResourceTransformer</shade.transformer>
emartina8e48cf2019-02-08 18:22:27 +000073 <onap.logging.version>1.2.2</onap.logging.version>
JoeOLeary8338d2e2019-01-22 16:09:34 +000074 </properties>
75
76 <dependencies>
77 <dependency>
78 <groupId>org.projectlombok</groupId>
79 <artifactId>lombok</artifactId>
80 <version>${lombok.version}</version>
81 <scope>provided</scope>
82 </dependency>
83 <dependency>
84 <groupId>io.projectreactor</groupId>
85 <artifactId>reactor-core</artifactId>
86 <version>${reactor.version}</version>
87 </dependency>
88 <dependency>
89 <groupId>io.undertow</groupId>
90 <artifactId>undertow-core</artifactId>
91 <version>${undertow.version}</version>
92 </dependency>
93 <dependency>
94 <groupId>org.slf4j</groupId>
95 <artifactId>slf4j-api</artifactId>
96 <version>${sl4j.version}</version>
97 </dependency>
98 <dependency>
99 <groupId>ch.qos.logback</groupId>
100 <artifactId>logback-classic</artifactId>
101 <version>${logback.version}</version>
102 </dependency>
103 <dependency>
emartina8e48cf2019-02-08 18:22:27 +0000104 <groupId>org.onap.logging-analytics</groupId>
105 <artifactId>logging-slf4j</artifactId>
106 <version>${onap.logging.version}</version>
107 </dependency>
108 <dependency>
109 <groupId>javax.servlet</groupId>
110 <artifactId>servlet-api</artifactId>
111 <version>2.5</version>
112 <scope>provided</scope>
113 </dependency>
114 <dependency>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000115 <groupId>com.google.code.gson</groupId>
116 <artifactId>gson</artifactId>
117 <version>${gson.version}</version>
118 </dependency>
119 <dependency>
120 <groupId>org.junit.jupiter</groupId>
121 <artifactId>junit-jupiter-engine</artifactId>
122 <version>${junit.version}</version>
123 <scope>test</scope>
124 </dependency>
125 <dependency>
126 <groupId>org.mockito</groupId>
127 <artifactId>mockito-junit-jupiter</artifactId>
128 <version>${mockito-ju5-ext.version}</version>
129 <scope>test</scope>
130 </dependency>
131
132 <dependency>
133 <groupId>org.mockito</groupId>
134 <artifactId>mockito-core</artifactId>
135 <version>${mockito.version}</version>
136 <scope>test</scope>
137 </dependency>
138 <dependency>
139 <groupId>org.powermock</groupId>
140 <artifactId>powermock-module-junit4</artifactId>
141 <version>${powermock.version}</version>
142 <scope>test</scope>
143 </dependency>
144 <dependency>
145 <groupId>org.junit.vintage</groupId>
146 <artifactId>junit-vintage-engine</artifactId>
147 <version>${junit.version}</version>
148 <scope>test</scope>
149 </dependency>
150 <dependency>
151 <groupId>org.powermock</groupId>
152 <artifactId>powermock-api-mockito2</artifactId>
153 <version>${powermock.version}</version>
154 <scope>test</scope>
155 </dependency>
emartin4751cb92019-01-29 12:21:51 +0000156 <dependency>
157 <groupId>org.mock-server</groupId>
158 <artifactId>mockserver-netty</artifactId>
159 <version>${mockserver.version}</version>
160 <scope>test</scope>
161 </dependency>
162 <dependency>
163 <groupId>org.mock-server</groupId>
164 <artifactId>mockserver-client-java</artifactId>
165 <version>${mockserver.version}</version>
166 <scope>test</scope>
167 </dependency>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000168 </dependencies>
169
170 <build>
171 <plugins>
172 <plugin>
JoeOLearybecd8ee2019-01-28 13:44:27 +0000173 <groupId>com.spotify</groupId>
174 <artifactId>dockerfile-maven-plugin</artifactId>
175 <version>${dockerfile.version}</version>
176 <configuration>
JoeOLearyc4b59c42019-01-31 08:45:39 +0000177 <repository>${image-name}</repository>
JoeOLearybecd8ee2019-01-28 13:44:27 +0000178 <tag>${project.version}</tag>
179 <dockerfile>${project.build.outputDirectory}/Dockerfile</dockerfile>
180 <buildArgs>
181 <JAR>${project.build.finalName}-jar-with-dependencies.jar</JAR>
182 </buildArgs>
183 </configuration>
184 </plugin>
185 <plugin>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000186 <groupId>org.apache.maven.plugins</groupId>
187 <artifactId>maven-surefire-plugin</artifactId>
188 <version>${surefire.version}</version>
emartin4751cb92019-01-29 12:21:51 +0000189 <configuration combine.self="override">
190 <useSystemClassLoader>false</useSystemClassLoader>
191 </configuration>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000192 </plugin>
193 <plugin>
194 <groupId>org.apache.maven.plugins</groupId>
195 <artifactId>maven-failsafe-plugin</artifactId>
196 <version>${surefire.version}</version>
197 </plugin>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000198 <plugin>
199 <groupId>org.apache.maven.plugins</groupId>
200 <artifactId>maven-shade-plugin</artifactId>
201 <version>${shade.plugin.version}</version>
202 <executions>
203 <execution>
204 <goals>
205 <goal>shade</goal>
206 </goals>
207 <configuration>
208 <shadedArtifactAttached>true</shadedArtifactAttached>
JoeOLearybecd8ee2019-01-28 13:44:27 +0000209 <shadedClassifierName>jar-with-dependencies</shadedClassifierName>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000210 <transformers>
emartin4751cb92019-01-29 12:21:51 +0000211 <transformer
212 implementation="${shade.transformer}">
JoeOLeary8338d2e2019-01-22 16:09:34 +0000213 <mainClass>${shade.main}</mainClass>
214 </transformer>
215 </transformers>
216 </configuration>
217 </execution>
218 </executions>
219 </plugin>
220 <plugin>
221 <groupId>org.apache.maven.plugins</groupId>
222 <artifactId>maven-compiler-plugin</artifactId>
223 <configuration>
JoeOLearybecd8ee2019-01-28 13:44:27 +0000224 <source>${maven.compiler.source}</source>
225 <target>${maven.compiler.target}</target>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000226 </configuration>
227 </plugin>
228 <plugin>
229 <groupId>org.jacoco</groupId>
230 <artifactId>jacoco-maven-plugin</artifactId>
231 <version>${jacoco.version}</version>
232 <executions>
233 <execution>
234 <id>jacoco-instrument</id>
235 <goals>
236 <goal>instrument</goal>
237 </goals>
238 </execution>
239 <execution>
240 <id>jacoco-restore-instrumented-classes</id>
241 <goals>
242 <goal>restore-instrumented-classes</goal>
243 </goals>
244 </execution>
245 <execution>
246 <goals>
247 <goal>prepare-agent</goal>
248 </goals>
249 </execution>
250 <execution>
251 <id>report</id>
252 <phase>prepare-package</phase>
253 <goals>
254 <goal>report</goal>
255 </goals>
256 </execution>
257 </executions>
258 <configuration>
259 <excludes>
260 <exclude>**/*App.*</exclude>
261 </excludes>
262 </configuration>
263 </plugin>
264 </plugins>
265 </build>
266
267</project>