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.3.4.RELEASE</version>
32 <groupId>org.o-ran-sc.nonrtric</groupId>
33 <artifactId>policy-agent</artifactId>
34 <version>2.2.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.8.2</immutable.version>
52 <sdk.version>1.1.6</sdk.version>
53 <swagger.version>2.0.0</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>
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>
127 <groupId>org.springframework.boot</groupId>
128 <artifactId>spring-boot-configuration-processor</artifactId>
129 <optional>true</optional>
132 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
133 <artifactId>cbs-client</artifactId>
134 <version>${sdk.version}</version>
137 <groupId>org.projectlombok</groupId>
138 <artifactId>lombok</artifactId>
139 <scope>provided</scope>
142 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
143 <artifactId>dmaapClient</artifactId>
144 <version>${version.dmaap}</version>
147 <groupId>javax.ws.rs</groupId>
148 <artifactId>javax.ws.rs-api</artifactId>
149 <version>${javax.ws.rs-api.version}</version>
152 <groupId>org.glassfish.jersey.inject</groupId>
153 <artifactId>jersey-hk2</artifactId>
155 <!-- Actuator dependencies -->
157 <groupId>org.springframework.boot</groupId>
158 <artifactId>spring-boot-starter-actuator</artifactId>
160 <!--REQUIRED TO GENERATE DOCUMENTATION -->
162 <groupId>io.springfox</groupId>
163 <artifactId>springfox-swagger2</artifactId>
164 <version>${springfox.version}</version>
167 <groupId>io.springfox</groupId>
168 <artifactId>springfox-swagger-ui</artifactId>
169 <version>${springfox.version}</version>
173 <groupId>org.springframework.boot</groupId>
174 <artifactId>spring-boot-starter-test</artifactId>
178 <groupId>org.awaitility</groupId>
179 <artifactId>awaitility</artifactId>
183 <groupId>io.projectreactor</groupId>
184 <artifactId>reactor-test</artifactId>
188 <groupId>org.junit.jupiter</groupId>
189 <artifactId>junit-jupiter-engine</artifactId>
193 <groupId>org.mockito</groupId>
194 <artifactId>mockito-junit-jupiter</artifactId>
198 <groupId>org.mockito</groupId>
199 <artifactId>mockito-core</artifactId>
203 <groupId>com.squareup.okhttp3</groupId>
204 <artifactId>mockwebserver</artifactId>
211 <groupId>org.springframework.boot</groupId>
212 <artifactId>spring-boot-maven-plugin</artifactId>
215 <groupId>net.revelc.code.formatter</groupId>
216 <artifactId>formatter-maven-plugin</artifactId>
217 <version>${formatter-maven-plugin.version}</version>
219 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
221 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
222 spotless:apply process-sources -->
225 <groupId>com.diffplug.spotless</groupId>
226 <artifactId>spotless-maven-plugin</artifactId>
227 <version>${spotless-maven-plugin.version}</version>
230 <removeUnusedImports />
232 <order>com,java,javax,org</order>
236 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
237 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
241 <groupId>org.apache.maven.plugins</groupId>
242 <artifactId>maven-surefire-plugin</artifactId>
244 <skipTests>false</skipTests>
248 <artifactId>maven-failsafe-plugin</artifactId>
251 <groupId>org.codehaus.mojo</groupId>
252 <artifactId>build-helper-maven-plugin</artifactId>
256 <phase>generate-sources</phase>
258 <goal>add-source</goal>
262 <source>${project.build.directory}/generated-sources/annotations/</source>
269 <groupId>org.jacoco</groupId>
270 <artifactId>jacoco-maven-plugin</artifactId>
271 <version>${jacoco-maven-plugin.version}</version>
274 <id>default-prepare-agent</id>
276 <goal>prepare-agent</goal>
280 <id>default-report</id>
281 <phase>prepare-package</phase>
289 <groupId>io.fabric8</groupId>
290 <artifactId>docker-maven-plugin</artifactId>
291 <version>${docker-maven-plugin}</version>
292 <inherited>false</inherited>
295 <id>generate-policy-agent-image</id>
296 <phase>package</phase>
301 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
304 <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
306 <cleanup>try</cleanup>
307 <contextDir>${basedir}</contextDir>
308 <dockerFile>Dockerfile</dockerFile>
310 <JAR>${project.build.finalName}.jar</JAR>
313 <tag>${project.version}</tag>
321 <id>push-policy-agent-image</id>
327 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
328 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
331 <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
333 <contextDir>${basedir}</contextDir>
334 <dockerFile>Dockerfile</dockerFile>
336 <JAR>${project.build.finalName}.jar</JAR>
339 <tag>${project.version}</tag>
349 <!-- support sonar in multi-module project -->
351 <groupId>org.sonarsource.scanner.maven</groupId>
352 <artifactId>sonar-maven-plugin</artifactId>
353 <version>${sonar-maven-plugin.version}</version>
356 <groupId>org.codehaus.mojo</groupId>
357 <artifactId>exec-maven-plugin</artifactId>
360 <id>git submodule update</id>
361 <phase>initialize</phase>
363 <executable>git</executable>
365 <argument>submodule</argument>
366 <argument>update</argument>
367 <argument>--init</argument>
368 <argument>--recursive</argument>
376 <id>copy configuration</id>
377 <phase>initialize</phase>
379 <executable>cp</executable>
381 <argument>-r</argument>
382 <argument>../onap/oran/a1-policy-management/config</argument>
383 <argument>.</argument>
395 <system>JIRA</system>
396 <url>https://jira.o-ran-sc.org/</url>