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.1.6.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.8.0</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 <awaitility.version>4.0.1</awaitility.version>
56 <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
57 <formatter-maven-plugin.version>2.8.1</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>
63 <groupId>org.springframework.boot</groupId>
64 <artifactId>spring-boot-starter-web</artifactId>
67 <groupId>org.springframework.boot</groupId>
68 <artifactId>spring-boot-starter-thymeleaf</artifactId>
71 <groupId>org.springframework.boot</groupId>
72 <artifactId>spring-boot-starter-webflux</artifactId>
75 <groupId>org.springframework.boot</groupId>
76 <artifactId>spring-boot-devtools</artifactId>
77 <optional>true</optional>
80 <groupId>org.springframework</groupId>
81 <artifactId>spring-webflux</artifactId>
84 <groupId>io.swagger.core.v3</groupId>
85 <artifactId>swagger-jaxrs2</artifactId>
86 <version>${swagger.version}</version>
89 <groupId>io.swagger.core.v3</groupId>
90 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
91 <version>${swagger.version}</version>
94 <groupId>io.springfox</groupId>
95 <artifactId>springfox-swagger-ui</artifactId>
96 <version>2.9.2</version>
99 <groupId>javax.xml.bind</groupId>
100 <artifactId>jaxb-api</artifactId>
103 <groupId>org.immutables</groupId>
104 <artifactId>value</artifactId>
105 <version>${immutable.version}</version>
106 <scope>provided</scope>
109 <groupId>org.immutables</groupId>
110 <artifactId>gson</artifactId>
111 <version>${immutable.version}</version>
114 <groupId>org.json</groupId>
115 <artifactId>json</artifactId>
116 <version>${json.version}</version>
120 <groupId>org.springframework.boot</groupId>
121 <artifactId>spring-boot-starter-test</artifactId>
125 <groupId>org.springframework.boot</groupId>
126 <artifactId>spring-boot-configuration-processor</artifactId>
127 <optional>true</optional>
130 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
131 <artifactId>cbs-client</artifactId>
132 <version>${sdk.version}</version>
134 <!--REQUIRED TO GENERATE DOCUMENTATION -->
136 <groupId>io.springfox</groupId>
137 <artifactId>springfox-swagger2</artifactId>
138 <version>${springfox.version}</version>
141 <groupId>io.springfox</groupId>
142 <artifactId>springfox-swagger-ui</artifactId>
143 <version>${springfox.version}</version>
147 <groupId>org.awaitility</groupId>
148 <artifactId>awaitility</artifactId>
149 <version>${awaitility.version}</version>
153 <groupId>io.projectreactor</groupId>
154 <artifactId>reactor-test</artifactId>
158 <groupId>org.junit.jupiter</groupId>
159 <artifactId>junit-jupiter-engine</artifactId>
163 <groupId>org.mockito</groupId>
164 <artifactId>mockito-junit-jupiter</artifactId>
168 <groupId>org.mockito</groupId>
169 <artifactId>mockito-core</artifactId>
176 <groupId>org.springframework.boot</groupId>
177 <artifactId>spring-boot-maven-plugin</artifactId>
180 <groupId>net.revelc.code.formatter</groupId>
181 <artifactId>formatter-maven-plugin</artifactId>
182 <version>${formatter-maven-plugin.version}</version>
184 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
186 <!-- https://code.revelc.net/formatter-maven-plugin/ use
187 mvn formatter:format spotless:apply process-sources -->
190 <groupId>com.diffplug.spotless</groupId>
191 <artifactId>spotless-maven-plugin</artifactId>
192 <version>${spotless-maven-plugin.version}</version>
195 <removeUnusedImports />
197 <order>com,java,javax,org</order>
201 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven
202 use mvn spotless:apply to rewrite source files use mvn spotless:check to
203 validate source files -->
206 <groupId>org.apache.maven.plugins</groupId>
207 <artifactId>maven-surefire-plugin</artifactId>
209 <skipTests>false</skipTests>
213 <artifactId>maven-failsafe-plugin</artifactId>
216 <groupId>org.codehaus.mojo</groupId>
217 <artifactId>build-helper-maven-plugin</artifactId>
221 <phase>generate-sources</phase>
223 <goal>add-source</goal>
227 <source>${project.build.directory}/generated-sources/annotations/</source>
234 <groupId>io.fabric8</groupId>
235 <artifactId>docker-maven-plugin</artifactId>
236 <version>${docker-maven-plugin}</version>
237 <inherited>false</inherited>
240 <id>generate-policy-agent-image</id>
241 <phase>package</phase>
246 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
249 <name>o-ran-sc/policy-agent:${project.version}</name>
251 <cleanup>try</cleanup>
252 <contextDir>${basedir}</contextDir>
253 <dockerFile>Dockerfile</dockerFile>
255 <tag>${project.version}</tag>
263 <id>push-policy-agent-image</id>
269 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
270 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
273 <name>o-ran-sc/policy-agent:${project.version}</name>
275 <contextDir>${basedir}</contextDir>
276 <dockerFile>Dockerfile</dockerFile>
278 <tag>${project.version}</tag>
290 <system>JIRA</system>
291 <url>https://jira.o-ran-sc.org/</url>