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