Running Dmaap consumer in a seprate thread
[nonrtric.git] / policy-agent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 * ========================LICENSE_START=================================
4 * O-RAN-SC
5 * %%
6 * Copyright (C) 2019 Nordix Foundation
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 <project
22     xmlns="http://maven.apache.org/POM/4.0.0"
23     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
25     <modelVersion>4.0.0</modelVersion>
26     <parent>
27         <groupId>org.springframework.boot</groupId>
28         <artifactId>spring-boot-starter-parent</artifactId>
29         <version>2.2.4.RELEASE</version>
30         <relativePath />
31     </parent>
32     <groupId>org.o-ran-sc.nonrtric</groupId>
33     <artifactId>policy-agent</artifactId>
34     <version>1.0.0-SNAPSHOT</version>
35     <licenses>
36         <license>
37             <name>The Apache Software License, Version 2.0</name>
38             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
39         </license>
40     </licenses>
41     <repositories>
42         <repository>
43             <id>onap-releases</id>
44             <name>onap-releases</name>
45             <url>https://nexus.onap.org/content/repositories/releases/</url>
46         </repository>
47     </repositories>
48     <properties>
49         <java.version>11</java.version>
50         <springfox.version>2.9.2</springfox.version>
51         <immutable.version>2.7.1</immutable.version>
52         <sdk.version>1.1.6</sdk.version>
53         <swagger.version>2.0.0</swagger.version>
54         <json.version>20180130</json.version>
55         <commons-net.version>3.3</commons-net.version>
56         <awaitility.version>4.0.1</awaitility.version>
57         <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
58         <formatter-maven-plugin.version>2.8.1</formatter-maven-plugin.version>
59         <spotless-maven-plugin.version>1.18.0</spotless-maven-plugin.version>
60         <docker-maven-plugin>0.30.0</docker-maven-plugin>
61         <version.dmaap>1.1.9</version.dmaap>
62         <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
63     </properties>
64     <dependencies>
65         <dependency>
66             <groupId>org.springframework.boot</groupId>
67             <artifactId>spring-boot-starter-web</artifactId>
68         </dependency>
69         <dependency>
70             <groupId>org.springframework.boot</groupId>
71             <artifactId>spring-boot-starter-thymeleaf</artifactId>
72         </dependency>
73         <dependency>
74             <groupId>org.springframework.boot</groupId>
75             <artifactId>spring-boot-starter-webflux</artifactId>
76         </dependency>
77         <dependency>
78             <groupId>org.springframework.boot</groupId>
79             <artifactId>spring-boot-devtools</artifactId>
80             <optional>true</optional>
81         </dependency>
82         <dependency>
83             <groupId>org.springframework</groupId>
84             <artifactId>spring-webflux</artifactId>
85         </dependency>
86         <dependency>
87             <groupId>io.swagger.core.v3</groupId>
88             <artifactId>swagger-jaxrs2</artifactId>
89             <version>${swagger.version}</version>
90         </dependency>
91         <dependency>
92             <groupId>io.swagger.core.v3</groupId>
93             <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
94             <version>${swagger.version}</version>
95         </dependency>
96         <dependency>
97             <groupId>javax.xml.bind</groupId>
98             <artifactId>jaxb-api</artifactId>
99         </dependency>
100         <dependency>
101             <groupId>org.immutables</groupId>
102             <artifactId>value</artifactId>
103             <version>${immutable.version}</version>
104             <scope>provided</scope>
105         </dependency>
106         <dependency>
107             <groupId>org.immutables</groupId>
108             <artifactId>gson</artifactId>
109             <version>${immutable.version}</version>
110         </dependency>
111         <dependency>
112             <groupId>org.json</groupId>
113             <artifactId>json</artifactId>
114             <version>${json.version}</version>
115         </dependency>
116         <dependency>
117             <groupId>commons-net</groupId>
118             <artifactId>commons-net</artifactId>
119             <version>${commons-net.version}</version>
120         </dependency>
121         <!-- Actuator dependencies -->
122         <dependency>
123             <groupId>org.springframework.boot</groupId>
124             <artifactId>spring-boot-starter-actuator</artifactId>
125         </dependency>
126         <!--TEST -->
127         <dependency>
128             <groupId>org.springframework.boot</groupId>
129             <artifactId>spring-boot-starter-test</artifactId>
130             <scope>test</scope>
131         </dependency>
132         <dependency>
133             <groupId>org.springframework.boot</groupId>
134             <artifactId>spring-boot-configuration-processor</artifactId>
135             <optional>true</optional>
136         </dependency>
137         <dependency>
138             <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
139             <artifactId>cbs-client</artifactId>
140             <version>${sdk.version}</version>
141         </dependency>
142         <dependency>
143             <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
144             <artifactId>dmaap-client</artifactId>
145             <version>${sdk.version}</version>
146         </dependency>
147         <dependency>
148             <groupId>org.projectlombok</groupId>
149             <artifactId>lombok</artifactId>
150             <scope>provided</scope>
151         </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>
162         </dependency>
163         <!-- TEST -->
164         <dependency>
165             <groupId>org.awaitility</groupId>
166             <artifactId>awaitility</artifactId>
167             <version>${awaitility.version}</version>
168             <scope>test</scope>
169         </dependency>
170         <dependency>
171             <groupId>io.projectreactor</groupId>
172             <artifactId>reactor-test</artifactId>
173             <scope>test</scope>
174         </dependency>
175         <dependency>
176             <groupId>org.junit.jupiter</groupId>
177             <artifactId>junit-jupiter-engine</artifactId>
178             <scope>test</scope>
179         </dependency>
180         <dependency>
181             <groupId>org.mockito</groupId>
182             <artifactId>mockito-junit-jupiter</artifactId>
183             <scope>test</scope>
184         </dependency>
185         <dependency>
186             <groupId>org.mockito</groupId>
187             <artifactId>mockito-core</artifactId>
188             <scope>test</scope>
189         </dependency>
190         <dependency>
191             <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
192             <artifactId>dmaapClient</artifactId>
193             <version>${version.dmaap}</version>
194         </dependency>
195         <dependency>
196             <groupId>javax.ws.rs</groupId>
197             <artifactId>javax.ws.rs-api</artifactId>
198             <version>${javax.ws.rs-api.version}</version>
199         </dependency>
200         <dependency>
201             <groupId>org.glassfish.jersey.inject</groupId>
202             <artifactId>jersey-hk2</artifactId>
203         </dependency>
204     </dependencies>
205     <build>
206         <plugins>
207             <plugin>
208                 <groupId>org.springframework.boot</groupId>
209                 <artifactId>spring-boot-maven-plugin</artifactId>
210             </plugin>
211             <plugin>
212                 <groupId>net.revelc.code.formatter</groupId>
213                 <artifactId>formatter-maven-plugin</artifactId>
214                 <version>${formatter-maven-plugin.version}</version>
215                 <configuration>
216                     <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
217                 </configuration>
218                 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format 
219                                         spotless:apply process-sources -->
220             </plugin>
221             <plugin>
222                 <groupId>com.diffplug.spotless</groupId>
223                 <artifactId>spotless-maven-plugin</artifactId>
224                 <version>${spotless-maven-plugin.version}</version>
225                 <configuration>
226                     <java>
227                         <removeUnusedImports />
228                         <importOrder>
229                             <order>com,java,javax,org</order>
230                         </importOrder>
231                     </java>
232                 </configuration>
233                 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use 
234                                         mvn spotless:apply to rewrite source files use mvn spotless:check to validate 
235                                         source files -->
236             </plugin>
237             <plugin>
238                 <groupId>org.apache.maven.plugins</groupId>
239                 <artifactId>maven-surefire-plugin</artifactId>
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>io.fabric8</groupId>
267                 <artifactId>docker-maven-plugin</artifactId>
268                 <version>${docker-maven-plugin}</version>
269                 <inherited>false</inherited>
270                 <executions>
271                     <execution>
272                         <id>generate-policy-agent-image</id>
273                         <phase>package</phase>
274                         <goals>
275                             <goal>build</goal>
276                         </goals>
277                         <configuration>
278                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
279                             <images>
280                                 <image>
281                                     <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
282                                     <build>
283                                         <cleanup>try</cleanup>
284                                         <contextDir>${basedir}</contextDir>
285                                         <dockerFile>Dockerfile</dockerFile>
286                                         <args>
287                                             <JAR>${project.build.finalName}.jar</JAR>
288                                         </args>
289                                         <tags>
290                                             <tag>${project.version}</tag>
291                                         </tags>
292                                     </build>
293                                 </image>
294                             </images>
295                         </configuration>
296                     </execution>
297                     <execution>
298                         <id>push-policy-agent-image</id>
299                         <goals>
300                             <goal>build</goal>
301                             <goal>push</goal>
302                         </goals>
303                         <configuration>
304                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
305                             <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
306                             <images>
307                                 <image>
308                                     <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
309                                     <build>
310                                         <contextDir>${basedir}</contextDir>
311                                         <dockerFile>Dockerfile</dockerFile>
312                                         <args>
313                                             <JAR>${project.build.finalName}.jar</JAR>
314                                         </args>
315                                         <tags>
316                                             <tag>${project.version}</tag>
317                                         </tags>
318                                     </build>
319                                 </image>
320                             </images>
321                         </configuration>
322                     </execution>
323                 </executions>
324             </plugin>
325         </plugins>
326     </build>
327     <issueManagement>
328         <system>JIRA</system>
329         <url>https://jira.o-ran-sc.org/</url>
330     </issueManagement>
331 </project>