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.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>
66 <groupId>org.springframework.boot</groupId>
67 <artifactId>spring-boot-starter-web</artifactId>
70 <groupId>org.springframework.boot</groupId>
71 <artifactId>spring-boot-starter-thymeleaf</artifactId>
74 <groupId>org.springframework.boot</groupId>
75 <artifactId>spring-boot-starter-webflux</artifactId>
78 <groupId>org.springframework.boot</groupId>
79 <artifactId>spring-boot-devtools</artifactId>
80 <optional>true</optional>
83 <groupId>org.springframework</groupId>
84 <artifactId>spring-webflux</artifactId>
87 <groupId>io.swagger.core.v3</groupId>
88 <artifactId>swagger-jaxrs2</artifactId>
89 <version>${swagger.version}</version>
92 <groupId>io.swagger.core.v3</groupId>
93 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
94 <version>${swagger.version}</version>
97 <groupId>javax.xml.bind</groupId>
98 <artifactId>jaxb-api</artifactId>
101 <groupId>org.immutables</groupId>
102 <artifactId>value</artifactId>
103 <version>${immutable.version}</version>
104 <scope>provided</scope>
107 <groupId>org.immutables</groupId>
108 <artifactId>gson</artifactId>
109 <version>${immutable.version}</version>
112 <groupId>org.json</groupId>
113 <artifactId>json</artifactId>
114 <version>${json.version}</version>
117 <groupId>commons-net</groupId>
118 <artifactId>commons-net</artifactId>
119 <version>${commons-net.version}</version>
121 <!-- Actuator dependencies -->
123 <groupId>org.springframework.boot</groupId>
124 <artifactId>spring-boot-starter-actuator</artifactId>
128 <groupId>org.springframework.boot</groupId>
129 <artifactId>spring-boot-starter-test</artifactId>
133 <groupId>org.springframework.boot</groupId>
134 <artifactId>spring-boot-configuration-processor</artifactId>
135 <optional>true</optional>
138 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
139 <artifactId>cbs-client</artifactId>
140 <version>${sdk.version}</version>
143 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
144 <artifactId>dmaap-client</artifactId>
145 <version>${sdk.version}</version>
148 <groupId>org.projectlombok</groupId>
149 <artifactId>lombok</artifactId>
150 <scope>provided</scope>
152 <!--REQUIRED TO GENERATE DOCUMENTATION -->
154 <groupId>io.springfox</groupId>
155 <artifactId>springfox-swagger2</artifactId>
156 <version>${springfox.version}</version>
159 <groupId>io.springfox</groupId>
160 <artifactId>springfox-swagger-ui</artifactId>
161 <version>${springfox.version}</version>
165 <groupId>org.awaitility</groupId>
166 <artifactId>awaitility</artifactId>
167 <version>${awaitility.version}</version>
171 <groupId>io.projectreactor</groupId>
172 <artifactId>reactor-test</artifactId>
176 <groupId>org.junit.jupiter</groupId>
177 <artifactId>junit-jupiter-engine</artifactId>
181 <groupId>org.mockito</groupId>
182 <artifactId>mockito-junit-jupiter</artifactId>
186 <groupId>org.mockito</groupId>
187 <artifactId>mockito-core</artifactId>
191 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
192 <artifactId>dmaapClient</artifactId>
193 <version>${version.dmaap}</version>
196 <groupId>javax.ws.rs</groupId>
197 <artifactId>javax.ws.rs-api</artifactId>
198 <version>${javax.ws.rs-api.version}</version>
201 <groupId>org.glassfish.jersey.inject</groupId>
202 <artifactId>jersey-hk2</artifactId>
208 <groupId>org.springframework.boot</groupId>
209 <artifactId>spring-boot-maven-plugin</artifactId>
212 <groupId>net.revelc.code.formatter</groupId>
213 <artifactId>formatter-maven-plugin</artifactId>
214 <version>${formatter-maven-plugin.version}</version>
216 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
218 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
219 spotless:apply process-sources -->
222 <groupId>com.diffplug.spotless</groupId>
223 <artifactId>spotless-maven-plugin</artifactId>
224 <version>${spotless-maven-plugin.version}</version>
227 <removeUnusedImports />
229 <order>com,java,javax,org</order>
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
238 <groupId>org.apache.maven.plugins</groupId>
239 <artifactId>maven-surefire-plugin</artifactId>
241 <skipTests>false</skipTests>
245 <artifactId>maven-failsafe-plugin</artifactId>
248 <groupId>org.codehaus.mojo</groupId>
249 <artifactId>build-helper-maven-plugin</artifactId>
253 <phase>generate-sources</phase>
255 <goal>add-source</goal>
259 <source>${project.build.directory}/generated-sources/annotations/</source>
266 <groupId>io.fabric8</groupId>
267 <artifactId>docker-maven-plugin</artifactId>
268 <version>${docker-maven-plugin}</version>
269 <inherited>false</inherited>
272 <id>generate-policy-agent-image</id>
273 <phase>package</phase>
278 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
281 <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
283 <cleanup>try</cleanup>
284 <contextDir>${basedir}</contextDir>
285 <dockerFile>Dockerfile</dockerFile>
287 <JAR>${project.build.finalName}.jar</JAR>
290 <tag>${project.version}</tag>
298 <id>push-policy-agent-image</id>
304 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
305 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
308 <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
310 <contextDir>${basedir}</contextDir>
311 <dockerFile>Dockerfile</dockerFile>
313 <JAR>${project.build.finalName}.jar</JAR>
316 <tag>${project.version}</tag>
328 <system>JIRA</system>
329 <url>https://jira.o-ran-sc.org/</url>