NONRTRIC PMS, Sporadic instability
[ccsdk/oran.git] / a1-policy-management / pom.xml
1 <?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 -->
22 <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">
23     <modelVersion>4.0.0</modelVersion>
24     <parent>
25         <groupId>org.onap.ccsdk.parent</groupId>
26         <artifactId>spring-boot-26-starter-parent</artifactId>
27         <version>2.4.0-SNAPSHOT</version>
28         <relativePath/>
29     </parent>
30     <groupId>org.onap.ccsdk.oran</groupId>
31     <artifactId>a1-policy-management-service</artifactId>
32     <version>1.4.0-SNAPSHOT</version>
33     <name>ccsdk-oran :: ${project.artifactId}</name>
34     <properties>
35         <java.version.source>11</java.version.source>
36         <java.version.target>11</java.version.target>
37         <springfox.version>3.0.0</springfox.version>
38         <gson.version>2.9.0</gson.version>
39         <json.version>20220320</json.version>
40         <formatter-maven-plugin.version>2.13.0</formatter-maven-plugin.version>
41         <spotless-maven-plugin.version>2.5.0</spotless-maven-plugin.version>
42         <commons-io.version>2.11.0</commons-io.version>
43         <docker-maven-plugin>0.30.0</docker-maven-plugin>
44         <surefire-maven-plugin.version>3.0.0-M5</surefire-maven-plugin.version>
45         <!-- 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! -->
46         <jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version>
47         <swagger-codegen-maven-plugin.version>3.0.11</swagger-codegen-maven-plugin.version>
48         <exec.skip>true</exec.skip>
49         <ccsdk.project.version>${project.version}</ccsdk.project.version>
50     </properties>
51     <dependencies>
52         <dependency>
53             <groupId>org.springdoc</groupId>
54             <artifactId>springdoc-openapi-ui</artifactId>
55             <version>1.6.6</version>
56         </dependency>
57         <dependency>
58             <groupId>org.springframework.boot</groupId>
59             <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>
68         </dependency>
69         <dependency>
70             <groupId>org.springframework.boot</groupId>
71             <artifactId>spring-boot-autoconfigure</artifactId>
72         </dependency>
73         <dependency>
74             <groupId>org.springframework</groupId>
75             <artifactId>spring-web</artifactId>
76         </dependency>
77         <dependency>
78             <groupId>org.springframework</groupId>
79             <artifactId>spring-webmvc</artifactId>
80         </dependency>
81         <dependency>
82             <groupId>org.springframework.boot</groupId>
83             <artifactId>spring-boot-starter-webflux</artifactId>
84         </dependency>
85         <dependency>
86             <groupId>org.springframework</groupId>
87             <artifactId>spring-webflux</artifactId>
88         </dependency>
89         <dependency>
90             <groupId>io.springfox</groupId>
91             <artifactId>springfox-spring-web</artifactId>
92             <version>${springfox.version}</version>
93         </dependency>
94         <dependency>
95             <groupId>io.springfox</groupId>
96             <artifactId>springfox-spi</artifactId>
97             <version>${springfox.version}</version>
98         </dependency>
99         <dependency>
100             <groupId>io.springfox</groupId>
101             <artifactId>springfox-core</artifactId>
102             <version>${springfox.version}</version>
103         </dependency>
104         <dependency>
105             <groupId>org.aspectj</groupId>
106             <artifactId>aspectjweaver</artifactId>
107         </dependency>
108         <dependency>
109             <groupId>com.fasterxml.jackson.core</groupId>
110             <artifactId>jackson-databind</artifactId>
111         </dependency>
112         <dependency>
113             <groupId>org.apache.tomcat.embed</groupId>
114             <artifactId>tomcat-embed-core</artifactId>
115         </dependency>
116         <dependency>
117             <groupId>javax.validation</groupId>
118             <artifactId>validation-api</artifactId>
119         </dependency>
120         <dependency>
121             <groupId>com.google.guava</groupId>
122             <artifactId>guava</artifactId>
123         </dependency>
124         <dependency>
125             <groupId>com.google.code.gson</groupId>
126             <artifactId>gson</artifactId>
127             <version>${gson.version}</version>
128         </dependency>
129         <dependency>
130             <groupId>org.json</groupId>
131             <artifactId>json</artifactId>
132             <version>${json.version}</version>
133         </dependency>
134         <dependency>
135             <groupId>org.projectlombok</groupId>
136             <artifactId>lombok</artifactId>
137             <scope>provided</scope>
138         </dependency>
139         <!-- Actuator dependencies -->
140         <dependency>
141             <groupId>org.springframework.boot</groupId>
142             <artifactId>spring-boot-starter-actuator</artifactId>
143             <scope>runtime</scope>
144         </dependency>
145         <!--REQUIRED TO GENERATE DOCUMENTATION -->
146         <dependency>
147             <groupId>io.springfox</groupId>
148             <artifactId>springfox-swagger2</artifactId>
149             <version>${springfox.version}</version>
150         </dependency>
151         <dependency>
152             <groupId>io.springfox</groupId>
153             <artifactId>springfox-swagger-ui</artifactId>
154             <version>${springfox.version}</version>
155             <scope>runtime</scope>
156         </dependency>
157         <!-- For development help -->
158         <dependency>
159             <groupId>org.springframework.boot</groupId>
160             <artifactId>spring-boot-devtools</artifactId>
161             <optional>true</optional>
162             <scope>runtime</scope>
163         </dependency>
164         <dependency>
165             <groupId>org.springframework.boot</groupId>
166             <artifactId>spring-boot-configuration-processor</artifactId>
167             <optional>true</optional>
168             <scope>runtime</scope>
169         </dependency>
170         <!-- TEST -->
171         <dependency>
172             <groupId>org.springframework.boot</groupId>
173             <artifactId>spring-boot-test</artifactId>
174             <scope>test</scope>
175         </dependency>
176         <dependency>
177             <groupId>org.springframework.boot</groupId>
178             <artifactId>spring-boot-starter-test</artifactId>
179             <scope>test</scope>
180         </dependency>
181         <dependency>
182             <groupId>org.awaitility</groupId>
183             <artifactId>awaitility</artifactId>
184             <scope>test</scope>
185         </dependency>
186         <dependency>
187             <groupId>io.projectreactor</groupId>
188             <artifactId>reactor-test</artifactId>
189             <scope>test</scope>
190         </dependency>
191         <dependency>
192             <groupId>org.junit.jupiter</groupId>
193             <artifactId>junit-jupiter-engine</artifactId>
194             <scope>test</scope>
195         </dependency>
196         <dependency>
197             <groupId>org.mockito</groupId>
198             <artifactId>mockito-junit-jupiter</artifactId>
199             <scope>test</scope>
200         </dependency>
201         <dependency>
202             <groupId>org.mockito</groupId>
203             <artifactId>mockito-core</artifactId>
204             <scope>test</scope>
205         </dependency>
206         <dependency>
207             <groupId>com.squareup.okhttp3</groupId>
208             <artifactId>mockwebserver</artifactId>
209             <scope>test</scope>
210         </dependency>
211         <dependency>
212             <groupId>commons-io</groupId>
213             <artifactId>commons-io</artifactId>
214             <version>${commons-io.version}</version>
215             <scope>test</scope>
216         </dependency>
217         <!-- https://mvnrepository.com/artifact/com.github.erosb/everit-json-schema -->
218         <dependency>
219             <groupId>com.github.erosb</groupId>
220             <artifactId>everit-json-schema</artifactId>
221             <version>1.14.0</version>
222         </dependency>
223     </dependencies>
224     <build>
225         <plugins>
226             <plugin>
227                 <groupId>org.codehaus.groovy.maven</groupId>
228                 <artifactId>gmaven-plugin</artifactId>
229                 <executions>
230                     <execution>
231                         <phase>validate</phase>
232                         <goals>
233                             <goal>execute</goal>
234                         </goals>
235                         <configuration>
236                             <source>${basedir}/TagVersion.groovy</source>
237                         </configuration>
238                     </execution>
239                 </executions>
240             </plugin>
241             <plugin>
242                 <groupId>org.springframework.boot</groupId>
243                 <artifactId>spring-boot-maven-plugin</artifactId>
244             </plugin>
245             <plugin>
246                 <groupId>net.revelc.code.formatter</groupId>
247                 <artifactId>formatter-maven-plugin</artifactId>
248                 <version>${formatter-maven-plugin.version}</version>
249                 <configuration>
250                     <lineEnding>LF</lineEnding>
251                     <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
252                 </configuration>
253                 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
254                                         spotless:apply process-sources -->
255             </plugin>
256             <plugin>
257                 <groupId>com.diffplug.spotless</groupId>
258                 <artifactId>spotless-maven-plugin</artifactId>
259                 <version>${spotless-maven-plugin.version}</version>
260                 <configuration>
261                     <lineEndings>UNIX</lineEndings>
262                     <java>
263                         <removeUnusedImports/>
264                         <importOrder>
265                             <order>com,java,javax,org</order>
266                         </importOrder>
267                     </java>
268                 </configuration>
269                 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
270                                         mvn spotless:apply to rewrite source files use mvn spotless:check to validate
271                                         source files -->
272             </plugin>
273             <plugin>
274                 <groupId>org.apache.maven.plugins</groupId>
275                 <artifactId>maven-surefire-plugin</artifactId>
276                 <version>${surefire-maven-plugin.version}</version>
277                 <configuration>
278                     <skipTests>false</skipTests>
279                 </configuration>
280             </plugin>
281             <plugin>
282                 <artifactId>maven-failsafe-plugin</artifactId>
283             </plugin>
284             <plugin>
285                 <groupId>org.codehaus.mojo</groupId>
286                 <artifactId>build-helper-maven-plugin</artifactId>
287                 <executions>
288                     <execution>
289                         <id>add-source</id>
290                         <phase>generate-sources</phase>
291                         <goals>
292                             <goal>add-source</goal>
293                         </goals>
294                         <configuration>
295                             <sources>
296                                 <source>${project.build.directory}/generated-sources/annotations/</source>
297                             </sources>
298                         </configuration>
299                     </execution>
300                 </executions>
301             </plugin>
302             <plugin>
303                 <groupId>org.jacoco</groupId>
304                 <artifactId>jacoco-maven-plugin</artifactId>
305                 <version>${jacoco-maven-plugin.version}</version>
306                 <executions>
307                     <execution>
308                         <id>default-prepare-agent</id>
309                         <goals>
310                             <goal>prepare-agent</goal>
311                         </goals>
312                     </execution>
313                     <execution>
314                         <id>default-report</id>
315                         <phase>prepare-package</phase>
316                         <goals>
317                             <goal>report</goal>
318                         </goals>
319                     </execution>
320                 </executions>
321             </plugin>
322             <plugin>
323                 <groupId>io.swagger.codegen.v3</groupId>
324                 <artifactId>swagger-codegen-maven-plugin</artifactId>
325                 <version>${swagger-codegen-maven-plugin.version}</version>
326                 <executions>
327                     <execution>
328                         <phase>test</phase>
329                         <goals>
330                             <goal>generate</goal>
331                         </goals>
332                         <configuration>
333                             <inputSpec>${project.basedir}/api/pms-api.json</inputSpec>
334                             <language>openapi-yaml</language>
335                             <output>${project.basedir}/api</output>
336                             <configOptions>
337                                 <outputFile>pms-api.yaml</outputFile>
338                             </configOptions>
339                         </configuration>
340                     </execution>
341                 </executions>
342             </plugin>
343             <plugin>
344                 <artifactId>maven-resources-plugin</artifactId>
345                 <executions>
346                     <execution>
347                         <id>copy-resource-one</id>
348                         <phase>install</phase>
349                         <goals>
350                             <goal>copy-resources</goal>
351                         </goals>
352                         <configuration>
353                             <outputDirectory>${project.basedir}/../docs/offeredapis/swagger</outputDirectory>
354                             <resources>
355                                 <resource>
356                                     <directory>${project.basedir}/api</directory>
357                                     <includes>
358                                         <include>pms-api.*</include>
359                                     </includes>
360                                 </resource>
361                             </resources>
362                         </configuration>
363                     </execution>
364                 </executions>
365             </plugin>
366             <plugin>
367                 <groupId>io.fabric8</groupId>
368                 <artifactId>docker-maven-plugin</artifactId>
369                 <version>${docker-maven-plugin}</version>
370                 <inherited>false</inherited>
371                 <executions>
372                     <execution>
373                         <id>generate-policy-management-service-image</id>
374                         <phase>package</phase>
375                         <goals>
376                             <goal>build</goal>
377                         </goals>
378                         <configuration>
379                             <images>
380                                 <image>
381                                     <name>onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
382                                     <build>
383                                         <cleanup>try</cleanup>
384                                         <contextDir>${basedir}</contextDir>
385                                         <dockerFile>Dockerfile</dockerFile>
386                                         <args>
387                                             <JAR>${project.build.finalName}.jar</JAR>
388                                         </args>
389                                         <tags>
390                                             <tag>${project.version}</tag>
391                                         </tags>
392                                     </build>
393                                 </image>
394                             </images>
395                         </configuration>
396                     </execution>
397                     <execution>
398                         <id>push-policy-management-service-image</id>
399                         <goals>
400                             <goal>build</goal>
401                             <goal>push</goal>
402                         </goals>
403                         <configuration>
404                             <images>
405                                 <image>
406                                     <name>onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
407                                     <build>
408                                         <contextDir>${basedir}</contextDir>
409                                         <dockerFile>Dockerfile</dockerFile>
410                                         <args>
411                                             <JAR>${project.build.finalName}.jar</JAR>
412                                         </args>
413                                         <tags>
414                                             <tag>${project.docker.latestminortag.version}</tag>
415                                             <tag>${project.docker.latestfulltag.version}</tag>
416                                             <tag>${project.docker.latesttagtimestamp.version}</tag>
417                                         </tags>
418                                     </build>
419                                 </image>
420                             </images>
421                         </configuration>
422                     </execution>
423                 </executions>
424             </plugin>
425         </plugins>
426     </build>
427 </project>