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