blob: ca6c42664dd92057d3408bc2e257e820cb3544f2 [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"
dfarrelly2d336f92019-02-22 15:31:10 +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>
dfarrelly2d336f92019-02-22 15:31:10 +000029 <version>1.0.0-SNAPSHOT</version>
JoeOLeary8338d2e2019-01-22 16:09:34 +000030
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>
JoeOLeary924ab472019-02-15 13:46:01 +000049 <freemarker.version>2.3.28</freemarker.version>
JoeOLeary8338d2e2019-01-22 16:09:34 +000050 <!-- Testing.Test Dependencies -->
51 <junit.version>5.3.2</junit.version>
52 <mockito.version>2.23.4</mockito.version>
53 <mockito-ju5-ext.version>2.23.4</mockito-ju5-ext.version>
54 <powermock.version>2.0.0</powermock.version>
emartin4751cb92019-01-29 12:21:51 +000055 <mockserver.version>3.10.8</mockserver.version>
JoeOLeary8338d2e2019-01-22 16:09:34 +000056 <junit4.version>4.12</junit4.version>
JoeOLeary924ab472019-02-15 13:46:01 +000057 <jsonschema.version>1.3.0</jsonschema.version>
emartin1f982f92019-03-05 16:29:36 +000058 <xerces.version>2.11.0</xerces.version>
JoeOLeary8338d2e2019-01-22 16:09:34 +000059 <!-- Plugin Versions -->
60 <shade.plugin.version>3.2.0</shade.plugin.version>
61 <jacoco.version>0.8.2</jacoco.version>
JoeOLearybecd8ee2019-01-28 13:44:27 +000062 <dockerfile.version>1.4.10</dockerfile.version>
JoeOLeary8338d2e2019-01-22 16:09:34 +000063 <surefire.version>2.22.0</surefire.version>
JoeOLearybecd8ee2019-01-28 13:44:27 +000064 <!-- Plugin Settings -->
JoeOLearyc4b59c42019-01-31 08:45:39 +000065 <image-name>${docker.push.registry}/onap/${project.groupId}.${project.artifactId}</image-name>
dfarrelly27cdb4f2019-03-01 14:26:42 +000066 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
dfarrelly2d336f92019-02-22 15:31:10 +000067 <timestamp>${maven.build.timestamp}</timestamp>
JoeOLearybecd8ee2019-01-28 13:44:27 +000068 <sonar.language>java</sonar.language>
69 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
70 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
71 <sonar.jacoco.reportPaths>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPaths>
72 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
73 <sonar.projectVersion>${project.version}</sonar.projectVersion>
JoeOLeary8338d2e2019-01-22 16:09:34 +000074 <compiler.target.version>1.8</compiler.target.version>
75 <compiler.source.version>1.8</compiler.source.version>
76 <shade.main>org.onap.dcaegen2.services.pmmapper.App</shade.main>
77 <shade.transformer>org.apache.maven.plugins.shade.resource.ManifestResourceTransformer</shade.transformer>
emartina8e48cf2019-02-08 18:22:27 +000078 <onap.logging.version>1.2.2</onap.logging.version>
JoeOLeary8338d2e2019-01-22 16:09:34 +000079 </properties>
80
81 <dependencies>
82 <dependency>
83 <groupId>org.projectlombok</groupId>
84 <artifactId>lombok</artifactId>
85 <version>${lombok.version}</version>
86 <scope>provided</scope>
87 </dependency>
88 <dependency>
89 <groupId>io.projectreactor</groupId>
90 <artifactId>reactor-core</artifactId>
91 <version>${reactor.version}</version>
92 </dependency>
93 <dependency>
94 <groupId>io.undertow</groupId>
95 <artifactId>undertow-core</artifactId>
96 <version>${undertow.version}</version>
97 </dependency>
98 <dependency>
99 <groupId>org.slf4j</groupId>
100 <artifactId>slf4j-api</artifactId>
101 <version>${sl4j.version}</version>
102 </dependency>
103 <dependency>
104 <groupId>ch.qos.logback</groupId>
105 <artifactId>logback-classic</artifactId>
106 <version>${logback.version}</version>
107 </dependency>
108 <dependency>
emartina8e48cf2019-02-08 18:22:27 +0000109 <groupId>org.onap.logging-analytics</groupId>
110 <artifactId>logging-slf4j</artifactId>
111 <version>${onap.logging.version}</version>
112 </dependency>
113 <dependency>
114 <groupId>javax.servlet</groupId>
115 <artifactId>servlet-api</artifactId>
116 <version>2.5</version>
117 <scope>provided</scope>
118 </dependency>
119 <dependency>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000120 <groupId>com.google.code.gson</groupId>
121 <artifactId>gson</artifactId>
122 <version>${gson.version}</version>
123 </dependency>
124 <dependency>
JoeOLeary924ab472019-02-15 13:46:01 +0000125 <groupId>org.freemarker</groupId>
126 <artifactId>freemarker</artifactId>
127 <version>${freemarker.version}</version>
128 </dependency>
129 <dependency>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000130 <groupId>org.junit.jupiter</groupId>
131 <artifactId>junit-jupiter-engine</artifactId>
132 <version>${junit.version}</version>
133 <scope>test</scope>
134 </dependency>
135 <dependency>
136 <groupId>org.mockito</groupId>
137 <artifactId>mockito-junit-jupiter</artifactId>
138 <version>${mockito-ju5-ext.version}</version>
139 <scope>test</scope>
140 </dependency>
141
142 <dependency>
143 <groupId>org.mockito</groupId>
144 <artifactId>mockito-core</artifactId>
145 <version>${mockito.version}</version>
146 <scope>test</scope>
147 </dependency>
148 <dependency>
149 <groupId>org.powermock</groupId>
150 <artifactId>powermock-module-junit4</artifactId>
151 <version>${powermock.version}</version>
152 <scope>test</scope>
153 </dependency>
154 <dependency>
155 <groupId>org.junit.vintage</groupId>
156 <artifactId>junit-vintage-engine</artifactId>
157 <version>${junit.version}</version>
158 <scope>test</scope>
159 </dependency>
160 <dependency>
161 <groupId>org.powermock</groupId>
162 <artifactId>powermock-api-mockito2</artifactId>
163 <version>${powermock.version}</version>
164 <scope>test</scope>
165 </dependency>
emartin4751cb92019-01-29 12:21:51 +0000166 <dependency>
167 <groupId>org.mock-server</groupId>
168 <artifactId>mockserver-netty</artifactId>
169 <version>${mockserver.version}</version>
170 <scope>test</scope>
171 </dependency>
172 <dependency>
173 <groupId>org.mock-server</groupId>
174 <artifactId>mockserver-client-java</artifactId>
175 <version>${mockserver.version}</version>
176 <scope>test</scope>
177 </dependency>
JoeOLeary924ab472019-02-15 13:46:01 +0000178 <dependency>
179 <groupId>org.junit.jupiter</groupId>
180 <artifactId>junit-jupiter-params</artifactId>
181 <version>${junit.version}</version>
182 <scope>test</scope>
183 </dependency>
184 <dependency>
185 <groupId>org.everit.json</groupId>
186 <artifactId>org.everit.json.schema</artifactId>
187 <version>${jsonschema.version}</version>
188 <scope>test</scope>
189 </dependency>
emartin1f982f92019-03-05 16:29:36 +0000190 <dependency>
191 <groupId>xerces</groupId>
192 <artifactId>xercesImpl</artifactId>
193 <version>${xerces.version}</version>
194 <scope>test</scope>
195 </dependency>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000196 </dependencies>
197
198 <build>
199 <plugins>
200 <plugin>
JoeOLearybecd8ee2019-01-28 13:44:27 +0000201 <groupId>com.spotify</groupId>
202 <artifactId>dockerfile-maven-plugin</artifactId>
203 <version>${dockerfile.version}</version>
204 <configuration>
JoeOLearyc4b59c42019-01-31 08:45:39 +0000205 <repository>${image-name}</repository>
JoeOLearybecd8ee2019-01-28 13:44:27 +0000206 <dockerfile>${project.build.outputDirectory}/Dockerfile</dockerfile>
207 <buildArgs>
208 <JAR>${project.build.finalName}-jar-with-dependencies.jar</JAR>
209 </buildArgs>
210 </configuration>
dfarrelly27cdb4f2019-03-01 14:26:42 +0000211 <executions>
212 <execution>
213 <id>tag-version</id>
214 <phase>none</phase>
215 <goals>
216 <goal>tag</goal>
217 </goals>
218 <configuration>
219 <tag>${project.version}-${timestamp}</tag>
220 </configuration>
221 </execution>
222 <execution>
223 <id>push-latest</id>
224 <phase>none</phase>
225 <goals>
226 <goal>push</goal>
227 </goals>
228 <configuration>
229 <tag>latest</tag>
230 </configuration>
231 </execution>
232 <execution>
233 <id>push-version</id>
234 <phase>none</phase>
235 <goals>
236 <goal>push</goal>
237 </goals>
238 <configuration>
239 <tag>${project.version}-${timestamp}</tag>
240 </configuration>
241 </execution>
242 </executions>
JoeOLearybecd8ee2019-01-28 13:44:27 +0000243 </plugin>
244 <plugin>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000245 <groupId>org.apache.maven.plugins</groupId>
246 <artifactId>maven-surefire-plugin</artifactId>
247 <version>${surefire.version}</version>
emartin4751cb92019-01-29 12:21:51 +0000248 <configuration combine.self="override">
249 <useSystemClassLoader>false</useSystemClassLoader>
250 </configuration>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000251 </plugin>
252 <plugin>
253 <groupId>org.apache.maven.plugins</groupId>
254 <artifactId>maven-failsafe-plugin</artifactId>
255 <version>${surefire.version}</version>
256 </plugin>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000257 <plugin>
258 <groupId>org.apache.maven.plugins</groupId>
259 <artifactId>maven-shade-plugin</artifactId>
260 <version>${shade.plugin.version}</version>
261 <executions>
262 <execution>
263 <goals>
264 <goal>shade</goal>
265 </goals>
266 <configuration>
267 <shadedArtifactAttached>true</shadedArtifactAttached>
JoeOLearybecd8ee2019-01-28 13:44:27 +0000268 <shadedClassifierName>jar-with-dependencies</shadedClassifierName>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000269 <transformers>
emartin4751cb92019-01-29 12:21:51 +0000270 <transformer
dfarrelly2d336f92019-02-22 15:31:10 +0000271 implementation="${shade.transformer}">
JoeOLeary8338d2e2019-01-22 16:09:34 +0000272 <mainClass>${shade.main}</mainClass>
273 </transformer>
274 </transformers>
275 </configuration>
276 </execution>
277 </executions>
278 </plugin>
279 <plugin>
280 <groupId>org.apache.maven.plugins</groupId>
281 <artifactId>maven-compiler-plugin</artifactId>
282 <configuration>
JoeOLearybecd8ee2019-01-28 13:44:27 +0000283 <source>${maven.compiler.source}</source>
284 <target>${maven.compiler.target}</target>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000285 </configuration>
286 </plugin>
287 <plugin>
288 <groupId>org.jacoco</groupId>
289 <artifactId>jacoco-maven-plugin</artifactId>
290 <version>${jacoco.version}</version>
291 <executions>
292 <execution>
293 <id>jacoco-instrument</id>
294 <goals>
295 <goal>instrument</goal>
296 </goals>
297 </execution>
298 <execution>
299 <id>jacoco-restore-instrumented-classes</id>
300 <goals>
301 <goal>restore-instrumented-classes</goal>
302 </goals>
303 </execution>
304 <execution>
305 <goals>
306 <goal>prepare-agent</goal>
307 </goals>
JoeOLearye5013912019-03-01 14:09:52 +0000308 <configuration>
309 <excludes>
310 <exclude>*</exclude>
311 </excludes>
312 </configuration>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000313 </execution>
314 <execution>
315 <id>report</id>
316 <phase>prepare-package</phase>
317 <goals>
318 <goal>report</goal>
319 </goals>
320 </execution>
321 </executions>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000322 </plugin>
323 </plugins>
324 </build>
325
326</project>