1 <?xml version="1.0" encoding="UTF-8"?>
3 * ========================LICENSE_START=================================
6 * Copyright (C) 2019 Nordix Foundation
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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===================================
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>
27 <groupId>org.springframework.boot</groupId>
28 <artifactId>spring-boot-starter-parent</artifactId>
29 <version>2.2.4.RELEASE</version>
32 <groupId>org.o-ran-sc.nonrtric</groupId>
33 <artifactId>policy-agent</artifactId>
34 <version>1.0.0-SNAPSHOT</version>
37 <name>The Apache Software License, Version 2.0</name>
38 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
43 <id>onap-releases</id>
44 <name>onap-releases</name>
45 <url>https://nexus.onap.org/content/repositories/releases/</url>
49 <java.version>11</java.version>
50 <springfox.version>2.9.2</springfox.version>
51 <immutable.version>2.7.4</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 <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
67 <groupId>org.springframework.boot</groupId>
68 <artifactId>spring-boot-starter-web</artifactId>
71 <groupId>org.springframework.boot</groupId>
72 <artifactId>spring-boot-starter-thymeleaf</artifactId>
75 <groupId>org.springframework.boot</groupId>
76 <artifactId>spring-boot-starter-webflux</artifactId>
79 <groupId>org.springframework.boot</groupId>
80 <artifactId>spring-boot-starter-aop</artifactId>
83 <groupId>org.springframework.boot</groupId>
84 <artifactId>spring-boot-devtools</artifactId>
85 <optional>true</optional>
88 <groupId>org.springframework</groupId>
89 <artifactId>spring-webflux</artifactId>
92 <groupId>io.swagger.core.v3</groupId>
93 <artifactId>swagger-jaxrs2</artifactId>
94 <version>${swagger.version}</version>
97 <groupId>io.swagger.core.v3</groupId>
98 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
99 <version>${swagger.version}</version>
102 <groupId>javax.xml.bind</groupId>
103 <artifactId>jaxb-api</artifactId>
106 <groupId>org.immutables</groupId>
107 <artifactId>value</artifactId>
108 <version>${immutable.version}</version>
109 <scope>provided</scope>
112 <groupId>org.immutables</groupId>
113 <artifactId>gson</artifactId>
114 <version>${immutable.version}</version>
117 <groupId>org.json</groupId>
118 <artifactId>json</artifactId>
119 <version>${json.version}</version>
122 <groupId>commons-net</groupId>
123 <artifactId>commons-net</artifactId>
124 <version>${commons-net.version}</version>
126 <!-- Actuator dependencies -->
128 <groupId>org.springframework.boot</groupId>
129 <artifactId>spring-boot-starter-actuator</artifactId>
133 <groupId>org.springframework.boot</groupId>
134 <artifactId>spring-boot-starter-test</artifactId>
138 <groupId>org.springframework.boot</groupId>
139 <artifactId>spring-boot-configuration-processor</artifactId>
140 <optional>true</optional>
143 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
144 <artifactId>cbs-client</artifactId>
145 <version>${sdk.version}</version>
148 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
149 <artifactId>dmaap-client</artifactId>
150 <version>${sdk.version}</version>
153 <groupId>org.projectlombok</groupId>
154 <artifactId>lombok</artifactId>
155 <scope>provided</scope>
158 <groupId>com.squareup.okhttp3</groupId>
159 <artifactId>mockwebserver</artifactId>
162 <!--REQUIRED TO GENERATE DOCUMENTATION -->
164 <groupId>io.springfox</groupId>
165 <artifactId>springfox-swagger2</artifactId>
166 <version>${springfox.version}</version>
169 <groupId>io.springfox</groupId>
170 <artifactId>springfox-swagger-ui</artifactId>
171 <version>${springfox.version}</version>
175 <groupId>org.awaitility</groupId>
176 <artifactId>awaitility</artifactId>
177 <version>${awaitility.version}</version>
181 <groupId>io.projectreactor</groupId>
182 <artifactId>reactor-test</artifactId>
186 <groupId>org.junit.jupiter</groupId>
187 <artifactId>junit-jupiter-engine</artifactId>
191 <groupId>org.mockito</groupId>
192 <artifactId>mockito-junit-jupiter</artifactId>
196 <groupId>org.mockito</groupId>
197 <artifactId>mockito-core</artifactId>
201 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
202 <artifactId>dmaapClient</artifactId>
203 <version>${version.dmaap}</version>
206 <groupId>javax.ws.rs</groupId>
207 <artifactId>javax.ws.rs-api</artifactId>
208 <version>${javax.ws.rs-api.version}</version>
211 <groupId>org.glassfish.jersey.inject</groupId>
212 <artifactId>jersey-hk2</artifactId>
218 <groupId>org.springframework.boot</groupId>
219 <artifactId>spring-boot-maven-plugin</artifactId>
222 <groupId>net.revelc.code.formatter</groupId>
223 <artifactId>formatter-maven-plugin</artifactId>
224 <version>${formatter-maven-plugin.version}</version>
226 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
228 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
229 spotless:apply process-sources -->
232 <groupId>com.diffplug.spotless</groupId>
233 <artifactId>spotless-maven-plugin</artifactId>
234 <version>${spotless-maven-plugin.version}</version>
237 <removeUnusedImports />
239 <order>com,java,javax,org</order>
243 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
244 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
248 <groupId>org.apache.maven.plugins</groupId>
249 <artifactId>maven-surefire-plugin</artifactId>
251 <skipTests>false</skipTests>
255 <artifactId>maven-failsafe-plugin</artifactId>
258 <groupId>org.codehaus.mojo</groupId>
259 <artifactId>build-helper-maven-plugin</artifactId>
263 <phase>generate-sources</phase>
265 <goal>add-source</goal>
269 <source>${project.build.directory}/generated-sources/annotations/</source>
276 <groupId>org.jacoco</groupId>
277 <artifactId>jacoco-maven-plugin</artifactId>
278 <version>0.8.4</version>
281 <id>default-prepare-agent</id>
283 <goal>prepare-agent</goal>
287 <id>default-report</id>
288 <phase>prepare-package</phase>
296 <groupId>io.fabric8</groupId>
297 <artifactId>docker-maven-plugin</artifactId>
298 <version>${docker-maven-plugin}</version>
299 <inherited>false</inherited>
302 <id>generate-policy-agent-image</id>
303 <phase>package</phase>
308 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
311 <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
313 <cleanup>try</cleanup>
314 <contextDir>${basedir}</contextDir>
315 <dockerFile>Dockerfile</dockerFile>
317 <JAR>${project.build.finalName}.jar</JAR>
320 <tag>${project.version}</tag>
328 <id>push-policy-agent-image</id>
334 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
335 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
338 <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
340 <contextDir>${basedir}</contextDir>
341 <dockerFile>Dockerfile</dockerFile>
343 <JAR>${project.build.finalName}.jar</JAR>
346 <tag>${project.version}</tag>
356 <!-- support sonar in multi-module project -->
358 <groupId>org.sonarsource.scanner.maven</groupId>
359 <artifactId>sonar-maven-plugin</artifactId>
360 <version>${sonar-maven-plugin.version}</version>
365 <system>JIRA</system>
366 <url>https://jira.o-ran-sc.org/</url>