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.5.3</version>
32 <groupId>org.o-ran-sc.nonrtric</groupId>
33 <artifactId>policy-agent</artifactId>
34 <version>2.3.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>3.0.0</springfox.version>
51 <immutable.version>2.8.2</immutable.version>
52 <sdk.version>1.1.6</sdk.version>
53 <swagger.version>2.1.6</swagger.version>
54 <json.version>20190722</json.version>
55 <commons-net.version>3.6</commons-net.version>
56 <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
57 <formatter-maven-plugin.version>2.12.2</formatter-maven-plugin.version>
58 <spotless-maven-plugin.version>1.18.0</spotless-maven-plugin.version>
59 <docker-maven-plugin>0.30.0</docker-maven-plugin>
60 <version.dmaap>1.1.11</version.dmaap>
61 <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
62 <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
63 <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
64 <exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
68 <groupId>com.google.guava</groupId>
69 <artifactId>guava</artifactId>
70 <version>30.0-jre</version>
73 <groupId>org.springdoc</groupId>
74 <artifactId>springdoc-openapi-ui</artifactId>
75 <version>1.5.2</version>
78 <groupId>org.springframework.boot</groupId>
79 <artifactId>spring-boot-starter-web</artifactId>
82 <groupId>org.springframework.boot</groupId>
83 <artifactId>spring-boot-starter-thymeleaf</artifactId>
86 <groupId>org.springframework.boot</groupId>
87 <artifactId>spring-boot-starter-webflux</artifactId>
90 <groupId>org.springframework.boot</groupId>
91 <artifactId>spring-boot-starter-aop</artifactId>
94 <groupId>org.springframework.boot</groupId>
95 <artifactId>spring-boot-devtools</artifactId>
96 <optional>true</optional>
99 <groupId>org.springframework</groupId>
100 <artifactId>spring-webflux</artifactId>
103 <groupId>io.swagger.core.v3</groupId>
104 <artifactId>swagger-jaxrs2</artifactId>
105 <version>${swagger.version}</version>
108 <groupId>io.swagger.core.v3</groupId>
109 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
110 <version>${swagger.version}</version>
113 <groupId>javax.xml.bind</groupId>
114 <artifactId>jaxb-api</artifactId>
117 <groupId>org.immutables</groupId>
118 <artifactId>value</artifactId>
119 <version>${immutable.version}</version>
120 <scope>provided</scope>
123 <groupId>org.immutables</groupId>
124 <artifactId>gson</artifactId>
125 <version>${immutable.version}</version>
128 <groupId>org.json</groupId>
129 <artifactId>json</artifactId>
130 <version>${json.version}</version>
133 <groupId>commons-net</groupId>
134 <artifactId>commons-net</artifactId>
135 <version>${commons-net.version}</version>
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.projectlombok</groupId>
149 <artifactId>lombok</artifactId>
150 <scope>provided</scope>
153 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
154 <artifactId>dmaapClient</artifactId>
155 <version>${version.dmaap}</version>
158 <groupId>javax.ws.rs</groupId>
159 <artifactId>javax.ws.rs-api</artifactId>
160 <version>${javax.ws.rs-api.version}</version>
163 <groupId>org.glassfish.jersey.inject</groupId>
164 <artifactId>jersey-hk2</artifactId>
166 <!-- Actuator dependencies -->
168 <groupId>org.springframework.boot</groupId>
169 <artifactId>spring-boot-starter-actuator</artifactId>
171 <!--REQUIRED TO GENERATE DOCUMENTATION -->
173 <groupId>io.springfox</groupId>
174 <artifactId>springfox-swagger2</artifactId>
175 <version>${springfox.version}</version>
178 <groupId>io.springfox</groupId>
179 <artifactId>springfox-swagger-ui</artifactId>
180 <version>${springfox.version}</version>
184 <groupId>org.springframework.boot</groupId>
185 <artifactId>spring-boot-starter-test</artifactId>
189 <groupId>org.awaitility</groupId>
190 <artifactId>awaitility</artifactId>
194 <groupId>io.projectreactor</groupId>
195 <artifactId>reactor-test</artifactId>
199 <groupId>org.junit.jupiter</groupId>
200 <artifactId>junit-jupiter-engine</artifactId>
204 <groupId>org.mockito</groupId>
205 <artifactId>mockito-junit-jupiter</artifactId>
209 <groupId>org.mockito</groupId>
210 <artifactId>mockito-core</artifactId>
214 <groupId>com.squareup.okhttp3</groupId>
215 <artifactId>mockwebserver</artifactId>
222 <groupId>org.springframework.boot</groupId>
223 <artifactId>spring-boot-maven-plugin</artifactId>
226 <groupId>net.revelc.code.formatter</groupId>
227 <artifactId>formatter-maven-plugin</artifactId>
228 <version>${formatter-maven-plugin.version}</version>
230 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
232 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
233 spotless:apply process-sources -->
236 <groupId>com.diffplug.spotless</groupId>
237 <artifactId>spotless-maven-plugin</artifactId>
238 <version>${spotless-maven-plugin.version}</version>
241 <removeUnusedImports />
243 <order>com,java,javax,org</order>
247 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
248 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
252 <groupId>org.apache.maven.plugins</groupId>
253 <artifactId>maven-surefire-plugin</artifactId>
255 <skipTests>false</skipTests>
259 <artifactId>maven-failsafe-plugin</artifactId>
262 <groupId>org.codehaus.mojo</groupId>
263 <artifactId>build-helper-maven-plugin</artifactId>
267 <phase>generate-sources</phase>
269 <goal>add-source</goal>
273 <source>${project.build.directory}/generated-sources/annotations/</source>
280 <groupId>org.jacoco</groupId>
281 <artifactId>jacoco-maven-plugin</artifactId>
282 <version>${jacoco-maven-plugin.version}</version>
285 <id>default-prepare-agent</id>
287 <goal>prepare-agent</goal>
291 <id>default-report</id>
292 <phase>prepare-package</phase>
300 <groupId>io.fabric8</groupId>
301 <artifactId>docker-maven-plugin</artifactId>
302 <version>${docker-maven-plugin}</version>
303 <inherited>false</inherited>
306 <id>generate-policy-agent-image</id>
307 <phase>package</phase>
312 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
315 <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
317 <cleanup>try</cleanup>
318 <contextDir>${basedir}</contextDir>
319 <dockerFile>Dockerfile</dockerFile>
321 <JAR>${project.build.finalName}.jar</JAR>
324 <tag>${project.version}</tag>
332 <id>push-policy-agent-image</id>
338 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
339 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
342 <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
344 <contextDir>${basedir}</contextDir>
345 <dockerFile>Dockerfile</dockerFile>
347 <JAR>${project.build.finalName}.jar</JAR>
350 <tag>${project.version}</tag>
360 <!-- support sonar in multi-module project -->
362 <groupId>org.sonarsource.scanner.maven</groupId>
363 <artifactId>sonar-maven-plugin</artifactId>
364 <version>${sonar-maven-plugin.version}</version>
367 <groupId>org.codehaus.mojo</groupId>
368 <artifactId>exec-maven-plugin</artifactId>
369 <version>${exec-maven-plugin.version}</version>
372 <id>git submodule update</id>
373 <phase>initialize</phase>
375 <executable>git</executable>
377 <argument>submodule</argument>
378 <argument>update</argument>
379 <argument>--init</argument>
380 <argument>--recursive</argument>
388 <id>copy configuration</id>
389 <phase>initialize</phase>
391 <executable>cp</executable>
393 <argument>-r</argument>
394 <argument>../onap/oran/a1-policy-management/config</argument>
395 <argument>.</argument>
407 <system>JIRA</system>
408 <url>https://jira.o-ran-sc.org/</url>