1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- * ========================LICENSE_START=================================
3 * O-RAN-SC * %% * Copyright (C) 2019 Nordix Foundation * %% * Licensed under
4 the Apache License, Version 2.0 (the "License"); * you may not use this file
5 except in compliance with the License. * You may obtain a copy of the License
6 at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by
7 applicable law or agreed to in writing, software * distributed under the
8 License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS
9 OF ANY KIND, either express or implied. * See the License for the specific
10 language governing permissions and * limitations under the License. * ========================LICENSE_END=================================== -->
11 <project xmlns="http://maven.apache.org/POM/4.0.0"
12 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
14 <modelVersion>4.0.0</modelVersion>
16 <groupId>org.springframework.boot</groupId>
17 <artifactId>spring-boot-starter-parent</artifactId>
18 <version>2.1.6.RELEASE</version>
21 <groupId>org.o-ran-sc.nonrtric</groupId>
22 <artifactId>policy-agent</artifactId>
23 <version>1.0.0-SNAPSHOT</version>
26 <name>The Apache Software License, Version 2.0</name>
27 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
32 <id>onap-releases</id>
33 <name>onap-releases</name>
34 <url>https://nexus.onap.org/content/repositories/releases/</url>
38 <java.version>11</java.version>
39 <springfox.version>2.8.0</springfox.version>
40 <immutable.version>2.7.1</immutable.version>
41 <sdk.version>1.1.6</sdk.version>
42 <swagger.version>2.0.0</swagger.version>
43 <json.version>20180130</json.version>
44 <commons-net.version>3.3</commons-net.version>
45 <awaitility.version>4.0.1</awaitility.version>
46 <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
47 <formatter-maven-plugin.version>2.8.1</formatter-maven-plugin.version>
48 <spotless-maven-plugin.version>1.18.0</spotless-maven-plugin.version>
49 <docker-maven-plugin>0.30.0</docker-maven-plugin>
50 <version.dmaap>1.1.9</version.dmaap>
51 <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
55 <groupId>org.springframework.boot</groupId>
56 <artifactId>spring-boot-starter-web</artifactId>
59 <groupId>org.springframework.boot</groupId>
60 <artifactId>spring-boot-starter-thymeleaf</artifactId>
63 <groupId>org.springframework.boot</groupId>
64 <artifactId>spring-boot-starter-webflux</artifactId>
67 <groupId>org.springframework.boot</groupId>
68 <artifactId>spring-boot-devtools</artifactId>
69 <optional>true</optional>
72 <groupId>org.springframework</groupId>
73 <artifactId>spring-webflux</artifactId>
76 <groupId>io.swagger.core.v3</groupId>
77 <artifactId>swagger-jaxrs2</artifactId>
78 <version>${swagger.version}</version>
81 <groupId>io.swagger.core.v3</groupId>
82 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
83 <version>${swagger.version}</version>
86 <groupId>javax.xml.bind</groupId>
87 <artifactId>jaxb-api</artifactId>
90 <groupId>org.immutables</groupId>
91 <artifactId>value</artifactId>
92 <version>${immutable.version}</version>
93 <scope>provided</scope>
96 <groupId>org.immutables</groupId>
97 <artifactId>gson</artifactId>
98 <version>${immutable.version}</version>
101 <groupId>org.json</groupId>
102 <artifactId>json</artifactId>
103 <version>${json.version}</version>
106 <groupId>commons-net</groupId>
107 <artifactId>commons-net</artifactId>
108 <version>${commons-net.version}</version>
112 <groupId>org.springframework.boot</groupId>
113 <artifactId>spring-boot-starter-test</artifactId>
117 <groupId>org.springframework.boot</groupId>
118 <artifactId>spring-boot-configuration-processor</artifactId>
119 <optional>true</optional>
122 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
123 <artifactId>cbs-client</artifactId>
124 <version>${sdk.version}</version>
127 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
128 <artifactId>dmaap-client</artifactId>
129 <version>${sdk.version}</version>
131 <!--REQUIRED TO GENERATE DOCUMENTATION -->
133 <groupId>io.springfox</groupId>
134 <artifactId>springfox-swagger2</artifactId>
135 <version>${springfox.version}</version>
138 <groupId>io.springfox</groupId>
139 <artifactId>springfox-swagger-ui</artifactId>
140 <version>${springfox.version}</version>
144 <groupId>org.awaitility</groupId>
145 <artifactId>awaitility</artifactId>
146 <version>${awaitility.version}</version>
150 <groupId>io.projectreactor</groupId>
151 <artifactId>reactor-test</artifactId>
155 <groupId>org.junit.jupiter</groupId>
156 <artifactId>junit-jupiter-engine</artifactId>
160 <groupId>org.mockito</groupId>
161 <artifactId>mockito-junit-jupiter</artifactId>
165 <groupId>org.mockito</groupId>
166 <artifactId>mockito-core</artifactId>
170 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
171 <artifactId>dmaapClient</artifactId>
172 <version>${version.dmaap}</version>
175 <groupId>javax.ws.rs</groupId>
176 <artifactId>javax.ws.rs-api</artifactId>
177 <version>${javax.ws.rs-api.version}</version>
180 <groupId>org.glassfish.jersey.inject</groupId>
181 <artifactId>jersey-hk2</artifactId>
187 <groupId>org.springframework.boot</groupId>
188 <artifactId>spring-boot-maven-plugin</artifactId>
191 <groupId>net.revelc.code.formatter</groupId>
192 <artifactId>formatter-maven-plugin</artifactId>
193 <version>${formatter-maven-plugin.version}</version>
195 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
197 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
198 spotless:apply process-sources -->
201 <groupId>com.diffplug.spotless</groupId>
202 <artifactId>spotless-maven-plugin</artifactId>
203 <version>${spotless-maven-plugin.version}</version>
206 <removeUnusedImports />
208 <order>com,java,javax,org</order>
212 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
213 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
217 <groupId>org.apache.maven.plugins</groupId>
218 <artifactId>maven-surefire-plugin</artifactId>
220 <skipTests>false</skipTests>
224 <artifactId>maven-failsafe-plugin</artifactId>
227 <groupId>org.codehaus.mojo</groupId>
228 <artifactId>build-helper-maven-plugin</artifactId>
232 <phase>generate-sources</phase>
234 <goal>add-source</goal>
238 <source>${project.build.directory}/generated-sources/annotations/</source>
245 <groupId>io.fabric8</groupId>
246 <artifactId>docker-maven-plugin</artifactId>
247 <version>${docker-maven-plugin}</version>
248 <inherited>false</inherited>
251 <id>generate-policy-agent-image</id>
252 <phase>package</phase>
257 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
260 <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
262 <cleanup>try</cleanup>
263 <contextDir>${basedir}</contextDir>
264 <dockerFile>Dockerfile</dockerFile>
266 <JAR>${project.build.finalName}.jar</JAR>
269 <tag>${project.version}</tag>
277 <id>push-policy-agent-image</id>
283 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
284 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
287 <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
289 <contextDir>${basedir}</contextDir>
290 <dockerFile>Dockerfile</dockerFile>
292 <JAR>${project.build.finalName}.jar</JAR>
295 <tag>${project.version}</tag>
307 <system>JIRA</system>
308 <url>https://jira.o-ran-sc.org/</url>