mukesh.paliwal | 36e6d00 | 2021-02-05 12:44:04 +0530 | [diff] [blame] | 1 | <!-- |
| 2 | ~* |
| 3 | ~============LICENSE_START======================================================= |
| 4 | ~* ONAP - SO |
| 5 | ~*================================================================================ |
| 6 | ~* Copyright (C) 2020 Huawei Technologies Co., Ltd. All rights reserved. |
| 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 | --> |
| 22 | |
| 23 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 24 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 25 | <modelVersion>4.0.0</modelVersion> |
| 26 | <parent> |
| 27 | <groupId>org.onap.so</groupId> |
| 28 | <artifactId>adapters</artifactId> |
| 29 | <version>1.7.1-SNAPSHOT</version> |
| 30 | </parent> |
| 31 | <groupId>org.onap.so.adapters</groupId> |
mukesh.paliwal | 2353183 | 2021-02-05 14:13:12 +0530 | [diff] [blame^] | 32 | <artifactId>so-cnf-adapter</artifactId> |
mukesh.paliwal | 36e6d00 | 2021-02-05 12:44:04 +0530 | [diff] [blame] | 33 | <packaging>jar</packaging> |
mukesh.paliwal | 2353183 | 2021-02-05 14:13:12 +0530 | [diff] [blame^] | 34 | <name>so-cnf-adapter</name> |
mukesh.paliwal | 36e6d00 | 2021-02-05 12:44:04 +0530 | [diff] [blame] | 35 | <description>Web service endpoint for cnf operations</description> |
| 36 | <dependencyManagement> |
| 37 | <dependencies> |
| 38 | <dependency> |
| 39 | <groupId>org.springframework.boot</groupId> |
| 40 | <artifactId>spring-boot-dependencies</artifactId> |
| 41 | <version>${springboot.version}</version> |
| 42 | <type>pom</type> |
| 43 | <scope>import</scope> |
| 44 | </dependency> |
| 45 | </dependencies> |
| 46 | </dependencyManagement> |
| 47 | <build> |
| 48 | <finalName>${project.artifactId}-${project.version}</finalName> |
| 49 | <plugins> |
| 50 | <plugin> |
| 51 | <groupId>org.springframework.boot</groupId> |
| 52 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 53 | <configuration> |
| 54 | <mainClass>org.onap.so.adapters.cnf.MSOCnfApplication</mainClass> |
| 55 | </configuration> |
| 56 | <executions> |
| 57 | <execution> |
| 58 | <goals> |
| 59 | <goal>repackage</goal> |
| 60 | </goals> |
| 61 | </execution> |
| 62 | </executions> |
| 63 | </plugin> |
| 64 | <plugin> |
| 65 | <groupId>org.jacoco</groupId> |
| 66 | <artifactId>jacoco-maven-plugin</artifactId> |
| 67 | </plugin> |
| 68 | <plugin> |
| 69 | <groupId>net.revelc.code.formatter</groupId> |
| 70 | <artifactId>formatter-maven-plugin</artifactId> |
| 71 | <version>2.9.0</version> |
| 72 | <executions> |
| 73 | <execution> |
| 74 | <id>format-java</id> |
| 75 | <goals> |
| 76 | <goal>format</goal> |
| 77 | </goals> |
| 78 | <phase>process-sources</phase> |
| 79 | <configuration> |
| 80 | <skip>${format.skipExecute}</skip> |
| 81 | <configFile>${project.basedir}/onap-eclipse-format.xml</configFile> |
| 82 | </configuration> |
| 83 | </execution> |
| 84 | <execution> |
| 85 | <id>format-xml</id> |
| 86 | <goals> |
| 87 | <goal>format</goal> |
| 88 | </goals> |
| 89 | <phase>process-sources</phase> |
| 90 | <configuration> |
| 91 | <skip>${format.skipExecute}</skip> |
| 92 | <sourceDirectory>${project.basedir}</sourceDirectory> |
| 93 | <configXmlFile>${project.basedir}/pom-format.properties</configXmlFile> |
| 94 | <includes> |
| 95 | <include>pom.xml</include> |
| 96 | </includes> |
| 97 | </configuration> |
| 98 | </execution> |
| 99 | <execution> |
| 100 | <id>validate-java</id> |
| 101 | <goals> |
| 102 | <goal>validate</goal> |
| 103 | </goals> |
| 104 | <configuration> |
| 105 | <skip>${format.skipValidate}</skip> |
| 106 | <configFile>${project.basedir}/onap-eclipse-format.xml</configFile> |
| 107 | </configuration> |
| 108 | </execution> |
| 109 | <execution> |
| 110 | <id>validate-poms</id> |
| 111 | <goals> |
| 112 | <goal>validate</goal> |
| 113 | </goals> |
| 114 | <configuration> |
| 115 | <skip>${format.skipValidate}</skip> |
| 116 | <configFile>${project.basedir}/pom-format.properties</configFile> |
| 117 | <includes> |
| 118 | <include>pom.xml</include> |
| 119 | </includes> |
| 120 | </configuration> |
| 121 | </execution> |
| 122 | </executions> |
| 123 | <dependencies> |
| 124 | <dependency> |
| 125 | <groupId>com.fasterxml.jackson.core</groupId> |
| 126 | <artifactId>jackson-annotations</artifactId> |
| 127 | <version>2.9.8</version> |
| 128 | </dependency> |
| 129 | </dependencies> |
| 130 | </plugin> |
| 131 | <plugin> |
| 132 | <groupId>org.codehaus.mojo</groupId> |
| 133 | <artifactId>exec-maven-plugin</artifactId> |
| 134 | <version>1.6.0</version> |
| 135 | <executions> |
| 136 | <execution> |
| 137 | <id>docker-build</id> |
| 138 | <phase>install</phase> |
| 139 | <goals> |
| 140 | <goal>exec</goal> |
| 141 | </goals> |
| 142 | <configuration> |
| 143 | <dockerFile>Dockerfile.so-cnf-adapter</dockerFile> |
| 144 | <executable>docker</executable> |
| 145 | <workingDirectory>${project.basedir}</workingDirectory> |
| 146 | <arguments> |
| 147 | <argument>build</argument> |
| 148 | <argument>-t</argument> |
| 149 | <argument>onap/so/${project.artifactId}:${project.version}</argument> |
| 150 | <argument>.</argument> |
| 151 | </arguments> |
| 152 | <buildArgs> |
| 153 | <JAR_FILE>${project.artifactId}-${project.version}.jar</JAR_FILE> |
| 154 | <ARTIFACT_ID>${project.artifactId}</ARTIFACT_ID> |
| 155 | </buildArgs> |
| 156 | </configuration> |
| 157 | </execution> |
| 158 | </executions> |
| 159 | </plugin> |
| 160 | </plugins> |
| 161 | </build> |
| 162 | <dependencies> |
| 163 | <dependency> |
| 164 | <groupId>org.springframework.boot</groupId> |
| 165 | <artifactId>spring-boot-starter-actuator</artifactId> |
| 166 | </dependency> |
| 167 | <dependency> |
| 168 | <groupId>org.springframework.boot</groupId> |
| 169 | <artifactId>spring-boot-starter-web</artifactId> |
| 170 | </dependency> |
| 171 | <dependency> |
| 172 | <groupId>org.springframework.boot</groupId> |
| 173 | <artifactId>spring-boot-starter-jdbc</artifactId> |
| 174 | <exclusions> |
| 175 | <exclusion> |
| 176 | <groupId>org.apache.tomcat</groupId> |
| 177 | <artifactId>tomcat-jdbc</artifactId> |
| 178 | </exclusion> |
| 179 | </exclusions> |
| 180 | </dependency> |
| 181 | <dependency> |
| 182 | <groupId>org.apache.cxf</groupId> |
| 183 | <artifactId>cxf-spring-boot-starter-jaxws</artifactId> |
| 184 | </dependency> |
| 185 | <dependency> |
| 186 | <groupId>org.apache.cxf</groupId> |
| 187 | <artifactId>cxf-spring-boot-starter-jaxrs</artifactId> |
| 188 | </dependency> |
mukesh.paliwal | 36e6d00 | 2021-02-05 12:44:04 +0530 | [diff] [blame] | 189 | <dependency> |
| 190 | <groupId>org.apache.httpcomponents</groupId> |
| 191 | <artifactId>httpmime</artifactId> |
| 192 | </dependency> |
mukesh.paliwal | 36e6d00 | 2021-02-05 12:44:04 +0530 | [diff] [blame] | 193 | <dependency> |
| 194 | <groupId>org.springframework.boot</groupId> |
| 195 | <artifactId>spring-boot-starter-data-jpa</artifactId> |
| 196 | </dependency> |
| 197 | <dependency> |
| 198 | <groupId>org.springframework.boot</groupId> |
| 199 | <artifactId>spring-boot-starter-test</artifactId> |
| 200 | <scope>test</scope> |
| 201 | </dependency> |
mukesh.paliwal | 36e6d00 | 2021-02-05 12:44:04 +0530 | [diff] [blame] | 202 | </dependencies> |
| 203 | </project> |