| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| ============LICENSE_START======================================================= |
| Copyright (C) 2019 Nordix Foundation. |
| ================================================================================ |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| SPDX-License-Identifier: Apache-2.0 |
| ============LICENSE_END========================================================= |
| --> |
| <project xmlns="http://maven.apache.org/POM/4.0.0" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.oran.nearric</groupId> |
| <artifactId>nearric-simulator</artifactId> |
| <version>1.0.0-SNAPSHOT</version> |
| </parent> |
| <artifactId>nearric-service</artifactId> |
| <name>${project.artifactId}</name> |
| |
| <properties> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <okhttp-version>2.7.5</okhttp-version> |
| <gson-version>2.8.1</gson-version> |
| <dockerfile-maven-version>1.4.2</dockerfile-maven-version> |
| </properties> |
| <dependencies> |
| <dependency> |
| <groupId>org.oran.nearric</groupId> |
| <artifactId>a1-med-api</artifactId> |
| <version>1.0.0-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-web</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-logging</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-data-jpa</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-actuator</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-test</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-devtools</artifactId> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>io.swagger</groupId> |
| <artifactId>swagger-jaxrs</artifactId> |
| <version>1.5.0</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.directory.studio</groupId> |
| <artifactId>org.apache.commons.io</artifactId> |
| <version>2.4</version> |
| </dependency> |
| <dependency> |
| <groupId>com.googlecode.json-simple</groupId> |
| <artifactId>json-simple</artifactId> |
| <version>1.1.1</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.springfox</groupId> |
| <artifactId>springfox-swagger-ui</artifactId> |
| <version>2.6.1</version> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>io.springfox</groupId> |
| <artifactId>springfox-swagger2</artifactId> |
| <version>2.6.1</version> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-databind</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.h2database</groupId> |
| <artifactId>h2</artifactId> |
| </dependency> |
| <!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils --> |
| <dependency> |
| <groupId>commons-beanutils</groupId> |
| <artifactId>commons-beanutils</artifactId> |
| <version>1.9.3</version> |
| </dependency> |
| <dependency> |
| <groupId>org.modelmapper</groupId> |
| <artifactId>modelmapper</artifactId> |
| <version>2.3.0</version> |
| </dependency> |
| <dependency> |
| <groupId>com.squareup.okio</groupId> |
| <artifactId>okio</artifactId> |
| <version>1.13.0</version> |
| </dependency> |
| <dependency> |
| <groupId>com.squareup.okhttp</groupId> |
| <artifactId>okhttp</artifactId> |
| <version>${okhttp-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.squareup.okhttp</groupId> |
| <artifactId>logging-interceptor</artifactId> |
| <version>${okhttp-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.google.code.gson</groupId> |
| <artifactId>gson</artifactId> |
| <version>${gson-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.github.java-json-tools</groupId> |
| <artifactId>json-schema-validator</artifactId> |
| <version>2.2.11</version> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-maven-plugin</artifactId> |
| <configuration> |
| <mainClass>org.onap.nearric.simulator.config.NearRicApplication</mainClass> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>repackage</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>io.fabric8</groupId> |
| <artifactId>docker-maven-plugin</artifactId> |
| <version>0.30.0</version> |
| <configuration> |
| <verbose>true</verbose> |
| <!-- environment variables supplied by Jenkins --> |
| <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry> |
| <images> |
| <image> |
| <!-- Specify a tag to avoid default tag "latest" --> |
| <!-- Avoid maven artifact name here --> |
| <name>o-ran-sc/nonrtric-nearric-simulator:${project.version}</name> |
| <build> |
| <from>openjdk:11-jre-slim</from> |
| <tags> |
| <!-- Add tag with build number --> |
| <tag>${project.version}</tag> |
| </tags> |
| <assembly> |
| <descriptorRef>artifact</descriptorRef> |
| </assembly> |
| <cmd> |
| <!-- Include maven dir on classpath for prop files --> |
| <exec> |
| <arg>java</arg> |
| <arg>-Xms128m</arg> |
| <arg>-Xmx256m</arg> |
| <arg>-cp</arg> |
| <arg>maven:maven/${project.artifactId}-${project.version}.${project.packaging}</arg> |
| <arg>-Dloader.main=org.onap.nearric.simulator.config.NearRicApplication</arg> |
| <arg>-Djava.security.egd=file:/dev/./urandom</arg> |
| <arg>org.springframework.boot.loader.PropertiesLauncher</arg> |
| </exec> |
| </cmd> |
| </build> |
| </image> |
| </images> |
| </configuration> |
| <!-- build Docker images in install phase, push in deploy phase --> |
| <executions> |
| <execution> |
| <goals> |
| <goal>build</goal> |
| <goal>push</goal> |
| </goals> |
| </execution> |
| </executions> |
| <dependencies> |
| <dependency> |
| <groupId>javax.activation</groupId> |
| <artifactId>activation</artifactId> |
| <version>1.1.1</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |