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===================================
21 <project xmlns="http://maven.apache.org/POM/4.0.0"
22 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
24 <modelVersion>4.0.0</modelVersion>
26 <groupId>org.springframework.boot</groupId>
27 <artifactId>spring-boot-starter-parent</artifactId>
28 <version>2.2.4.RELEASE</version>
31 <groupId>org.o-ran-sc.nonrtric</groupId>
32 <artifactId>policy-agent</artifactId>
33 <version>1.0.0-SNAPSHOT</version>
36 <name>The Apache Software License, Version 2.0</name>
37 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
42 <id>onap-releases</id>
43 <name>onap-releases</name>
44 <url>https://nexus.onap.org/content/repositories/releases/</url>
48 <java.version>11</java.version>
49 <springfox.version>2.8.0</springfox.version>
50 <immutable.version>2.7.1</immutable.version>
51 <sdk.version>1.1.6</sdk.version>
52 <swagger.version>2.0.0</swagger.version>
53 <json.version>20180130</json.version>
54 <commons-net.version>3.3</commons-net.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>
60 <version.dmaap>1.1.9</version.dmaap>
61 <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
65 <groupId>org.springframework.boot</groupId>
66 <artifactId>spring-boot-starter-web</artifactId>
69 <groupId>org.springframework.boot</groupId>
70 <artifactId>spring-boot-starter-thymeleaf</artifactId>
73 <groupId>org.springframework.boot</groupId>
74 <artifactId>spring-boot-starter-webflux</artifactId>
77 <groupId>org.springframework.boot</groupId>
78 <artifactId>spring-boot-devtools</artifactId>
79 <optional>true</optional>
82 <groupId>org.springframework</groupId>
83 <artifactId>spring-webflux</artifactId>
86 <groupId>io.swagger.core.v3</groupId>
87 <artifactId>swagger-jaxrs2</artifactId>
88 <version>${swagger.version}</version>
91 <groupId>io.swagger.core.v3</groupId>
92 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
93 <version>${swagger.version}</version>
96 <groupId>javax.xml.bind</groupId>
97 <artifactId>jaxb-api</artifactId>
100 <groupId>org.immutables</groupId>
101 <artifactId>value</artifactId>
102 <version>${immutable.version}</version>
103 <scope>provided</scope>
106 <groupId>org.immutables</groupId>
107 <artifactId>gson</artifactId>
108 <version>${immutable.version}</version>
111 <groupId>org.json</groupId>
112 <artifactId>json</artifactId>
113 <version>${json.version}</version>
116 <groupId>commons-net</groupId>
117 <artifactId>commons-net</artifactId>
118 <version>${commons-net.version}</version>
122 <groupId>org.springframework.boot</groupId>
123 <artifactId>spring-boot-starter-test</artifactId>
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.onap.dcaegen2.services.sdk.rest.services</groupId>
138 <artifactId>dmaap-client</artifactId>
139 <version>${sdk.version}</version>
142 <groupId>org.projectlombok</groupId>
143 <artifactId>lombok</artifactId>
144 <scope>provided</scope>
146 <!--REQUIRED TO GENERATE DOCUMENTATION -->
148 <groupId>io.springfox</groupId>
149 <artifactId>springfox-swagger2</artifactId>
150 <version>${springfox.version}</version>
153 <groupId>io.springfox</groupId>
154 <artifactId>springfox-swagger-ui</artifactId>
155 <version>${springfox.version}</version>
159 <groupId>org.awaitility</groupId>
160 <artifactId>awaitility</artifactId>
161 <version>${awaitility.version}</version>
165 <groupId>io.projectreactor</groupId>
166 <artifactId>reactor-test</artifactId>
170 <groupId>org.junit.jupiter</groupId>
171 <artifactId>junit-jupiter-engine</artifactId>
175 <groupId>org.mockito</groupId>
176 <artifactId>mockito-junit-jupiter</artifactId>
180 <groupId>org.mockito</groupId>
181 <artifactId>mockito-core</artifactId>
185 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
186 <artifactId>dmaapClient</artifactId>
187 <version>${version.dmaap}</version>
190 <groupId>javax.ws.rs</groupId>
191 <artifactId>javax.ws.rs-api</artifactId>
192 <version>${javax.ws.rs-api.version}</version>
195 <groupId>org.glassfish.jersey.inject</groupId>
196 <artifactId>jersey-hk2</artifactId>
202 <groupId>org.springframework.boot</groupId>
203 <artifactId>spring-boot-maven-plugin</artifactId>
206 <groupId>net.revelc.code.formatter</groupId>
207 <artifactId>formatter-maven-plugin</artifactId>
208 <version>${formatter-maven-plugin.version}</version>
210 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
212 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
213 spotless:apply process-sources -->
216 <groupId>com.diffplug.spotless</groupId>
217 <artifactId>spotless-maven-plugin</artifactId>
218 <version>${spotless-maven-plugin.version}</version>
221 <removeUnusedImports />
223 <order>com,java,javax,org</order>
227 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
228 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
232 <groupId>org.apache.maven.plugins</groupId>
233 <artifactId>maven-surefire-plugin</artifactId>
235 <skipTests>false</skipTests>
239 <artifactId>maven-failsafe-plugin</artifactId>
242 <groupId>org.codehaus.mojo</groupId>
243 <artifactId>build-helper-maven-plugin</artifactId>
247 <phase>generate-sources</phase>
249 <goal>add-source</goal>
253 <source>${project.build.directory}/generated-sources/annotations/</source>
260 <groupId>io.fabric8</groupId>
261 <artifactId>docker-maven-plugin</artifactId>
262 <version>${docker-maven-plugin}</version>
263 <inherited>false</inherited>
266 <id>generate-policy-agent-image</id>
267 <phase>package</phase>
272 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
275 <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
277 <cleanup>try</cleanup>
278 <contextDir>${basedir}</contextDir>
279 <dockerFile>Dockerfile</dockerFile>
281 <JAR>${project.build.finalName}.jar</JAR>
284 <tag>${project.version}</tag>
292 <id>push-policy-agent-image</id>
298 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
299 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
302 <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
304 <contextDir>${basedir}</contextDir>
305 <dockerFile>Dockerfile</dockerFile>
307 <JAR>${project.build.finalName}.jar</JAR>
310 <tag>${project.version}</tag>
322 <system>JIRA</system>
323 <url>https://jira.o-ran-sc.org/</url>