blob: e9b6a905564a100d3e3c338250a5684ef9b30e63 [file] [log] [blame]
<!--
~*
~============LICENSE_START=======================================================
~* ONAP - SO
~*================================================================================
~* Copyright (C) 2020 Huawei Technologies Co., Ltd. All rights reserved.
~*================================================================================
~* 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.
~* ============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.onap.so</groupId>
<artifactId>adapters</artifactId>
<version>1.7.1-SNAPSHOT</version>
</parent>
<groupId>org.onap.so.adapters</groupId>
<artifactId>so-cnf-adapter</artifactId>
<packaging>jar</packaging>
<name>so-cnf-adapter</name>
<description>Web service endpoint for cnf operations</description>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${springboot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<finalName>${project.artifactId}-${project.version}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>org.onap.so.adapters.cnf.MSOCnfApplication</mainClass>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<version>2.9.0</version>
<executions>
<execution>
<id>format-java</id>
<goals>
<goal>format</goal>
</goals>
<phase>process-sources</phase>
<configuration>
<skip>${format.skipExecute}</skip>
<configFile>${project.basedir}/onap-eclipse-format.xml</configFile>
</configuration>
</execution>
<execution>
<id>format-xml</id>
<goals>
<goal>format</goal>
</goals>
<phase>process-sources</phase>
<configuration>
<skip>${format.skipExecute}</skip>
<sourceDirectory>${project.basedir}</sourceDirectory>
<configXmlFile>${project.basedir}/pom-format.properties</configXmlFile>
<includes>
<include>pom.xml</include>
</includes>
</configuration>
</execution>
<execution>
<id>validate-java</id>
<goals>
<goal>validate</goal>
</goals>
<configuration>
<skip>${format.skipValidate}</skip>
<configFile>${project.basedir}/onap-eclipse-format.xml</configFile>
</configuration>
</execution>
<execution>
<id>validate-poms</id>
<goals>
<goal>validate</goal>
</goals>
<configuration>
<skip>${format.skipValidate}</skip>
<configFile>${project.basedir}/pom-format.properties</configFile>
<includes>
<include>pom.xml</include>
</includes>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.9.8</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<id>docker-build</id>
<phase>install</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<dockerFile>Dockerfile.so-cnf-adapter</dockerFile>
<executable>docker</executable>
<workingDirectory>${project.basedir}</workingDirectory>
<arguments>
<argument>build</argument>
<argument>-t</argument>
<argument>onap/so/${project.artifactId}:${project.version}</argument>
<argument>.</argument>
</arguments>
<buildArgs>
<JAR_FILE>${project.artifactId}-${project.version}.jar</JAR_FILE>
<ARTIFACT_ID>${project.artifactId}</ARTIFACT_ID>
</buildArgs>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
<exclusions>
<exclusion>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-jdbc</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-spring-boot-starter-jaxws</artifactId>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-spring-boot-starter-jaxrs</artifactId>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
</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-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>