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 <awaitility.version>4.0.1</awaitility.version>
45 <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
46 <formatter-maven-plugin.version>2.8.1</formatter-maven-plugin.version>
47 <spotless-maven-plugin.version>1.18.0</spotless-maven-plugin.version>
48 <docker-maven-plugin>0.30.0</docker-maven-plugin>
49 <version.dmaap>1.1.9</version.dmaap>
50 <version.lombok>1.18.4</version.lombok>
54 <groupId>org.springframework.boot</groupId>
55 <artifactId>spring-boot-starter-web</artifactId>
58 <groupId>org.springframework.boot</groupId>
59 <artifactId>spring-boot-starter-thymeleaf</artifactId>
62 <groupId>org.springframework.boot</groupId>
63 <artifactId>spring-boot-starter-webflux</artifactId>
66 <groupId>org.springframework.boot</groupId>
67 <artifactId>spring-boot-devtools</artifactId>
68 <optional>true</optional>
71 <groupId>org.springframework</groupId>
72 <artifactId>spring-webflux</artifactId>
75 <groupId>io.swagger.core.v3</groupId>
76 <artifactId>swagger-jaxrs2</artifactId>
77 <version>${swagger.version}</version>
80 <groupId>io.swagger.core.v3</groupId>
81 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
82 <version>${swagger.version}</version>
85 <groupId>javax.xml.bind</groupId>
86 <artifactId>jaxb-api</artifactId>
89 <groupId>org.immutables</groupId>
90 <artifactId>value</artifactId>
91 <version>${immutable.version}</version>
92 <scope>provided</scope>
95 <groupId>org.immutables</groupId>
96 <artifactId>gson</artifactId>
97 <version>${immutable.version}</version>
100 <groupId>org.json</groupId>
101 <artifactId>json</artifactId>
102 <version>${json.version}</version>
106 <groupId>org.springframework.boot</groupId>
107 <artifactId>spring-boot-starter-test</artifactId>
111 <groupId>org.springframework.boot</groupId>
112 <artifactId>spring-boot-configuration-processor</artifactId>
113 <optional>true</optional>
116 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
117 <artifactId>cbs-client</artifactId>
118 <version>${sdk.version}</version>
120 <!--REQUIRED TO GENERATE DOCUMENTATION -->
122 <groupId>io.springfox</groupId>
123 <artifactId>springfox-swagger2</artifactId>
124 <version>${springfox.version}</version>
127 <groupId>io.springfox</groupId>
128 <artifactId>springfox-swagger-ui</artifactId>
129 <version>${springfox.version}</version>
133 <groupId>org.awaitility</groupId>
134 <artifactId>awaitility</artifactId>
135 <version>${awaitility.version}</version>
139 <groupId>io.projectreactor</groupId>
140 <artifactId>reactor-test</artifactId>
144 <groupId>org.junit.jupiter</groupId>
145 <artifactId>junit-jupiter-engine</artifactId>
149 <groupId>org.mockito</groupId>
150 <artifactId>mockito-junit-jupiter</artifactId>
154 <groupId>org.mockito</groupId>
155 <artifactId>mockito-core</artifactId>
159 <groupId>org.projectlombok</groupId>
160 <artifactId>lombok</artifactId>
161 <scope>provided</scope>
164 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
165 <artifactId>dmaapClient</artifactId>
166 <version>${version.dmaap}</version>
172 <groupId>org.springframework.boot</groupId>
173 <artifactId>spring-boot-maven-plugin</artifactId>
176 <groupId>net.revelc.code.formatter</groupId>
177 <artifactId>formatter-maven-plugin</artifactId>
178 <version>${formatter-maven-plugin.version}</version>
180 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
182 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
183 spotless:apply process-sources -->
186 <groupId>com.diffplug.spotless</groupId>
187 <artifactId>spotless-maven-plugin</artifactId>
188 <version>${spotless-maven-plugin.version}</version>
191 <removeUnusedImports />
193 <order>com,java,javax,org</order>
197 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
198 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
202 <groupId>org.apache.maven.plugins</groupId>
203 <artifactId>maven-surefire-plugin</artifactId>
205 <skipTests>false</skipTests>
209 <artifactId>maven-failsafe-plugin</artifactId>
212 <groupId>org.codehaus.mojo</groupId>
213 <artifactId>build-helper-maven-plugin</artifactId>
217 <phase>generate-sources</phase>
219 <goal>add-source</goal>
223 <source>${project.build.directory}/generated-sources/annotations/</source>
230 <groupId>io.fabric8</groupId>
231 <artifactId>docker-maven-plugin</artifactId>
232 <version>${docker-maven-plugin}</version>
233 <inherited>false</inherited>
236 <id>generate-policy-agent-image</id>
237 <phase>package</phase>
242 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
245 <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
247 <cleanup>try</cleanup>
248 <contextDir>${basedir}</contextDir>
249 <dockerFile>Dockerfile</dockerFile>
251 <JAR>${project.build.finalName}.jar</JAR>
254 <tag>${project.version}</tag>
262 <id>push-policy-agent-image</id>
268 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
269 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
272 <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
274 <contextDir>${basedir}</contextDir>
275 <dockerFile>Dockerfile</dockerFile>
277 <JAR>${project.build.finalName}.jar</JAR>
280 <tag>${project.version}</tag>
292 <system>JIRA</system>
293 <url>https://jira.o-ran-sc.org/</url>