elinuxhenrik | 5ada515 | 2020-10-19 10:39:59 +0200 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
| 2 | <!--
|
| 3 | * ========================LICENSE_START=================================
|
| 4 | * O-RAN-SC
|
| 5 | * %%
|
| 6 | * Copyright (C) 2020 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 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>
|
| 25 |
|
| 26 | <parent>
|
| 27 | <groupId>org.springframework.boot</groupId>
|
| 28 | <artifactId>spring-boot-starter-parent</artifactId>
|
| 29 | <version>2.3.4.RELEASE</version>
|
| 30 | <relativePath />
|
| 31 | </parent>
|
| 32 | <groupId>org.o-ran-sc.nonrtric</groupId>
|
| 33 | <artifactId>r-app-catalogue</artifactId>
|
| 34 | <version>1.0.0-SNAPSHOT</version>
|
| 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>
|
| 41 | <properties>
|
| 42 | <java.version>11</java.version>
|
| 43 | <swagger-annotations.version>1.5.22</swagger-annotations.version>
|
| 44 | <springfox.version>2.9.2</springfox.version>
|
| 45 | <jackson-databind-nullable.version>0.2.1</jackson-databind-nullable.version>
|
| 46 | <openapi-generator-maven-plugin.version>4.3.1</openapi-generator-maven-plugin.version>
|
| 47 | <swagger-codegen-maven-plugin.version>3.0.11</swagger-codegen-maven-plugin.version>
|
elinuxhenrik | a2f7c31 | 2020-11-06 16:04:26 +0100 | [diff] [blame] | 48 | <jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version>
|
elinuxhenrik | 5ada515 | 2020-10-19 10:39:59 +0200 | [diff] [blame] | 49 | <docker-maven-plugin.version>0.30.0</docker-maven-plugin.version>
|
| 50 | </properties>
|
| 51 |
|
| 52 | <dependencies>
|
| 53 | <dependency>
|
| 54 | <groupId>io.swagger</groupId>
|
| 55 | <artifactId>swagger-annotations</artifactId>
|
| 56 | <version>${swagger-annotations.version}</version>
|
| 57 | </dependency>
|
| 58 | <dependency>
|
| 59 | <groupId>com.fasterxml.jackson.core</groupId>
|
| 60 | <artifactId>jackson-annotations</artifactId>
|
| 61 | </dependency>
|
| 62 | <dependency>
|
| 63 | <groupId>org.springframework</groupId>
|
| 64 | <artifactId>spring-beans</artifactId>
|
| 65 | </dependency>
|
| 66 | <dependency>
|
| 67 | <groupId>org.springframework.boot</groupId>
|
| 68 | <artifactId>spring-boot-autoconfigure</artifactId>
|
| 69 | </dependency>
|
| 70 | <dependency>
|
| 71 | <groupId>org.springframework</groupId>
|
| 72 | <artifactId>spring-web</artifactId>
|
| 73 | </dependency>
|
| 74 | <dependency>
|
| 75 | <groupId>org.springframework.boot</groupId>
|
| 76 | <artifactId>spring-boot</artifactId>
|
| 77 | </dependency>
|
| 78 | <dependency>
|
| 79 | <groupId>org.springframework</groupId>
|
| 80 | <artifactId>spring-webmvc</artifactId>
|
| 81 | </dependency>
|
| 82 | <dependency>
|
| 83 | <groupId>org.springframework</groupId>
|
| 84 | <artifactId>spring-context</artifactId>
|
| 85 | </dependency>
|
| 86 | <dependency>
|
| 87 | <groupId>io.springfox</groupId>
|
| 88 | <artifactId>springfox-swagger2</artifactId>
|
| 89 | <version>${springfox.version}</version>
|
| 90 | </dependency>
|
| 91 | <dependency>
|
| 92 | <groupId>io.springfox</groupId>
|
| 93 | <artifactId>springfox-core</artifactId>
|
| 94 | <version>${springfox.version}</version>
|
| 95 | </dependency>
|
| 96 | <dependency>
|
| 97 | <groupId>io.springfox</groupId>
|
| 98 | <artifactId>springfox-spring-web</artifactId>
|
| 99 | <version>${springfox.version}</version>
|
| 100 | </dependency>
|
| 101 | <dependency>
|
| 102 | <groupId>io.springfox</groupId>
|
| 103 | <artifactId>springfox-spi</artifactId>
|
| 104 | <version>${springfox.version}</version>
|
| 105 | </dependency>
|
| 106 | <dependency>
|
| 107 | <groupId>org.assertj</groupId>
|
| 108 | <artifactId>assertj-core</artifactId>
|
| 109 | </dependency>
|
| 110 | <dependency>
|
| 111 | <groupId>org.apache.tomcat.embed</groupId>
|
| 112 | <artifactId>tomcat-embed-core</artifactId>
|
| 113 | </dependency>
|
| 114 | <dependency>
|
| 115 | <groupId>org.openapitools</groupId>
|
| 116 | <artifactId>jackson-databind-nullable</artifactId>
|
| 117 | <version>${jackson-databind-nullable.version}</version>
|
| 118 | </dependency>
|
| 119 | <dependency>
|
| 120 | <groupId>javax.validation</groupId>
|
| 121 | <artifactId>validation-api</artifactId>
|
| 122 | </dependency>
|
| 123 | <dependency>
|
| 124 | <groupId>com.fasterxml.jackson.core</groupId>
|
| 125 | <artifactId>jackson-databind</artifactId>
|
| 126 | </dependency>
|
| 127 | <dependency>
|
| 128 | <groupId>org.yaml</groupId>
|
| 129 | <artifactId>snakeyaml</artifactId>
|
| 130 | <scope>runtime</scope>
|
| 131 | </dependency>
|
| 132 | <!-- TEST -->
|
| 133 | <dependency>
|
| 134 | <groupId>org.springframework</groupId>
|
| 135 | <artifactId>spring-test</artifactId>
|
| 136 | <scope>test</scope>
|
| 137 | </dependency>
|
| 138 | <dependency>
|
| 139 | <groupId>org.junit.jupiter</groupId>
|
| 140 | <artifactId>junit-jupiter-api</artifactId>
|
| 141 | <scope>test</scope>
|
| 142 | </dependency>
|
elinuxhenrik | 2d7ba05 | 2020-10-30 09:47:55 +0100 | [diff] [blame] | 143 | <dependency>
|
| 144 | <groupId>org.mockito</groupId>
|
| 145 | <artifactId>mockito-junit-jupiter</artifactId>
|
| 146 | <scope>test</scope>
|
| 147 | </dependency>
|
| 148 | <dependency>
|
| 149 | <groupId>org.mockito</groupId>
|
| 150 | <artifactId>mockito-core</artifactId>
|
| 151 | <scope>test</scope>
|
| 152 | </dependency>
|
| 153 | <dependency>
|
| 154 | <groupId>org.junit.jupiter</groupId>
|
| 155 | <artifactId>junit-jupiter-engine</artifactId>
|
| 156 | <scope>test</scope>
|
| 157 | </dependency>
|
elinuxhenrik | 5ada515 | 2020-10-19 10:39:59 +0200 | [diff] [blame] | 158 | </dependencies>
|
| 159 |
|
| 160 | <build>
|
| 161 | <plugins>
|
| 162 | <plugin>
|
elinuxhenrik | 59659e5 | 2020-11-27 16:08:41 +0100 | [diff] [blame] | 163 | <groupId>org.springframework.boot</groupId>
|
| 164 | <artifactId>spring-boot-maven-plugin</artifactId>
|
| 165 | </plugin>
|
| 166 | <plugin>
|
elinuxhenrik | 5ada515 | 2020-10-19 10:39:59 +0200 | [diff] [blame] | 167 | <groupId>org.openapitools</groupId>
|
| 168 | <artifactId>openapi-generator-maven-plugin</artifactId>
|
| 169 | <version>${openapi-generator-maven-plugin.version}</version>
|
| 170 | <executions>
|
| 171 | <execution>
|
| 172 | <goals>
|
| 173 | <goal>generate</goal>
|
| 174 | </goals>
|
| 175 | <configuration>
|
| 176 | <inputSpec>${project.basedir}/api/rac-api.json</inputSpec>
|
| 177 | <generatorName>spring</generatorName>
|
| 178 | <apiPackage>org.oransc.rappcatalogue.api</apiPackage>
|
| 179 | <modelPackage>org.oransc.rappcatalogue.model</modelPackage>
|
elinuxhenrik | 59659e5 | 2020-11-27 16:08:41 +0100 | [diff] [blame] | 180 | <invokerPackage>org.oransc.rappcatalogue</invokerPackage>
|
elinuxhenrik | 5ada515 | 2020-10-19 10:39:59 +0200 | [diff] [blame] | 181 | <configOptions>
|
| 182 | <delegatePattern>true</delegatePattern>
|
| 183 | </configOptions>
|
| 184 | </configuration>
|
| 185 | </execution>
|
| 186 | </executions>
|
| 187 | </plugin>
|
| 188 | <plugin>
|
| 189 | <groupId>io.swagger.codegen.v3</groupId>
|
| 190 | <artifactId>swagger-codegen-maven-plugin</artifactId>
|
| 191 | <version>${swagger-codegen-maven-plugin.version}</version>
|
| 192 | <executions>
|
| 193 | <execution>
|
| 194 | <goals>
|
| 195 | <goal>generate</goal>
|
| 196 | </goals>
|
| 197 | <configuration>
|
| 198 | <inputSpec>${project.basedir}/api/rac-api.json</inputSpec>
|
| 199 | <language>openapi-yaml</language>
|
| 200 | <output>${project.basedir}/api/</output>
|
| 201 | <configOptions>
|
| 202 | <outputFile>rac-api.yaml</outputFile>
|
| 203 | </configOptions>
|
| 204 | </configuration>
|
| 205 | </execution>
|
| 206 | </executions>
|
| 207 | </plugin>
|
| 208 | <plugin>
|
elinuxhenrik | a2f7c31 | 2020-11-06 16:04:26 +0100 | [diff] [blame] | 209 | <groupId>org.jacoco</groupId>
|
| 210 | <artifactId>jacoco-maven-plugin</artifactId>
|
| 211 | <version>${jacoco-maven-plugin.version}</version>
|
| 212 | <executions>
|
| 213 | <execution>
|
| 214 | <id>default-prepare-agent</id>
|
| 215 | <goals>
|
| 216 | <goal>prepare-agent</goal>
|
| 217 | </goals>
|
| 218 | </execution>
|
| 219 | <execution>
|
| 220 | <id>default-report</id>
|
| 221 | <phase>prepare-package</phase>
|
| 222 | <goals>
|
| 223 | <goal>report</goal>
|
| 224 | </goals>
|
| 225 | </execution>
|
| 226 | </executions>
|
| 227 | </plugin>
|
| 228 | <plugin>
|
elinuxhenrik | 5ada515 | 2020-10-19 10:39:59 +0200 | [diff] [blame] | 229 | <groupId>io.fabric8</groupId>
|
| 230 | <artifactId>docker-maven-plugin</artifactId>
|
| 231 | <version>${docker-maven-plugin.version}</version>
|
| 232 | <inherited>false</inherited>
|
| 233 | <executions>
|
| 234 | <execution>
|
| 235 | <id>generate-r-app-catalogue-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>
|
| 244 | <name>o-ran-sc/nonrtric-r-app-catalogue:${project.version}</name>
|
| 245 | <build>
|
| 246 | <cleanup>try</cleanup>
|
| 247 | <contextDir>${basedir}</contextDir>
|
| 248 | <dockerFile>Dockerfile</dockerFile>
|
| 249 | <args>
|
| 250 | <JAR>${project.build.finalName}.jar</JAR>
|
| 251 | </args>
|
| 252 | <tags>
|
| 253 | <tag>${project.version}</tag>
|
| 254 | </tags>
|
| 255 | </build>
|
| 256 | </image>
|
| 257 | </images>
|
| 258 | </configuration>
|
| 259 | </execution>
|
| 260 | <execution>
|
| 261 | <id>push-r-app-catalogue-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>
|
| 271 | <name>o-ran-sc/nonrtric-r-app-catalogue:${project.version}</name>
|
| 272 | <build>
|
| 273 | <contextDir>${basedir}</contextDir>
|
| 274 | <dockerFile>Dockerfile</dockerFile>
|
| 275 | <args>
|
| 276 | <JAR>${project.build.finalName}.jar</JAR>
|
| 277 | </args>
|
| 278 | <tags>
|
| 279 | <tag>${project.version}</tag>
|
| 280 | <tag>latest</tag>
|
| 281 | </tags>
|
| 282 | </build>
|
| 283 | </image>
|
| 284 | </images>
|
| 285 | </configuration>
|
| 286 | </execution>
|
| 287 | </executions>
|
| 288 | </plugin>
|
| 289 | </plugins>
|
| 290 | </build>
|
| 291 | </project> |