blob: 4edcd0fcc0c40a0f2a3e6c246c88c16efa812a90 [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"
23 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">
25 <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>
50 <junit4.version>4.12</junit4.version>
51 <!-- Plugin Versions -->
52 <shade.plugin.version>3.2.0</shade.plugin.version>
53 <jacoco.version>0.8.2</jacoco.version>
JoeOLearybecd8ee2019-01-28 13:44:27 +000054 <dockerfile.version>1.4.10</dockerfile.version>
JoeOLeary8338d2e2019-01-22 16:09:34 +000055 <surefire.version>2.22.0</surefire.version>
JoeOLearybecd8ee2019-01-28 13:44:27 +000056 <!-- Plugin Settings -->
57 <sonar.language>java</sonar.language>
58 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
59 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
60 <sonar.jacoco.reportPaths>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPaths>
61 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
62 <sonar.projectVersion>${project.version}</sonar.projectVersion>
JoeOLeary8338d2e2019-01-22 16:09:34 +000063 <compiler.target.version>1.8</compiler.target.version>
64 <compiler.source.version>1.8</compiler.source.version>
65 <shade.main>org.onap.dcaegen2.services.pmmapper.App</shade.main>
66 <shade.transformer>org.apache.maven.plugins.shade.resource.ManifestResourceTransformer</shade.transformer>
67 </properties>
68
69 <dependencies>
70 <dependency>
71 <groupId>org.projectlombok</groupId>
72 <artifactId>lombok</artifactId>
73 <version>${lombok.version}</version>
74 <scope>provided</scope>
75 </dependency>
76 <dependency>
77 <groupId>io.projectreactor</groupId>
78 <artifactId>reactor-core</artifactId>
79 <version>${reactor.version}</version>
80 </dependency>
81 <dependency>
82 <groupId>io.undertow</groupId>
83 <artifactId>undertow-core</artifactId>
84 <version>${undertow.version}</version>
85 </dependency>
86 <dependency>
87 <groupId>org.slf4j</groupId>
88 <artifactId>slf4j-api</artifactId>
89 <version>${sl4j.version}</version>
90 </dependency>
91 <dependency>
92 <groupId>ch.qos.logback</groupId>
93 <artifactId>logback-classic</artifactId>
94 <version>${logback.version}</version>
95 </dependency>
96 <dependency>
97 <groupId>com.google.code.gson</groupId>
98 <artifactId>gson</artifactId>
99 <version>${gson.version}</version>
100 </dependency>
101 <dependency>
102 <groupId>org.junit.jupiter</groupId>
103 <artifactId>junit-jupiter-engine</artifactId>
104 <version>${junit.version}</version>
105 <scope>test</scope>
106 </dependency>
107 <dependency>
108 <groupId>org.mockito</groupId>
109 <artifactId>mockito-junit-jupiter</artifactId>
110 <version>${mockito-ju5-ext.version}</version>
111 <scope>test</scope>
112 </dependency>
113
114 <dependency>
115 <groupId>org.mockito</groupId>
116 <artifactId>mockito-core</artifactId>
117 <version>${mockito.version}</version>
118 <scope>test</scope>
119 </dependency>
120 <dependency>
121 <groupId>org.powermock</groupId>
122 <artifactId>powermock-module-junit4</artifactId>
123 <version>${powermock.version}</version>
124 <scope>test</scope>
125 </dependency>
126 <dependency>
127 <groupId>org.junit.vintage</groupId>
128 <artifactId>junit-vintage-engine</artifactId>
129 <version>${junit.version}</version>
130 <scope>test</scope>
131 </dependency>
132 <dependency>
133 <groupId>org.powermock</groupId>
134 <artifactId>powermock-api-mockito2</artifactId>
135 <version>${powermock.version}</version>
136 <scope>test</scope>
137 </dependency>
138 </dependencies>
139
140 <build>
141 <plugins>
142 <plugin>
JoeOLearybecd8ee2019-01-28 13:44:27 +0000143 <groupId>com.spotify</groupId>
144 <artifactId>dockerfile-maven-plugin</artifactId>
145 <version>${dockerfile.version}</version>
146 <configuration>
147 <repository>${docker.push.registry}/${project.artifactId}</repository>
148 <tag>${project.version}</tag>
149 <dockerfile>${project.build.outputDirectory}/Dockerfile</dockerfile>
150 <buildArgs>
151 <JAR>${project.build.finalName}-jar-with-dependencies.jar</JAR>
152 </buildArgs>
153 </configuration>
154 </plugin>
155 <plugin>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000156 <groupId>org.apache.maven.plugins</groupId>
157 <artifactId>maven-surefire-plugin</artifactId>
158 <version>${surefire.version}</version>
JoeOLearybecd8ee2019-01-28 13:44:27 +0000159 <configuration combine.self="override"/>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000160 </plugin>
161 <plugin>
162 <groupId>org.apache.maven.plugins</groupId>
163 <artifactId>maven-failsafe-plugin</artifactId>
164 <version>${surefire.version}</version>
165 </plugin>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000166 <plugin>
167 <groupId>org.apache.maven.plugins</groupId>
168 <artifactId>maven-shade-plugin</artifactId>
169 <version>${shade.plugin.version}</version>
170 <executions>
171 <execution>
172 <goals>
173 <goal>shade</goal>
174 </goals>
175 <configuration>
176 <shadedArtifactAttached>true</shadedArtifactAttached>
JoeOLearybecd8ee2019-01-28 13:44:27 +0000177 <shadedClassifierName>jar-with-dependencies</shadedClassifierName>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000178 <transformers>
179 <transformer implementation="${shade.transformer}">
180 <mainClass>${shade.main}</mainClass>
181 </transformer>
182 </transformers>
183 </configuration>
184 </execution>
185 </executions>
186 </plugin>
187 <plugin>
188 <groupId>org.apache.maven.plugins</groupId>
189 <artifactId>maven-compiler-plugin</artifactId>
190 <configuration>
JoeOLearybecd8ee2019-01-28 13:44:27 +0000191 <source>${maven.compiler.source}</source>
192 <target>${maven.compiler.target}</target>
JoeOLeary8338d2e2019-01-22 16:09:34 +0000193 </configuration>
194 </plugin>
195 <plugin>
196 <groupId>org.jacoco</groupId>
197 <artifactId>jacoco-maven-plugin</artifactId>
198 <version>${jacoco.version}</version>
199 <executions>
200 <execution>
201 <id>jacoco-instrument</id>
202 <goals>
203 <goal>instrument</goal>
204 </goals>
205 </execution>
206 <execution>
207 <id>jacoco-restore-instrumented-classes</id>
208 <goals>
209 <goal>restore-instrumented-classes</goal>
210 </goals>
211 </execution>
212 <execution>
213 <goals>
214 <goal>prepare-agent</goal>
215 </goals>
216 </execution>
217 <execution>
218 <id>report</id>
219 <phase>prepare-package</phase>
220 <goals>
221 <goal>report</goal>
222 </goals>
223 </execution>
224 </executions>
225 <configuration>
226 <excludes>
227 <exclude>**/*App.*</exclude>
228 </excludes>
229 </configuration>
230 </plugin>
231 </plugins>
232 </build>
233
234</project>