blob: 3b95207da9bcc69fdb5ba205e92a518769344aa2 [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
JoeOLeary8338d2e2019-01-22 16:09:34 +000037 <properties>
38 <!-- Dependency Versions -->
39 <lombok.version>1.18.4</lombok.version>
40 <sl4j.version>1.7.25</sl4j.version>
41 <logback.version>1.2.3</logback.version>
42 <reactor.version>3.2.3.RELEASE</reactor.version>
43 <undertow.version>2.0.16.Final</undertow.version>
44 <gson.version>2.8.5</gson.version>
45 <!-- Testing.Test Dependencies -->
46 <junit.version>5.3.2</junit.version>
47 <mockito.version>2.23.4</mockito.version>
48 <mockito-ju5-ext.version>2.23.4</mockito-ju5-ext.version>
49 <powermock.version>2.0.0</powermock.version>
emartin4751cb92019-01-29 12:21:51 +000050 <mockserver.version>3.10.8</mockserver.version>
JoeOLeary8338d2e2019-01-22 16:09:34 +000051 <junit4.version>4.12</junit4.version>
52 <!-- Plugin Versions -->
53 <shade.plugin.version>3.2.0</shade.plugin.version>
54 <jacoco.version>0.8.2</jacoco.version>
JoeOLearybecd8ee2019-01-28 13:44:27 +000055 <dockerfile.version>1.4.10</dockerfile.version>
JoeOLeary8338d2e2019-01-22 16:09:34 +000056 <surefire.version>2.22.0</surefire.version>
JoeOLearybecd8ee2019-01-28 13:44:27 +000057 <!-- Plugin Settings -->
JoeOLearyc4b59c42019-01-31 08:45:39 +000058 <image-name>${docker.push.registry}/onap/${project.groupId}.${project.artifactId}</image-name>
JoeOLearybecd8ee2019-01-28 13:44:27 +000059 <sonar.language>java</sonar.language>
60 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
61 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
62 <sonar.jacoco.reportPaths>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPaths>
63 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
64 <sonar.projectVersion>${project.version}</sonar.projectVersion>
JoeOLeary8338d2e2019-01-22 16:09:34 +000065 <compiler.target.version>1.8</compiler.target.version>
66 <compiler.source.version>1.8</compiler.source.version>
67 <shade.main>org.onap.dcaegen2.services.pmmapper.App</shade.main>
68 <shade.transformer>org.apache.maven.plugins.shade.resource.ManifestResourceTransformer</shade.transformer>
emartina8e48cf2019-02-08 18:22:27 +000069 <onap.logging.version>1.2.2</onap.logging.version>
JoeOLeary8338d2e2019-01-22 16:09:34 +000070 </properties>
71
72 <dependencies>
73 <dependency>
74 <groupId>org.projectlombok</groupId>
75 <artifactId>lombok</artifactId>
76 <version>${lombok.version}</version>
77 <scope>provided</scope>
78 </dependency>
79 <dependency>
80 <groupId>io.projectreactor</groupId>
81 <artifactId>reactor-core</artifactId>
82 <version>${reactor.version}</version>
83 </dependency>
84 <dependency>
85 <groupId>io.undertow</groupId>
86 <artifactId>undertow-core</artifactId>
87 <version>${undertow.version}</version>
88 </dependency>
89 <dependency>
90 <groupId>org.slf4j</groupId>
91 <artifactId>slf4j-api</artifactId>
92 <version>${sl4j.version}</version>
93 </dependency>
94 <dependency>
95 <groupId>ch.qos.logback</groupId>
96 <artifactId>logback-classic</artifactId>
97 <version>${logback.version}</version>
98 </dependency>
99 <dependency>
emartina8e48cf2019-02-08 18:22:27 +0000100 <groupId>org.onap.logging-analytics</groupId>
101 <artifactId>logging-slf4j</artifactId>
102 <version>${onap.logging.version}</version>
103 </dependency>
104 <dependency>
105 <groupId>javax.servlet</groupId>
106 <artifactId>servlet-api</artifactId>
107 <version>2.5</version>
108 <scope>provided</scope>
109 </dependency>
110 <dependency>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000111 <groupId>com.google.code.gson</groupId>
112 <artifactId>gson</artifactId>
113 <version>${gson.version}</version>
114 </dependency>
115 <dependency>
116 <groupId>org.junit.jupiter</groupId>
117 <artifactId>junit-jupiter-engine</artifactId>
118 <version>${junit.version}</version>
119 <scope>test</scope>
120 </dependency>
121 <dependency>
122 <groupId>org.mockito</groupId>
123 <artifactId>mockito-junit-jupiter</artifactId>
124 <version>${mockito-ju5-ext.version}</version>
125 <scope>test</scope>
126 </dependency>
127
128 <dependency>
129 <groupId>org.mockito</groupId>
130 <artifactId>mockito-core</artifactId>
131 <version>${mockito.version}</version>
132 <scope>test</scope>
133 </dependency>
134 <dependency>
135 <groupId>org.powermock</groupId>
136 <artifactId>powermock-module-junit4</artifactId>
137 <version>${powermock.version}</version>
138 <scope>test</scope>
139 </dependency>
140 <dependency>
141 <groupId>org.junit.vintage</groupId>
142 <artifactId>junit-vintage-engine</artifactId>
143 <version>${junit.version}</version>
144 <scope>test</scope>
145 </dependency>
146 <dependency>
147 <groupId>org.powermock</groupId>
148 <artifactId>powermock-api-mockito2</artifactId>
149 <version>${powermock.version}</version>
150 <scope>test</scope>
151 </dependency>
emartin4751cb92019-01-29 12:21:51 +0000152 <dependency>
153 <groupId>org.mock-server</groupId>
154 <artifactId>mockserver-netty</artifactId>
155 <version>${mockserver.version}</version>
156 <scope>test</scope>
157 </dependency>
158 <dependency>
159 <groupId>org.mock-server</groupId>
160 <artifactId>mockserver-client-java</artifactId>
161 <version>${mockserver.version}</version>
162 <scope>test</scope>
163 </dependency>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000164 </dependencies>
165
166 <build>
167 <plugins>
168 <plugin>
JoeOLearybecd8ee2019-01-28 13:44:27 +0000169 <groupId>com.spotify</groupId>
170 <artifactId>dockerfile-maven-plugin</artifactId>
171 <version>${dockerfile.version}</version>
172 <configuration>
JoeOLearyc4b59c42019-01-31 08:45:39 +0000173 <repository>${image-name}</repository>
JoeOLearybecd8ee2019-01-28 13:44:27 +0000174 <tag>${project.version}</tag>
175 <dockerfile>${project.build.outputDirectory}/Dockerfile</dockerfile>
176 <buildArgs>
177 <JAR>${project.build.finalName}-jar-with-dependencies.jar</JAR>
178 </buildArgs>
179 </configuration>
180 </plugin>
181 <plugin>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000182 <groupId>org.apache.maven.plugins</groupId>
183 <artifactId>maven-surefire-plugin</artifactId>
184 <version>${surefire.version}</version>
emartin4751cb92019-01-29 12:21:51 +0000185 <configuration combine.self="override">
186 <useSystemClassLoader>false</useSystemClassLoader>
187 </configuration>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000188 </plugin>
189 <plugin>
190 <groupId>org.apache.maven.plugins</groupId>
191 <artifactId>maven-failsafe-plugin</artifactId>
192 <version>${surefire.version}</version>
193 </plugin>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000194 <plugin>
195 <groupId>org.apache.maven.plugins</groupId>
196 <artifactId>maven-shade-plugin</artifactId>
197 <version>${shade.plugin.version}</version>
198 <executions>
199 <execution>
200 <goals>
201 <goal>shade</goal>
202 </goals>
203 <configuration>
204 <shadedArtifactAttached>true</shadedArtifactAttached>
JoeOLearybecd8ee2019-01-28 13:44:27 +0000205 <shadedClassifierName>jar-with-dependencies</shadedClassifierName>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000206 <transformers>
emartin4751cb92019-01-29 12:21:51 +0000207 <transformer
208 implementation="${shade.transformer}">
JoeOLeary8338d2e2019-01-22 16:09:34 +0000209 <mainClass>${shade.main}</mainClass>
210 </transformer>
211 </transformers>
212 </configuration>
213 </execution>
214 </executions>
215 </plugin>
216 <plugin>
217 <groupId>org.apache.maven.plugins</groupId>
218 <artifactId>maven-compiler-plugin</artifactId>
219 <configuration>
JoeOLearybecd8ee2019-01-28 13:44:27 +0000220 <source>${maven.compiler.source}</source>
221 <target>${maven.compiler.target}</target>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000222 </configuration>
223 </plugin>
224 <plugin>
225 <groupId>org.jacoco</groupId>
226 <artifactId>jacoco-maven-plugin</artifactId>
227 <version>${jacoco.version}</version>
228 <executions>
229 <execution>
230 <id>jacoco-instrument</id>
231 <goals>
232 <goal>instrument</goal>
233 </goals>
234 </execution>
235 <execution>
236 <id>jacoco-restore-instrumented-classes</id>
237 <goals>
238 <goal>restore-instrumented-classes</goal>
239 </goals>
240 </execution>
241 <execution>
242 <goals>
243 <goal>prepare-agent</goal>
244 </goals>
245 </execution>
246 <execution>
247 <id>report</id>
248 <phase>prepare-package</phase>
249 <goals>
250 <goal>report</goal>
251 </goals>
252 </execution>
253 </executions>
254 <configuration>
255 <excludes>
256 <exclude>**/*App.*</exclude>
257 </excludes>
258 </configuration>
259 </plugin>
260 </plugins>
261 </build>
262
263</project>