Add seed code for A1 policy management service
[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
25     <parent>
26         <groupId>org.onap.ccsdk.parent</groupId>
27         <artifactId>spring-boot-starter-parent</artifactId>
28         <version>2.0.0-SNAPSHOT</version>
29         <relativePath />
30     </parent>
31
32     <groupId>org.onap.ccsdk.oran</groupId>
33     <artifactId>a1-policy-management-service</artifactId>
34     <version>1.0.0-SNAPSHOT</version>
35
36     <name>ccsdk-oran :: ${project.artifactId}</name>
37
38     <issueManagement>
39         <system>JIRA</system>
40         <url>https://jira.onap.org/</url>
41     </issueManagement>
42
43     <repositories>
44         <repository>
45             <id>onap-releases</id>
46             <name>onap-releases</name>
47             <url>https://nexus.onap.org/content/repositories/releases/</url>
48         </repository>
49     </repositories>
50
51     <properties>
52         <java.version.source>11</java.version.source>
53         <java.version.target>11</java.version.target>
54         <springfox.version>2.9.2</springfox.version>
55         <immutable.version>2.8.2</immutable.version>
56         <sdk.version>1.1.6</sdk.version>
57         <swagger.version>2.0.0</swagger.version>
58         <json.version>20190722</json.version>
59         <commons-net.version>3.6</commons-net.version>
60         <maven.compile.plugin.version>3.8.0</maven.compile.plugin.version>
61         <formatter-maven-plugin.version>2.8.1</formatter-maven-plugin.version>
62         <spotless-maven-plugin.version>1.18.0</spotless-maven-plugin.version>
63         <surefire-maven-plugin.version>2.22.2</surefire-maven-plugin.version>
64         <docker-maven-plugin>0.30.0</docker-maven-plugin>
65         <version.dmaap>1.1.11</version.dmaap>
66         <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
67         <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
68         <exec.skip>true</exec.skip>
69     </properties>
70     <dependencies>
71         <dependency>
72             <groupId>org.springframework.boot</groupId>
73             <artifactId>spring-boot-starter-web</artifactId>
74         </dependency>
75         <dependency>
76             <groupId>org.springframework.boot</groupId>
77             <artifactId>spring-boot-starter-thymeleaf</artifactId>
78         </dependency>
79         <dependency>
80             <groupId>org.springframework.boot</groupId>
81             <artifactId>spring-boot-starter-webflux</artifactId>
82         </dependency>
83         <dependency>
84             <groupId>org.springframework.boot</groupId>
85             <artifactId>spring-boot-starter-aop</artifactId>
86         </dependency>
87         <dependency>
88             <groupId>org.springframework.boot</groupId>
89             <artifactId>spring-boot-devtools</artifactId>
90             <optional>true</optional>
91         </dependency>
92         <dependency>
93             <groupId>org.springframework</groupId>
94             <artifactId>spring-webflux</artifactId>
95         </dependency>
96         <dependency>
97             <groupId>io.swagger.core.v3</groupId>
98             <artifactId>swagger-jaxrs2</artifactId>
99             <version>${swagger.version}</version>
100         </dependency>
101         <dependency>
102             <groupId>io.swagger.core.v3</groupId>
103             <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
104             <version>${swagger.version}</version>
105         </dependency>
106         <dependency>
107             <groupId>javax.xml.bind</groupId>
108             <artifactId>jaxb-api</artifactId>
109         </dependency>
110         <dependency>
111             <groupId>org.immutables</groupId>
112             <artifactId>value</artifactId>
113             <version>${immutable.version}</version>
114             <scope>provided</scope>
115         </dependency>
116         <dependency>
117             <groupId>org.immutables</groupId>
118             <artifactId>gson</artifactId>
119             <version>${immutable.version}</version>
120         </dependency>
121         <dependency>
122             <groupId>org.json</groupId>
123             <artifactId>json</artifactId>
124             <version>${json.version}</version>
125         </dependency>
126         <dependency>
127             <groupId>commons-net</groupId>
128             <artifactId>commons-net</artifactId>
129             <version>${commons-net.version}</version>
130         </dependency>
131         <dependency>
132             <groupId>org.springframework.boot</groupId>
133             <artifactId>spring-boot-configuration-processor</artifactId>
134             <optional>true</optional>
135         </dependency>
136         <dependency>
137             <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
138             <artifactId>cbs-client</artifactId>
139             <version>${sdk.version}</version>
140         </dependency>
141         <dependency>
142             <groupId>org.projectlombok</groupId>
143             <artifactId>lombok</artifactId>
144             <scope>provided</scope>
145         </dependency>
146         <dependency>
147             <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
148             <artifactId>dmaapClient</artifactId>
149             <version>${version.dmaap}</version>
150         </dependency>
151         <dependency>
152             <groupId>javax.ws.rs</groupId>
153             <artifactId>javax.ws.rs-api</artifactId>
154         </dependency>
155         <dependency>
156             <groupId>org.glassfish.jersey.inject</groupId>
157             <artifactId>jersey-hk2</artifactId>
158         </dependency>
159         <!-- Actuator dependencies -->
160         <dependency>
161             <groupId>org.springframework.boot</groupId>
162             <artifactId>spring-boot-starter-actuator</artifactId>
163         </dependency>
164         <!--REQUIRED TO GENERATE DOCUMENTATION -->
165         <dependency>
166             <groupId>io.springfox</groupId>
167             <artifactId>springfox-swagger2</artifactId>
168             <version>${springfox.version}</version>
169         </dependency>
170         <dependency>
171             <groupId>io.springfox</groupId>
172             <artifactId>springfox-swagger-ui</artifactId>
173             <version>${springfox.version}</version>
174         </dependency>
175         <!-- TEST -->
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     </dependencies>
212     <build>
213         <plugins>
214             <plugin>
215                 <groupId>org.springframework.boot</groupId>
216                 <artifactId>spring-boot-maven-plugin</artifactId>
217             </plugin>
218             <plugin>
219                 <groupId>net.revelc.code.formatter</groupId>
220                 <artifactId>formatter-maven-plugin</artifactId>
221                 <version>${formatter-maven-plugin.version}</version>
222                 <configuration>
223                     <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
224                 </configuration>
225                 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
226                                         spotless:apply process-sources -->
227             </plugin>
228             <plugin>
229                 <groupId>com.diffplug.spotless</groupId>
230                 <artifactId>spotless-maven-plugin</artifactId>
231                 <version>${spotless-maven-plugin.version}</version>
232                 <configuration>
233                     <java>
234                         <removeUnusedImports />
235                         <importOrder>
236                             <order>com,java,javax,org</order>
237                         </importOrder>
238                     </java>
239                 </configuration>
240                 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
241                                         mvn spotless:apply to rewrite source files use mvn spotless:check to validate
242                                         source files -->
243             </plugin>
244             <plugin>
245                 <groupId>org.apache.maven.plugins</groupId>
246                 <artifactId>maven-surefire-plugin</artifactId>
247                 <version>${surefire-maven-plugin.version}</version>
248                 <configuration>
249                     <skipTests>false</skipTests>
250                 </configuration>
251             </plugin>
252             <plugin>
253                 <artifactId>maven-failsafe-plugin</artifactId>
254             </plugin>
255             <plugin>
256                 <groupId>org.codehaus.mojo</groupId>
257                 <artifactId>build-helper-maven-plugin</artifactId>
258                 <executions>
259                     <execution>
260                         <id>add-source</id>
261                         <phase>generate-sources</phase>
262                         <goals>
263                             <goal>add-source</goal>
264                         </goals>
265                         <configuration>
266                             <sources>
267                                 <source>${project.build.directory}/generated-sources/annotations/</source>
268                             </sources>
269                         </configuration>
270                     </execution>
271                 </executions>
272             </plugin>
273             <plugin>
274                 <groupId>org.jacoco</groupId>
275                 <artifactId>jacoco-maven-plugin</artifactId>
276                 <version>${jacoco-maven-plugin.version}</version>
277                 <executions>
278                     <execution>
279                         <id>default-prepare-agent</id>
280                         <goals>
281                             <goal>prepare-agent</goal>
282                         </goals>
283                     </execution>
284                     <execution>
285                         <id>default-report</id>
286                         <phase>prepare-package</phase>
287                         <goals>
288                             <goal>report</goal>
289                         </goals>
290                     </execution>
291                 </executions>
292             </plugin>
293             <plugin>
294                 <groupId>io.fabric8</groupId>
295                 <artifactId>docker-maven-plugin</artifactId>
296                 <version>${docker-maven-plugin}</version>
297                 <inherited>false</inherited>
298                 <executions>
299                     <execution>
300                         <id>generate-policy-management-service-image</id>
301                         <phase>package</phase>
302                         <goals>
303                             <goal>build</goal>
304                         </goals>
305                         <configuration>
306                             <images>
307                                 <image>
308                                     <name>onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
309                                     <build>
310                                         <cleanup>try</cleanup>
311                                         <contextDir>${basedir}</contextDir>
312                                         <dockerFile>Dockerfile</dockerFile>
313                                         <args>
314                                             <JAR>${project.build.finalName}.jar</JAR>
315                                         </args>
316                                         <tags>
317                                             <tag>${project.version}</tag>
318                                         </tags>
319                                     </build>
320                                 </image>
321                             </images>
322                         </configuration>
323                     </execution>
324                     <execution>
325                         <id>push-policy-management-service-image</id>
326                         <goals>
327                             <goal>build</goal>
328                             <goal>push</goal>
329                         </goals>
330                         <configuration>
331                             <images>
332                                 <image>
333                                     <name>onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
334                                     <build>
335                                         <contextDir>${basedir}</contextDir>
336                                         <dockerFile>Dockerfile</dockerFile>
337                                         <args>
338                                             <JAR>${project.build.finalName}.jar</JAR>
339                                         </args>
340                                         <tags>
341                                             <tag>${project.version}</tag>
342                                             <tag>latest</tag>
343                                         </tags>
344                                     </build>
345                                 </image>
346                             </images>
347                         </configuration>
348                     </execution>
349                 </executions>
350             </plugin>
351         </plugins>
352     </build>
353 </project>