PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 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 | --> |
| 21 | <project |
| 22 | xmlns="http://maven.apache.org/POM/4.0.0" |
| 23 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame] | 24 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 25 | <modelVersion>4.0.0</modelVersion> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame] | 26 | <parent> |
| 27 | <groupId>org.springframework.boot</groupId> |
| 28 | <artifactId>spring-boot-starter-parent</artifactId> |
| 29 | <version>2.1.6.RELEASE</version> |
| 30 | <relativePath /> |
| 31 | </parent> |
| 32 | <groupId>org.o-ran-sc.nonrtric</groupId> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 33 | <artifactId>policy-agent</artifactId> |
YongchaoWu | abf88f3 | 2019-12-12 20:45:12 +0100 | [diff] [blame] | 34 | <version>1.0.0-SNAPSHOT</version> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 35 | <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> |
YongchaoWu | 6fe1880 | 2019-12-09 10:00:46 +0100 | [diff] [blame] | 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> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame] | 48 | <properties> |
| 49 | <java.version>11</java.version> |
| 50 | <springfox.version>2.8.0</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> |
elinuxhenrik | a9bf04b | 2019-12-19 15:50:38 +0100 | [diff] [blame] | 55 | <awaitility.version>4.0.1</awaitility.version> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame] | 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> |
YongchaoWu | e44226f | 2019-12-19 12:53:51 +0100 | [diff] [blame] | 59 | <docker-maven-plugin>0.30.0</docker-maven-plugin> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame] | 60 | </properties> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 61 | <dependencies> |
| 62 | <dependency> |
| 63 | <groupId>org.springframework.boot</groupId> |
| 64 | <artifactId>spring-boot-starter-web</artifactId> |
| 65 | </dependency> |
| 66 | <dependency> |
| 67 | <groupId>org.springframework.boot</groupId> |
| 68 | <artifactId>spring-boot-starter-thymeleaf</artifactId> |
| 69 | </dependency> |
| 70 | <dependency> |
| 71 | <groupId>org.springframework.boot</groupId> |
| 72 | <artifactId>spring-boot-starter-webflux</artifactId> |
| 73 | </dependency> |
| 74 | <dependency> |
| 75 | <groupId>org.springframework.boot</groupId> |
| 76 | <artifactId>spring-boot-devtools</artifactId> |
| 77 | <optional>true</optional> |
| 78 | </dependency> |
| 79 | <dependency> |
| 80 | <groupId>org.springframework</groupId> |
| 81 | <artifactId>spring-webflux</artifactId> |
| 82 | </dependency> |
| 83 | <dependency> |
| 84 | <groupId>io.swagger.core.v3</groupId> |
| 85 | <artifactId>swagger-jaxrs2</artifactId> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame] | 86 | <version>${swagger.version}</version> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 87 | </dependency> |
| 88 | <dependency> |
| 89 | <groupId>io.swagger.core.v3</groupId> |
| 90 | <artifactId>swagger-jaxrs2-servlet-initializer</artifactId> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame] | 91 | <version>${swagger.version}</version> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 92 | </dependency> |
| 93 | <dependency> |
Lathish | 218b9d1 | 2019-12-18 14:18:01 +0000 | [diff] [blame] | 94 | <groupId>javax.xml.bind</groupId> |
| 95 | <artifactId>jaxb-api</artifactId> |
| 96 | </dependency> |
| 97 | <dependency> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 98 | <groupId>org.immutables</groupId> |
| 99 | <artifactId>value</artifactId> |
| 100 | <version>${immutable.version}</version> |
| 101 | <scope>provided</scope> |
| 102 | </dependency> |
| 103 | <dependency> |
| 104 | <groupId>org.immutables</groupId> |
| 105 | <artifactId>gson</artifactId> |
| 106 | <version>${immutable.version}</version> |
| 107 | </dependency> |
RehanRaza | 6d8231a | 2019-12-12 11:05:55 +0100 | [diff] [blame] | 108 | <dependency> |
| 109 | <groupId>org.json</groupId> |
| 110 | <artifactId>json</artifactId> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame] | 111 | <version>${json.version}</version> |
RehanRaza | 6d8231a | 2019-12-12 11:05:55 +0100 | [diff] [blame] | 112 | </dependency> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 113 | <!--TEST --> |
| 114 | <dependency> |
| 115 | <groupId>org.springframework.boot</groupId> |
| 116 | <artifactId>spring-boot-starter-test</artifactId> |
| 117 | <scope>test</scope> |
| 118 | </dependency> |
elinuxhenrik | d901722 | 2019-12-17 10:22:39 +0100 | [diff] [blame] | 119 | <dependency> |
| 120 | <groupId>org.springframework.boot</groupId> |
| 121 | <artifactId>spring-boot-configuration-processor</artifactId> |
| 122 | <optional>true</optional> |
| 123 | </dependency> |
| 124 | <dependency> |
| 125 | <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId> |
| 126 | <artifactId>cbs-client</artifactId> |
| 127 | <version>${sdk.version}</version> |
| 128 | </dependency> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 129 | <!--REQUIRED TO GENERATE DOCUMENTATION --> |
| 130 | <dependency> |
| 131 | <groupId>io.springfox</groupId> |
| 132 | <artifactId>springfox-swagger2</artifactId> |
| 133 | <version>${springfox.version}</version> |
| 134 | </dependency> |
| 135 | <dependency> |
| 136 | <groupId>io.springfox</groupId> |
| 137 | <artifactId>springfox-swagger-ui</artifactId> |
| 138 | <version>${springfox.version}</version> |
| 139 | </dependency> |
elinuxhenrik | d901722 | 2019-12-17 10:22:39 +0100 | [diff] [blame] | 140 | <!-- TEST --> |
YongchaoWu | 6fe1880 | 2019-12-09 10:00:46 +0100 | [diff] [blame] | 141 | <dependency> |
elinuxhenrik | a9bf04b | 2019-12-19 15:50:38 +0100 | [diff] [blame] | 142 | <groupId>org.awaitility</groupId> |
| 143 | <artifactId>awaitility</artifactId> |
| 144 | <version>${awaitility.version}</version> |
| 145 | <scope>test</scope> |
| 146 | </dependency> |
| 147 | <dependency> |
YongchaoWu | 6fe1880 | 2019-12-09 10:00:46 +0100 | [diff] [blame] | 148 | <groupId>io.projectreactor</groupId> |
| 149 | <artifactId>reactor-test</artifactId> |
| 150 | <scope>test</scope> |
| 151 | </dependency> |
| 152 | <dependency> |
| 153 | <groupId>org.junit.jupiter</groupId> |
| 154 | <artifactId>junit-jupiter-engine</artifactId> |
| 155 | <scope>test</scope> |
| 156 | </dependency> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame] | 157 | <dependency> |
elinuxhenrik | d901722 | 2019-12-17 10:22:39 +0100 | [diff] [blame] | 158 | <groupId>org.mockito</groupId> |
| 159 | <artifactId>mockito-junit-jupiter</artifactId> |
| 160 | <scope>test</scope> |
| 161 | </dependency> |
| 162 | <dependency> |
| 163 | <groupId>org.mockito</groupId> |
| 164 | <artifactId>mockito-core</artifactId> |
| 165 | <scope>test</scope> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame] | 166 | </dependency> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 167 | </dependencies> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 168 | <build> |
| 169 | <plugins> |
| 170 | <plugin> |
| 171 | <groupId>org.springframework.boot</groupId> |
| 172 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 173 | </plugin> |
| 174 | <plugin> |
| 175 | <groupId>net.revelc.code.formatter</groupId> |
| 176 | <artifactId>formatter-maven-plugin</artifactId> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame] | 177 | <version>${formatter-maven-plugin.version}</version> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 178 | <configuration> |
| 179 | <configFile>${project.basedir}/eclipse-formatter.xml</configFile> |
| 180 | </configuration> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame] | 181 | <!-- https://code.revelc.net/formatter-maven-plugin/ use |
| 182 | mvn formatter:format spotless:apply process-sources --> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 183 | </plugin> |
| 184 | <plugin> |
| 185 | <groupId>com.diffplug.spotless</groupId> |
| 186 | <artifactId>spotless-maven-plugin</artifactId> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame] | 187 | <version>${spotless-maven-plugin.version}</version> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 188 | <configuration> |
| 189 | <java> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame] | 190 | <removeUnusedImports /> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 191 | <importOrder> |
| 192 | <order>com,java,javax,org</order> |
| 193 | </importOrder> |
| 194 | </java> |
| 195 | </configuration> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame] | 196 | <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven |
| 197 | use mvn spotless:apply to rewrite source files use mvn spotless:check to |
| 198 | validate source files --> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 199 | </plugin> |
YongchaoWu | 6fe1880 | 2019-12-09 10:00:46 +0100 | [diff] [blame] | 200 | <plugin> |
| 201 | <groupId>org.apache.maven.plugins</groupId> |
| 202 | <artifactId>maven-surefire-plugin</artifactId> |
YongchaoWu | 6fe1880 | 2019-12-09 10:00:46 +0100 | [diff] [blame] | 203 | <configuration> |
| 204 | <skipTests>false</skipTests> |
| 205 | </configuration> |
elinuxhenrik | a9bf04b | 2019-12-19 15:50:38 +0100 | [diff] [blame] | 206 | </plugin> |
| 207 | <plugin> |
| 208 | <artifactId>maven-failsafe-plugin</artifactId> |
YongchaoWu | 6fe1880 | 2019-12-09 10:00:46 +0100 | [diff] [blame] | 209 | </plugin> |
Lathish | 54b04f9 | 2019-12-12 15:35:14 +0000 | [diff] [blame] | 210 | <plugin> |
| 211 | <groupId>org.codehaus.mojo</groupId> |
| 212 | <artifactId>build-helper-maven-plugin</artifactId> |
| 213 | <executions> |
| 214 | <execution> |
| 215 | <id>add-source</id> |
| 216 | <phase>generate-sources</phase> |
| 217 | <goals> |
| 218 | <goal>add-source</goal> |
| 219 | </goals> |
| 220 | <configuration> |
| 221 | <sources> |
| 222 | <source>${project.build.directory}/generated-sources/annotations/</source> |
| 223 | </sources> |
| 224 | </configuration> |
| 225 | </execution> |
| 226 | </executions> |
| 227 | </plugin> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame] | 228 | <plugin> |
YongchaoWu | e44226f | 2019-12-19 12:53:51 +0100 | [diff] [blame] | 229 | <groupId>io.fabric8</groupId> |
| 230 | <artifactId>docker-maven-plugin</artifactId> |
| 231 | <version>${docker-maven-plugin}</version> |
| 232 | <inherited>false</inherited> |
| 233 | <executions> |
| 234 | <execution> |
YongchaoWu | db27a81 | 2019-12-20 11:03:11 +0100 | [diff] [blame] | 235 | <id>generate-policy-agent-image</id> |
| 236 | <phase>package</phase> |
| 237 | <goals> |
| 238 | <goal>build</goal> |
| 239 | </goals> |
| 240 | <configuration> |
| 241 | <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry> |
| 242 | <images> |
| 243 | <image> |
YongchaoWu | 91fa338 | 2020-01-12 17:54:31 +0100 | [diff] [blame] | 244 | <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name> |
YongchaoWu | db27a81 | 2019-12-20 11:03:11 +0100 | [diff] [blame] | 245 | <build> |
| 246 | <cleanup>try</cleanup> |
| 247 | <contextDir>${basedir}</contextDir> |
| 248 | <dockerFile>Dockerfile</dockerFile> |
RehanRaza | 9d0abfe | 2020-01-08 09:34:07 +0100 | [diff] [blame] | 249 | <args> |
| 250 | <JAR>${project.build.finalName}.jar</JAR> |
| 251 | </args> |
YongchaoWu | db27a81 | 2019-12-20 11:03:11 +0100 | [diff] [blame] | 252 | <tags> |
| 253 | <tag>${project.version}</tag> |
| 254 | </tags> |
| 255 | </build> |
| 256 | </image> |
| 257 | </images> |
| 258 | </configuration> |
| 259 | </execution> |
| 260 | <execution> |
YongchaoWu | e44226f | 2019-12-19 12:53:51 +0100 | [diff] [blame] | 261 | <id>push-policy-agent-image</id> |
| 262 | <goals> |
| 263 | <goal>build</goal> |
| 264 | <goal>push</goal> |
| 265 | </goals> |
| 266 | <configuration> |
| 267 | <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry> |
| 268 | <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry> |
| 269 | <images> |
| 270 | <image> |
YongchaoWu | 91fa338 | 2020-01-12 17:54:31 +0100 | [diff] [blame] | 271 | <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name> |
YongchaoWu | e44226f | 2019-12-19 12:53:51 +0100 | [diff] [blame] | 272 | <build> |
| 273 | <contextDir>${basedir}</contextDir> |
| 274 | <dockerFile>Dockerfile</dockerFile> |
RehanRaza | 9d0abfe | 2020-01-08 09:34:07 +0100 | [diff] [blame] | 275 | <args> |
| 276 | <JAR>${project.build.finalName}.jar</JAR> |
| 277 | </args> |
YongchaoWu | e44226f | 2019-12-19 12:53:51 +0100 | [diff] [blame] | 278 | <tags> |
| 279 | <tag>${project.version}</tag> |
| 280 | </tags> |
| 281 | </build> |
| 282 | </image> |
| 283 | </images> |
| 284 | </configuration> |
| 285 | </execution> |
| 286 | </executions> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame] | 287 | </plugin> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 288 | </plugins> |
| 289 | </build> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame] | 290 | <issueManagement> |
| 291 | <system>JIRA</system> |
| 292 | <url>https://jira.o-ran-sc.org/</url> |
| 293 | </issueManagement> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 294 | </project> |