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> |
MD IRSHAD SHEIKH | 5e25f85 | 2021-02-25 18:43:27 +0530 | [diff] [blame^] | 28 | <artifactId>so</artifactId> |
mukesh.paliwal | 6abd395 | 2021-02-22 15:02:10 +0530 | [diff] [blame] | 29 | <version>1.8.0-SNAPSHOT</version> |
mukesh.paliwal | 36e6d00 | 2021-02-05 12:44:04 +0530 | [diff] [blame] | 30 | </parent> |
MD IRSHAD SHEIKH | 5e25f85 | 2021-02-25 18:43:27 +0530 | [diff] [blame^] | 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> |
mukesh.paliwal | f3fb496 | 2021-02-22 08:48:28 +0530 | [diff] [blame] | 51 | <groupId>org.apache.maven.plugins</groupId> |
| 52 | <artifactId>maven-deploy-plugin</artifactId> |
| 53 | <configuration> |
| 54 | <skip>true</skip> |
| 55 | </configuration> |
| 56 | </plugin> |
| 57 | <plugin> |
mukesh.paliwal | 36e6d00 | 2021-02-05 12:44:04 +0530 | [diff] [blame] | 58 | <groupId>org.springframework.boot</groupId> |
| 59 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 60 | <configuration> |
| 61 | <mainClass>org.onap.so.adapters.cnf.MSOCnfApplication</mainClass> |
| 62 | </configuration> |
| 63 | <executions> |
| 64 | <execution> |
| 65 | <goals> |
| 66 | <goal>repackage</goal> |
| 67 | </goals> |
| 68 | </execution> |
| 69 | </executions> |
| 70 | </plugin> |
| 71 | <plugin> |
| 72 | <groupId>org.jacoco</groupId> |
| 73 | <artifactId>jacoco-maven-plugin</artifactId> |
| 74 | </plugin> |
| 75 | <plugin> |
| 76 | <groupId>net.revelc.code.formatter</groupId> |
| 77 | <artifactId>formatter-maven-plugin</artifactId> |
| 78 | <version>2.9.0</version> |
| 79 | <executions> |
| 80 | <execution> |
| 81 | <id>format-java</id> |
| 82 | <goals> |
| 83 | <goal>format</goal> |
| 84 | </goals> |
| 85 | <phase>process-sources</phase> |
| 86 | <configuration> |
| 87 | <skip>${format.skipExecute}</skip> |
| 88 | <configFile>${project.basedir}/onap-eclipse-format.xml</configFile> |
| 89 | </configuration> |
| 90 | </execution> |
| 91 | <execution> |
| 92 | <id>format-xml</id> |
| 93 | <goals> |
| 94 | <goal>format</goal> |
| 95 | </goals> |
| 96 | <phase>process-sources</phase> |
| 97 | <configuration> |
| 98 | <skip>${format.skipExecute}</skip> |
| 99 | <sourceDirectory>${project.basedir}</sourceDirectory> |
| 100 | <configXmlFile>${project.basedir}/pom-format.properties</configXmlFile> |
| 101 | <includes> |
| 102 | <include>pom.xml</include> |
| 103 | </includes> |
| 104 | </configuration> |
| 105 | </execution> |
| 106 | <execution> |
| 107 | <id>validate-java</id> |
| 108 | <goals> |
| 109 | <goal>validate</goal> |
| 110 | </goals> |
| 111 | <configuration> |
| 112 | <skip>${format.skipValidate}</skip> |
| 113 | <configFile>${project.basedir}/onap-eclipse-format.xml</configFile> |
| 114 | </configuration> |
| 115 | </execution> |
| 116 | <execution> |
| 117 | <id>validate-poms</id> |
| 118 | <goals> |
| 119 | <goal>validate</goal> |
| 120 | </goals> |
| 121 | <configuration> |
| 122 | <skip>${format.skipValidate}</skip> |
| 123 | <configFile>${project.basedir}/pom-format.properties</configFile> |
| 124 | <includes> |
| 125 | <include>pom.xml</include> |
| 126 | </includes> |
| 127 | </configuration> |
| 128 | </execution> |
| 129 | </executions> |
| 130 | <dependencies> |
| 131 | <dependency> |
| 132 | <groupId>com.fasterxml.jackson.core</groupId> |
| 133 | <artifactId>jackson-annotations</artifactId> |
| 134 | <version>2.9.8</version> |
| 135 | </dependency> |
| 136 | </dependencies> |
| 137 | </plugin> |
| 138 | <plugin> |
MD IRSHAD SHEIKH | 5e25f85 | 2021-02-25 18:43:27 +0530 | [diff] [blame^] | 139 | <groupId>org.codehaus.mojo</groupId> |
| 140 | <artifactId>exec-maven-plugin</artifactId> |
| 141 | <executions> |
| 142 | <execution> |
| 143 | <id>docker-build</id> |
| 144 | <phase>install</phase> |
| 145 | <goals> |
| 146 | <goal>exec</goal> |
| 147 | </goals> |
| 148 | <configuration> |
mukesh.paliwal | b2f32ce | 2021-02-24 11:15:57 +0530 | [diff] [blame] | 149 | <dockerFile>Dockerfile</dockerFile> |
mukesh.paliwal | 36e6d00 | 2021-02-05 12:44:04 +0530 | [diff] [blame] | 150 | <executable>docker</executable> |
| 151 | <workingDirectory>${project.basedir}</workingDirectory> |
| 152 | <arguments> |
| 153 | <argument>build</argument> |
| 154 | <argument>-t</argument> |
mukesh.paliwal | b2f32ce | 2021-02-24 11:15:57 +0530 | [diff] [blame] | 155 | <argument>${project.artifactId}:${project.version}</argument> |
mukesh.paliwal | 36e6d00 | 2021-02-05 12:44:04 +0530 | [diff] [blame] | 156 | <argument>.</argument> |
| 157 | </arguments> |
| 158 | <buildArgs> |
| 159 | <JAR_FILE>${project.artifactId}-${project.version}.jar</JAR_FILE> |
| 160 | <ARTIFACT_ID>${project.artifactId}</ARTIFACT_ID> |
| 161 | </buildArgs> |
| 162 | </configuration> |
MD IRSHAD SHEIKH | 5e25f85 | 2021-02-25 18:43:27 +0530 | [diff] [blame^] | 163 | </execution> |
| 164 | </executions> |
| 165 | </plugin> |
mukesh.paliwal | 36e6d00 | 2021-02-05 12:44:04 +0530 | [diff] [blame] | 166 | </plugins> |
| 167 | </build> |
| 168 | <dependencies> |
| 169 | <dependency> |
| 170 | <groupId>org.springframework.boot</groupId> |
| 171 | <artifactId>spring-boot-starter-actuator</artifactId> |
| 172 | </dependency> |
| 173 | <dependency> |
| 174 | <groupId>org.springframework.boot</groupId> |
| 175 | <artifactId>spring-boot-starter-web</artifactId> |
| 176 | </dependency> |
| 177 | <dependency> |
| 178 | <groupId>org.springframework.boot</groupId> |
| 179 | <artifactId>spring-boot-starter-jdbc</artifactId> |
| 180 | <exclusions> |
| 181 | <exclusion> |
| 182 | <groupId>org.apache.tomcat</groupId> |
| 183 | <artifactId>tomcat-jdbc</artifactId> |
| 184 | </exclusion> |
| 185 | </exclusions> |
| 186 | </dependency> |
| 187 | <dependency> |
| 188 | <groupId>org.apache.cxf</groupId> |
| 189 | <artifactId>cxf-spring-boot-starter-jaxws</artifactId> |
| 190 | </dependency> |
| 191 | <dependency> |
| 192 | <groupId>org.apache.cxf</groupId> |
| 193 | <artifactId>cxf-spring-boot-starter-jaxrs</artifactId> |
| 194 | </dependency> |
mukesh.paliwal | 36e6d00 | 2021-02-05 12:44:04 +0530 | [diff] [blame] | 195 | <dependency> |
| 196 | <groupId>org.apache.httpcomponents</groupId> |
| 197 | <artifactId>httpmime</artifactId> |
| 198 | </dependency> |
mukesh.paliwal | 36e6d00 | 2021-02-05 12:44:04 +0530 | [diff] [blame] | 199 | <dependency> |
| 200 | <groupId>org.springframework.boot</groupId> |
| 201 | <artifactId>spring-boot-starter-data-jpa</artifactId> |
| 202 | </dependency> |
| 203 | <dependency> |
| 204 | <groupId>org.springframework.boot</groupId> |
| 205 | <artifactId>spring-boot-starter-test</artifactId> |
| 206 | <scope>test</scope> |
| 207 | </dependency> |
MD IRSHAD SHEIKH | 5e25f85 | 2021-02-25 18:43:27 +0530 | [diff] [blame^] | 208 | <dependency> |
| 209 | <groupId>org.apache.httpcomponents</groupId> |
| 210 | <artifactId>httpclient</artifactId> |
| 211 | </dependency> |
| 212 | <dependency> |
| 213 | <groupId>org.apache.httpcomponents</groupId> |
| 214 | <artifactId>httpcore</artifactId> |
| 215 | </dependency> |
| 216 | <dependency> |
| 217 | <groupId>org.springframework.cloud</groupId> |
| 218 | <artifactId>spring-cloud-contract-wiremock</artifactId> |
| 219 | <version>1.2.4.RELEASE</version> |
| 220 | </dependency> |
| 221 | <dependency> |
| 222 | <groupId>org.onap.so</groupId> |
| 223 | <artifactId>aai-client</artifactId> |
| 224 | <version>${project.version}</version> |
| 225 | </dependency> |
| 226 | <dependency> |
| 227 | <groupId>com.sun.xml.ws</groupId> |
| 228 | <artifactId>jaxws-ri</artifactId> |
| 229 | <version>2.3.0</version> |
| 230 | <type>pom</type> |
| 231 | </dependency> |
mukesh.paliwal | 36e6d00 | 2021-02-05 12:44:04 +0530 | [diff] [blame] | 232 | </dependencies> |
| 233 | </project> |
MD IRSHAD SHEIKH | e3efc9f | 2021-02-25 15:06:00 +0530 | [diff] [blame] | 234 | |