blob: 495b882db2d86f7f0ce738da2abe7cb048c5f34d [file] [log] [blame]
elinuxhenrike5b384a2020-07-22 16:41:17 +02001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ ============LICENSE_START=======================================================
4 ~ ONAP : ccsdk oran
5 ~ ================================================================================
6 ~ Copyright (C) 2020 Nordix Foundation. 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 ~ ============LICENSE_END=======================================================
20 ~
21-->
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -040022
elinuxhenrike5b384a2020-07-22 16:41:17 +020023<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24 <modelVersion>4.0.0</modelVersion>
25
26 <parent>
27 <groupId>org.onap.ccsdk.parent</groupId>
RehanRaza0e3740a2020-08-03 15:56:03 +020028 <artifactId>spring-boot-starter-parent</artifactId>
Dan Timoney5399db22020-09-15 11:28:06 -040029 <version>2.1.0-SNAPSHOT</version>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -040030 <relativePath/>
elinuxhenrike5b384a2020-07-22 16:41:17 +020031 </parent>
32
33 <groupId>org.onap.ccsdk.oran</groupId>
34 <artifactId>a1-policy-management-service</artifactId>
Dan Timoney5399db22020-09-15 11:28:06 -040035 <version>1.1.0-SNAPSHOT</version>
elinuxhenrike5b384a2020-07-22 16:41:17 +020036
Lathisha682c322020-07-30 15:52:12 +010037 <name>ccsdk-oran :: ${project.artifactId}</name>
elinuxhenrike5b384a2020-07-22 16:41:17 +020038
RehanRaza0e3740a2020-08-03 15:56:03 +020039 <properties>
40 <java.version.source>11</java.version.source>
41 <java.version.target>11</java.version.target>
elinuxhenrikfa658f62020-11-05 12:37:43 +010042 <springfox.version>2.9.2</springfox.version><!-- Do not change to version 3.0.0! Will break the generated json. -->
43 <immutable.version>2.8.8</immutable.version>
RehanRaza0e3740a2020-08-03 15:56:03 +020044 <sdk.version>1.1.6</sdk.version>
elinuxhenrikfa658f62020-11-05 12:37:43 +010045 <json.version>20200518</json.version>
46 <formatter-maven-plugin.version>2.13.0</formatter-maven-plugin.version>
47 <spotless-maven-plugin.version>2.5.0</spotless-maven-plugin.version>
elinuxhenrik50b658d2020-11-11 14:11:37 +010048 <commons-io.version>2.5</commons-io.version>
elinuxhenrikc4d1f8a2020-08-24 13:30:10 +020049 <docker-maven-plugin>0.30.0</docker-maven-plugin>
elinuxhenrikfa658f62020-11-05 12:37:43 +010050 <surefire-maven-plugin.version>3.0.0-M5</surefire-maven-plugin.version><!-- Version must be higher than version 2.19.1 that is defined in the parent pom for JUnit 5 tests to be run. Do not remove! -->
51 <jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version>
RehanRaza0e3740a2020-08-03 15:56:03 +020052 <exec.skip>true</exec.skip>
Dan Timoneyefdb5b02020-11-02 11:00:33 -050053 <ccsdk.project.version>${project.version}</ccsdk.project.version>
RehanRaza0e3740a2020-08-03 15:56:03 +020054 </properties>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -040055
RehanRaza0e3740a2020-08-03 15:56:03 +020056 <dependencies>
57 <dependency>
58 <groupId>org.springframework.boot</groupId>
elinuxhenrikfa658f62020-11-05 12:37:43 +010059 <artifactId>spring-boot</artifactId>
60 </dependency>
61 <dependency>
62 <groupId>org.springframework</groupId>
63 <artifactId>spring-beans</artifactId>
64 </dependency>
65 <dependency>
66 <groupId>org.springframework</groupId>
67 <artifactId>spring-context</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +020068 </dependency>
69 <dependency>
70 <groupId>org.springframework.boot</groupId>
elinuxhenrikfa658f62020-11-05 12:37:43 +010071 <artifactId>spring-boot-autoconfigure</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +020072 </dependency>
73 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +010074 <groupId>org.springframework</groupId>
75 <artifactId>spring-web</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +020076 </dependency>
77 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +010078 <groupId>org.springframework</groupId>
79 <artifactId>spring-webmvc</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +020080 </dependency>
81 <dependency>
82 <groupId>org.springframework</groupId>
83 <artifactId>spring-webflux</artifactId>
84 </dependency>
85 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +010086 <groupId>io.springfox</groupId>
87 <artifactId>springfox-spring-web</artifactId>
88 <version>${springfox.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +020089 </dependency>
90 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +010091 <groupId>io.springfox</groupId>
92 <artifactId>springfox-spi</artifactId>
93 <version>${springfox.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +020094 </dependency>
95 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +010096 <groupId>io.springfox</groupId>
97 <artifactId>springfox-core</artifactId>
98 <version>${springfox.version}</version>
99 </dependency>
100 <dependency>
101 <groupId>org.aspectj</groupId>
102 <artifactId>aspectjweaver</artifactId>
103 </dependency>
104 <dependency>
105 <groupId>com.fasterxml.jackson.core</groupId>
106 <artifactId>jackson-databind</artifactId>
107 </dependency>
108 <dependency>
109 <groupId>org.apache.tomcat.embed</groupId>
110 <artifactId>tomcat-embed-core</artifactId>
111 </dependency>
112 <dependency>
113 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
114 <artifactId>cbs-client</artifactId>
115 <version>${sdk.version}</version>
116 </dependency>
117 <dependency>
118 <groupId>javax.validation</groupId>
119 <artifactId>validation-api</artifactId>
120 </dependency>
121 <dependency>
122 <groupId>com.google.guava</groupId>
123 <artifactId>guava</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +0200124 </dependency>
125 <dependency>
126 <groupId>org.immutables</groupId>
127 <artifactId>value</artifactId>
128 <version>${immutable.version}</version>
129 <scope>provided</scope>
130 </dependency>
131 <dependency>
132 <groupId>org.immutables</groupId>
133 <artifactId>gson</artifactId>
134 <version>${immutable.version}</version>
135 </dependency>
136 <dependency>
137 <groupId>org.json</groupId>
138 <artifactId>json</artifactId>
139 <version>${json.version}</version>
140 </dependency>
141 <dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200142 <groupId>org.projectlombok</groupId>
143 <artifactId>lombok</artifactId>
144 <scope>provided</scope>
145 </dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200146 <!-- Actuator dependencies -->
147 <dependency>
148 <groupId>org.springframework.boot</groupId>
149 <artifactId>spring-boot-starter-actuator</artifactId>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100150 <scope>runtime</scope>
RehanRaza0e3740a2020-08-03 15:56:03 +0200151 </dependency>
152 <!--REQUIRED TO GENERATE DOCUMENTATION -->
153 <dependency>
154 <groupId>io.springfox</groupId>
155 <artifactId>springfox-swagger2</artifactId>
156 <version>${springfox.version}</version>
157 </dependency>
158 <dependency>
159 <groupId>io.springfox</groupId>
160 <artifactId>springfox-swagger-ui</artifactId>
161 <version>${springfox.version}</version>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100162 <scope>runtime</scope>
163 </dependency>
164 <!-- For development help -->
165 <dependency>
166 <groupId>org.springframework.boot</groupId>
167 <artifactId>spring-boot-devtools</artifactId>
168 <optional>true</optional>
169 <scope>runtime</scope>
170 </dependency>
171 <dependency>
172 <groupId>org.springframework.boot</groupId>
173 <artifactId>spring-boot-configuration-processor</artifactId>
174 <optional>true</optional>
175 <scope>runtime</scope>
RehanRaza0e3740a2020-08-03 15:56:03 +0200176 </dependency>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400177 <!-- TEST -->
RehanRaza0e3740a2020-08-03 15:56:03 +0200178 <dependency>
179 <groupId>org.springframework.boot</groupId>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100180 <artifactId>spring-boot-test</artifactId>
181 <scope>test</scope>
182 </dependency>
183 <dependency>
184 <groupId>org.springframework.boot</groupId>
RehanRaza0e3740a2020-08-03 15:56:03 +0200185 <artifactId>spring-boot-starter-test</artifactId>
186 <scope>test</scope>
187 </dependency>
188 <dependency>
189 <groupId>org.awaitility</groupId>
190 <artifactId>awaitility</artifactId>
191 <scope>test</scope>
192 </dependency>
193 <dependency>
194 <groupId>io.projectreactor</groupId>
195 <artifactId>reactor-test</artifactId>
196 <scope>test</scope>
197 </dependency>
198 <dependency>
199 <groupId>org.junit.jupiter</groupId>
200 <artifactId>junit-jupiter-engine</artifactId>
201 <scope>test</scope>
202 </dependency>
203 <dependency>
204 <groupId>org.mockito</groupId>
205 <artifactId>mockito-junit-jupiter</artifactId>
206 <scope>test</scope>
207 </dependency>
208 <dependency>
209 <groupId>org.mockito</groupId>
210 <artifactId>mockito-core</artifactId>
211 <scope>test</scope>
212 </dependency>
213 <dependency>
214 <groupId>com.squareup.okhttp3</groupId>
215 <artifactId>mockwebserver</artifactId>
216 <scope>test</scope>
217 </dependency>
elinuxhenrik50b658d2020-11-11 14:11:37 +0100218 <dependency>
219 <groupId>commons-io</groupId>
220 <artifactId>commons-io</artifactId>
221 <version>${commons-io.version}</version>
222 <scope>test</scope>
223 </dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200224 </dependencies>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400225
RehanRaza0e3740a2020-08-03 15:56:03 +0200226 <build>
227 <plugins>
228 <plugin>
Dan Timoneyefdb5b02020-11-02 11:00:33 -0500229 <groupId>org.codehaus.groovy.maven</groupId>
230 <artifactId>gmaven-plugin</artifactId>
231 <executions>
232 <execution>
233 <phase>validate</phase>
234 <goals>
235 <goal>execute</goal>
236 </goals>
237 <configuration>
238 <source>${basedir}/TagVersion.groovy</source>
239 </configuration>
240 </execution>
241 </executions>
242 </plugin>
243 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200244 <groupId>org.springframework.boot</groupId>
245 <artifactId>spring-boot-maven-plugin</artifactId>
246 </plugin>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400247 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200248 <groupId>net.revelc.code.formatter</groupId>
249 <artifactId>formatter-maven-plugin</artifactId>
250 <version>${formatter-maven-plugin.version}</version>
251 <configuration>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400252 <lineEnding>LF</lineEnding>
RehanRaza0e3740a2020-08-03 15:56:03 +0200253 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
254 </configuration>
255 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
256 spotless:apply process-sources -->
257 </plugin>
258 <plugin>
259 <groupId>com.diffplug.spotless</groupId>
260 <artifactId>spotless-maven-plugin</artifactId>
261 <version>${spotless-maven-plugin.version}</version>
262 <configuration>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400263 <lineEndings>UNIX</lineEndings>
RehanRaza0e3740a2020-08-03 15:56:03 +0200264 <java>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400265 <removeUnusedImports/>
RehanRaza0e3740a2020-08-03 15:56:03 +0200266 <importOrder>
267 <order>com,java,javax,org</order>
268 </importOrder>
269 </java>
270 </configuration>
271 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
272 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
273 source files -->
274 </plugin>
275 <plugin>
276 <groupId>org.apache.maven.plugins</groupId>
277 <artifactId>maven-surefire-plugin</artifactId>
elinuxhenrik9c3a6bd2020-08-26 14:04:17 +0200278 <version>${surefire-maven-plugin.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +0200279 <configuration>
280 <skipTests>false</skipTests>
281 </configuration>
282 </plugin>
283 <plugin>
284 <artifactId>maven-failsafe-plugin</artifactId>
285 </plugin>
286 <plugin>
287 <groupId>org.codehaus.mojo</groupId>
288 <artifactId>build-helper-maven-plugin</artifactId>
289 <executions>
290 <execution>
291 <id>add-source</id>
292 <phase>generate-sources</phase>
293 <goals>
294 <goal>add-source</goal>
295 </goals>
296 <configuration>
297 <sources>
298 <source>${project.build.directory}/generated-sources/annotations/</source>
299 </sources>
300 </configuration>
301 </execution>
302 </executions>
303 </plugin>
304 <plugin>
305 <groupId>org.jacoco</groupId>
306 <artifactId>jacoco-maven-plugin</artifactId>
307 <version>${jacoco-maven-plugin.version}</version>
308 <executions>
309 <execution>
310 <id>default-prepare-agent</id>
311 <goals>
312 <goal>prepare-agent</goal>
313 </goals>
314 </execution>
315 <execution>
316 <id>default-report</id>
317 <phase>prepare-package</phase>
318 <goals>
319 <goal>report</goal>
320 </goals>
321 </execution>
322 </executions>
323 </plugin>
324 <plugin>
325 <groupId>io.fabric8</groupId>
326 <artifactId>docker-maven-plugin</artifactId>
327 <version>${docker-maven-plugin}</version>
328 <inherited>false</inherited>
329 <executions>
330 <execution>
331 <id>generate-policy-management-service-image</id>
332 <phase>package</phase>
333 <goals>
334 <goal>build</goal>
335 </goals>
336 <configuration>
337 <images>
338 <image>
339 <name>onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
340 <build>
341 <cleanup>try</cleanup>
342 <contextDir>${basedir}</contextDir>
343 <dockerFile>Dockerfile</dockerFile>
344 <args>
345 <JAR>${project.build.finalName}.jar</JAR>
346 </args>
347 <tags>
348 <tag>${project.version}</tag>
349 </tags>
350 </build>
351 </image>
352 </images>
353 </configuration>
354 </execution>
355 <execution>
356 <id>push-policy-management-service-image</id>
357 <goals>
358 <goal>build</goal>
359 <goal>push</goal>
360 </goals>
361 <configuration>
362 <images>
363 <image>
364 <name>onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
365 <build>
366 <contextDir>${basedir}</contextDir>
367 <dockerFile>Dockerfile</dockerFile>
368 <args>
369 <JAR>${project.build.finalName}.jar</JAR>
370 </args>
371 <tags>
Dan Timoneyefdb5b02020-11-02 11:00:33 -0500372 <tag>${project.docker.latestminortag.version}</tag>
373 <tag>${project.docker.latestfulltag.version}</tag>
374 <tag>${project.docker.latesttagtimestamp.version}</tag>
RehanRaza0e3740a2020-08-03 15:56:03 +0200375 </tags>
376 </build>
377 </image>
378 </images>
379 </configuration>
380 </execution>
381 </executions>
382 </plugin>
383 </plugins>
384 </build>
elinuxhenrike5b384a2020-07-22 16:41:17 +0200385</project>