blob: aedb516d3b068128bddf8752f3ff0993e7160c51 [file] [log] [blame]
PatrikBuhr3bdae602019-11-28 10:58:54 +01001<?xml version="1.0" encoding="UTF-8"?>
elinuxhenrik80ebd8e2020-01-28 14:30:18 +01002<!--
3* ========================LICENSE_START=================================
4* O-RAN-SC
5* %%
6* Copyright (C) 2019 Nordix Foundation
7* %%
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
11*
12* http://www.apache.org/licenses/LICENSE-2.0
13*
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===================================
20-->
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010021<project
22 xmlns="http://maven.apache.org/POM/4.0.0"
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Lathishdac5e372020-01-23 13:56:28 +000024 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010025 <modelVersion>4.0.0</modelVersion>
26 <parent>
27 <groupId>org.springframework.boot</groupId>
28 <artifactId>spring-boot-starter-parent</artifactId>
RehanRaza0591aa32020-09-25 11:58:01 +020029 <version>2.3.4.RELEASE</version>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010030 <relativePath />
31 </parent>
32 <groupId>org.o-ran-sc.nonrtric</groupId>
33 <artifactId>policy-agent</artifactId>
elinuxhenrik1fe09852020-07-27 13:06:03 +020034 <version>2.1.0-SNAPSHOT</version>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010035 <licenses>
36 <license>
37 <name>The Apache Software License, Version 2.0</name>
38 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
39 </license>
40 </licenses>
41 <repositories>
42 <repository>
43 <id>onap-releases</id>
44 <name>onap-releases</name>
45 <url>https://nexus.onap.org/content/repositories/releases/</url>
46 </repository>
47 </repositories>
48 <properties>
49 <java.version>11</java.version>
50 <springfox.version>2.9.2</springfox.version>
elinuxhenrikb76f5142020-04-06 13:01:00 +020051 <immutable.version>2.8.2</immutable.version>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010052 <sdk.version>1.1.6</sdk.version>
53 <swagger.version>2.0.0</swagger.version>
elinuxhenrikb76f5142020-04-06 13:01:00 +020054 <json.version>20190722</json.version>
55 <commons-net.version>3.6</commons-net.version>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010056 <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
PatrikBuhrc75f4b12020-09-17 09:36:04 +020057 <formatter-maven-plugin.version>2.12.2</formatter-maven-plugin.version>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010058 <spotless-maven-plugin.version>1.18.0</spotless-maven-plugin.version>
59 <docker-maven-plugin>0.30.0</docker-maven-plugin>
elinuxhenrikbfdd5bb2020-05-04 17:37:59 +020060 <version.dmaap>1.1.11</version.dmaap>
Lathish7e09b1b2020-01-24 14:50:32 +000061 <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
elinuxhenrik284d3212020-02-07 16:21:06 +010062 <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
elinuxhenrikb76f5142020-04-06 13:01:00 +020063 <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
ecaiyanlinux5ab25ed2020-06-10 18:17:56 +020064 <exec.skip>true</exec.skip>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010065 </properties>
66 <dependencies>
67 <dependency>
68 <groupId>org.springframework.boot</groupId>
69 <artifactId>spring-boot-starter-web</artifactId>
70 </dependency>
71 <dependency>
72 <groupId>org.springframework.boot</groupId>
73 <artifactId>spring-boot-starter-thymeleaf</artifactId>
74 </dependency>
75 <dependency>
76 <groupId>org.springframework.boot</groupId>
77 <artifactId>spring-boot-starter-webflux</artifactId>
78 </dependency>
79 <dependency>
PatrikBuhr4e7db502020-06-16 11:19:01 +020080 <groupId>org.springframework.boot</groupId>
81 <artifactId>spring-boot-starter-aop</artifactId>
Lathish961b63f2020-03-19 15:24:32 +000082 </dependency>
83 <dependency>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010084 <groupId>org.springframework.boot</groupId>
85 <artifactId>spring-boot-devtools</artifactId>
86 <optional>true</optional>
87 </dependency>
88 <dependency>
89 <groupId>org.springframework</groupId>
90 <artifactId>spring-webflux</artifactId>
91 </dependency>
92 <dependency>
93 <groupId>io.swagger.core.v3</groupId>
94 <artifactId>swagger-jaxrs2</artifactId>
95 <version>${swagger.version}</version>
96 </dependency>
97 <dependency>
98 <groupId>io.swagger.core.v3</groupId>
99 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
100 <version>${swagger.version}</version>
101 </dependency>
102 <dependency>
103 <groupId>javax.xml.bind</groupId>
104 <artifactId>jaxb-api</artifactId>
105 </dependency>
106 <dependency>
107 <groupId>org.immutables</groupId>
108 <artifactId>value</artifactId>
109 <version>${immutable.version}</version>
110 <scope>provided</scope>
111 </dependency>
112 <dependency>
113 <groupId>org.immutables</groupId>
114 <artifactId>gson</artifactId>
115 <version>${immutable.version}</version>
116 </dependency>
117 <dependency>
118 <groupId>org.json</groupId>
119 <artifactId>json</artifactId>
120 <version>${json.version}</version>
121 </dependency>
elinuxhenrik777b07b2020-01-23 16:27:44 +0100122 <dependency>
123 <groupId>commons-net</groupId>
124 <artifactId>commons-net</artifactId>
125 <version>${commons-net.version}</version>
126 </dependency>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100127 <dependency>
128 <groupId>org.springframework.boot</groupId>
129 <artifactId>spring-boot-configuration-processor</artifactId>
130 <optional>true</optional>
131 </dependency>
132 <dependency>
133 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
134 <artifactId>cbs-client</artifactId>
elinuxhenrik777b07b2020-01-23 16:27:44 +0100135 <version>${sdk.version}</version>
136 </dependency>
137 <dependency>
Lathish1f722de2020-01-27 14:57:22 +0000138 <groupId>org.projectlombok</groupId>
139 <artifactId>lombok</artifactId>
elinuxhenrik9fb9f6e2020-01-28 08:59:39 +0100140 <scope>provided</scope>
Lathish1f722de2020-01-27 14:57:22 +0000141 </dependency>
RehanRaza7d0bb602020-02-24 09:35:23 +0100142 <dependency>
elinuxhenrik15e26512020-05-27 16:19:49 +0200143 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
144 <artifactId>dmaapClient</artifactId>
145 <version>${version.dmaap}</version>
RehanRaza7d0bb602020-02-24 09:35:23 +0100146 </dependency>
elinuxhenrik15e26512020-05-27 16:19:49 +0200147 <dependency>
148 <groupId>javax.ws.rs</groupId>
149 <artifactId>javax.ws.rs-api</artifactId>
150 <version>${javax.ws.rs-api.version}</version>
151 </dependency>
152 <dependency>
153 <groupId>org.glassfish.jersey.inject</groupId>
154 <artifactId>jersey-hk2</artifactId>
155 </dependency>
elinuxhenrik15e26512020-05-27 16:19:49 +0200156 <!-- Actuator dependencies -->
157 <dependency>
158 <groupId>org.springframework.boot</groupId>
159 <artifactId>spring-boot-starter-actuator</artifactId>
160 </dependency>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100161 <!--REQUIRED TO GENERATE DOCUMENTATION -->
162 <dependency>
163 <groupId>io.springfox</groupId>
164 <artifactId>springfox-swagger2</artifactId>
165 <version>${springfox.version}</version>
166 </dependency>
167 <dependency>
168 <groupId>io.springfox</groupId>
169 <artifactId>springfox-swagger-ui</artifactId>
170 <version>${springfox.version}</version>
171 </dependency>
172 <!-- TEST -->
173 <dependency>
elinuxhenrik15e26512020-05-27 16:19:49 +0200174 <groupId>org.springframework.boot</groupId>
175 <artifactId>spring-boot-starter-test</artifactId>
176 <scope>test</scope>
177 </dependency>
178 <dependency>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100179 <groupId>org.awaitility</groupId>
180 <artifactId>awaitility</artifactId>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100181 <scope>test</scope>
182 </dependency>
183 <dependency>
184 <groupId>io.projectreactor</groupId>
185 <artifactId>reactor-test</artifactId>
186 <scope>test</scope>
187 </dependency>
188 <dependency>
189 <groupId>org.junit.jupiter</groupId>
190 <artifactId>junit-jupiter-engine</artifactId>
191 <scope>test</scope>
192 </dependency>
193 <dependency>
194 <groupId>org.mockito</groupId>
195 <artifactId>mockito-junit-jupiter</artifactId>
196 <scope>test</scope>
197 </dependency>
198 <dependency>
199 <groupId>org.mockito</groupId>
200 <artifactId>mockito-core</artifactId>
201 <scope>test</scope>
202 </dependency>
203 <dependency>
elinuxhenrik15e26512020-05-27 16:19:49 +0200204 <groupId>com.squareup.okhttp3</groupId>
205 <artifactId>mockwebserver</artifactId>
206 <scope>test</scope>
Lathish7e09b1b2020-01-24 14:50:32 +0000207 </dependency>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100208 </dependencies>
209 <build>
210 <plugins>
211 <plugin>
212 <groupId>org.springframework.boot</groupId>
213 <artifactId>spring-boot-maven-plugin</artifactId>
214 </plugin>
215 <plugin>
216 <groupId>net.revelc.code.formatter</groupId>
217 <artifactId>formatter-maven-plugin</artifactId>
218 <version>${formatter-maven-plugin.version}</version>
219 <configuration>
220 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
221 </configuration>
ecaiyanlinuxf40c3b62020-06-04 09:34:31 +0200222 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
Lathishdac5e372020-01-23 13:56:28 +0000223 spotless:apply process-sources -->
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100224 </plugin>
225 <plugin>
226 <groupId>com.diffplug.spotless</groupId>
227 <artifactId>spotless-maven-plugin</artifactId>
228 <version>${spotless-maven-plugin.version}</version>
229 <configuration>
230 <java>
231 <removeUnusedImports />
232 <importOrder>
233 <order>com,java,javax,org</order>
234 </importOrder>
235 </java>
236 </configuration>
ecaiyanlinuxf40c3b62020-06-04 09:34:31 +0200237 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
238 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
Lathishdac5e372020-01-23 13:56:28 +0000239 source files -->
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100240 </plugin>
241 <plugin>
242 <groupId>org.apache.maven.plugins</groupId>
243 <artifactId>maven-surefire-plugin</artifactId>
244 <configuration>
245 <skipTests>false</skipTests>
246 </configuration>
247 </plugin>
248 <plugin>
249 <artifactId>maven-failsafe-plugin</artifactId>
250 </plugin>
251 <plugin>
252 <groupId>org.codehaus.mojo</groupId>
253 <artifactId>build-helper-maven-plugin</artifactId>
254 <executions>
255 <execution>
256 <id>add-source</id>
257 <phase>generate-sources</phase>
258 <goals>
259 <goal>add-source</goal>
260 </goals>
261 <configuration>
262 <sources>
263 <source>${project.build.directory}/generated-sources/annotations/</source>
264 </sources>
265 </configuration>
266 </execution>
267 </executions>
268 </plugin>
269 <plugin>
Lathishc05ff962020-02-12 14:46:01 +0000270 <groupId>org.jacoco</groupId>
271 <artifactId>jacoco-maven-plugin</artifactId>
elinuxhenrikb76f5142020-04-06 13:01:00 +0200272 <version>${jacoco-maven-plugin.version}</version>
Lathishc05ff962020-02-12 14:46:01 +0000273 <executions>
274 <execution>
275 <id>default-prepare-agent</id>
276 <goals>
277 <goal>prepare-agent</goal>
278 </goals>
279 </execution>
280 <execution>
281 <id>default-report</id>
282 <phase>prepare-package</phase>
283 <goals>
284 <goal>report</goal>
285 </goals>
286 </execution>
287 </executions>
288 </plugin>
289 <plugin>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100290 <groupId>io.fabric8</groupId>
291 <artifactId>docker-maven-plugin</artifactId>
292 <version>${docker-maven-plugin}</version>
293 <inherited>false</inherited>
294 <executions>
295 <execution>
296 <id>generate-policy-agent-image</id>
297 <phase>package</phase>
298 <goals>
299 <goal>build</goal>
300 </goals>
301 <configuration>
302 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
303 <images>
304 <image>
305 <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
306 <build>
307 <cleanup>try</cleanup>
308 <contextDir>${basedir}</contextDir>
309 <dockerFile>Dockerfile</dockerFile>
310 <args>
311 <JAR>${project.build.finalName}.jar</JAR>
312 </args>
313 <tags>
314 <tag>${project.version}</tag>
315 </tags>
316 </build>
317 </image>
318 </images>
319 </configuration>
320 </execution>
321 <execution>
322 <id>push-policy-agent-image</id>
323 <goals>
324 <goal>build</goal>
325 <goal>push</goal>
326 </goals>
327 <configuration>
328 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
329 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
330 <images>
331 <image>
332 <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
333 <build>
334 <contextDir>${basedir}</contextDir>
335 <dockerFile>Dockerfile</dockerFile>
336 <args>
337 <JAR>${project.build.finalName}.jar</JAR>
338 </args>
339 <tags>
340 <tag>${project.version}</tag>
YongchaoWu7b9db852020-02-07 09:25:43 +0100341 <tag>latest</tag>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100342 </tags>
343 </build>
344 </image>
345 </images>
346 </configuration>
347 </execution>
348 </executions>
349 </plugin>
elinuxhenrik284d3212020-02-07 16:21:06 +0100350 <!-- support sonar in multi-module project -->
351 <plugin>
352 <groupId>org.sonarsource.scanner.maven</groupId>
353 <artifactId>sonar-maven-plugin</artifactId>
354 <version>${sonar-maven-plugin.version}</version>
355 </plugin>
ecaiyanlinuxf40c3b62020-06-04 09:34:31 +0200356 <plugin>
357 <groupId>org.codehaus.mojo</groupId>
358 <artifactId>exec-maven-plugin</artifactId>
ecaiyanlinuxf40c3b62020-06-04 09:34:31 +0200359 <executions>
360 <execution>
361 <id>run-test-script</id>
362 <phase>verify</phase>
363 <goals>
364 <goal>exec</goal>
365 </goals>
366 </execution>
367 </executions>
368 <configuration>
369 <executable>bash</executable>
370 <arguments>
371 <argument>run_test.sh</argument>
372 </arguments>
373 <workingDirectory>../test/jenkins/</workingDirectory>
374 </configuration>
375 </plugin>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100376 </plugins>
377 </build>
378 <issueManagement>
379 <system>JIRA</system>
380 <url>https://jira.o-ran-sc.org/</url>
381 </issueManagement>
PatrikBuhr3bdae602019-11-28 10:58:54 +0100382</project>