wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
wasala | 9292dd2 | 2018-03-28 19:04:20 +0200 | [diff] [blame] | 2 | <!-- |
| 3 | ~ ============LICENSE_START======================================================= |
| 4 | ~ PNF-REGISTRATION-HANDLER |
| 5 | ~ ================================================================================ |
| 6 | ~ Copyright (C) 2018 NOKIA Intellectual Property. 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 | --> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 24 | <parent> |
| 25 | <artifactId>prh</artifactId> |
| 26 | <groupId>org.onap.dcaegen2.services</groupId> |
| 27 | <version>1.0.0-SNAPSHOT</version> |
| 28 | </parent> |
| 29 | <modelVersion>4.0.0</modelVersion> |
| 30 | |
| 31 | <artifactId>prh-app-server</artifactId> |
wasala | 961af3e | 2018-03-27 13:02:10 +0200 | [diff] [blame] | 32 | <groupId>org.onap.dcaegen2.services.prh</groupId> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 33 | <packaging>jar</packaging> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 34 | <properties> |
| 35 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format> |
wasala | 86690cd | 2018-04-03 14:41:23 +0200 | [diff] [blame] | 36 | <project.fatJar.finalName>prh-app-server</project.fatJar.finalName> |
wasala | cf292d9 | 2018-04-13 09:44:51 +0200 | [diff] [blame] | 37 | <nexusproxy>https://nexus.onap.org</nexusproxy> |
| 38 | <snapshots.path>content/repositories/snapshots/</snapshots.path> |
| 39 | <releases.path>content/repositories/releases/</releases.path> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 40 | </properties> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 41 | <build> |
| 42 | <plugins> |
| 43 | <plugin> |
| 44 | <groupId>org.apache.maven.plugins</groupId> |
| 45 | <artifactId>maven-compiler-plugin</artifactId> |
| 46 | </plugin> |
| 47 | <plugin> |
wasala | 44ce56c | 2018-05-08 13:48:44 +0200 | [diff] [blame] | 48 | <groupId>org.apache.maven.plugins</groupId> |
| 49 | <artifactId>maven-resources-plugin</artifactId> |
| 50 | <executions> |
| 51 | <execution> |
| 52 | <id>custom-resources</id> |
| 53 | <phase>process-resources</phase> |
| 54 | <goals> |
| 55 | <goal>copy-resources</goal> |
| 56 | </goals> |
| 57 | <configuration> |
| 58 | <outputDirectory>${project.build.directory}/config</outputDirectory> |
| 59 | <resources> |
| 60 | <resource> |
| 61 | <directory>${project.basedir}/config</directory> |
| 62 | <filtering>true</filtering> |
| 63 | </resource> |
| 64 | </resources> |
| 65 | <encoding>UTF-8</encoding> |
| 66 | </configuration> |
| 67 | </execution> |
| 68 | </executions> |
| 69 | </plugin> |
| 70 | <plugin> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 71 | <groupId>org.springframework.boot</groupId> |
| 72 | <artifactId>spring-boot-maven-plugin</artifactId> |
wasala | d8e4e88 | 2018-03-28 14:20:58 +0200 | [diff] [blame] | 73 | <executions> |
| 74 | <execution> |
| 75 | <goals> |
| 76 | <goal>repackage</goal> |
| 77 | </goals> |
| 78 | </execution> |
| 79 | </executions> |
| 80 | <configuration> |
wasala | 86690cd | 2018-04-03 14:41:23 +0200 | [diff] [blame] | 81 | <finalName>${project.fatJar.finalName}</finalName> |
wasala | d8e4e88 | 2018-03-28 14:20:58 +0200 | [diff] [blame] | 82 | <mainClass>org.onap.dcaegen2.services.prh.MainApp</mainClass> |
| 83 | </configuration> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 84 | </plugin> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 85 | <!-- This plugin may go away in favor of a custom Dockerfile provided by Carsten and co. --> |
| 86 | <plugin> |
| 87 | <groupId>com.spotify</groupId> |
| 88 | <artifactId>docker-maven-plugin</artifactId> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 89 | <configuration> |
Lusheng Ji | 6bb4aa2 | 2018-04-06 10:26:18 -0400 | [diff] [blame] | 90 | <skipDockerBuild>false</skipDockerBuild> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 91 | <imageName> |
| 92 | ${onap.nexus.dockerregistry.daily}/onap/${project.groupId}.${project.artifactId} |
| 93 | </imageName> |
wasala | 86690cd | 2018-04-03 14:41:23 +0200 | [diff] [blame] | 94 | <baseImage>openjdk:8-jre-alpine</baseImage> |
| 95 | <entryPoint>["java", "-jar", "/opt/${project.fatJar.finalName}.jar"]</entryPoint> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 96 | <resources> |
| 97 | <resource> |
wasala | 86690cd | 2018-04-03 14:41:23 +0200 | [diff] [blame] | 98 | <targetPath>/opt</targetPath> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 99 | <directory>${project.build.directory}</directory> |
wasala | 86690cd | 2018-04-03 14:41:23 +0200 | [diff] [blame] | 100 | <include>${project.fatJar.finalName}.jar</include> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 101 | </resource> |
wejs | 7412a22 | 2018-05-16 12:32:24 +0200 | [diff] [blame^] | 102 | <resource> |
| 103 | <targetPath>/config</targetPath> |
| 104 | <directory>${project.build.directory}/config</directory> |
| 105 | <include>*</include> |
| 106 | </resource> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 107 | </resources> |
wasala | 86690cd | 2018-04-03 14:41:23 +0200 | [diff] [blame] | 108 | <exposes> |
| 109 | <expose>8100</expose> |
wasala | 5fbcb63 | 2018-04-18 15:21:56 +0200 | [diff] [blame] | 110 | <expose>8433</expose> |
wasala | 86690cd | 2018-04-03 14:41:23 +0200 | [diff] [blame] | 111 | </exposes> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 112 | <imageTags> |
wasala | 86690cd | 2018-04-03 14:41:23 +0200 | [diff] [blame] | 113 | <imageTag>${project.version}-SNAPSHOT-${maven.build.timestamp}Z</imageTag> |
| 114 | <imageTag>${project.version}</imageTag> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 115 | <imageTag>latest</imageTag> |
| 116 | </imageTags> |
| 117 | <serverId>${onap.nexus.dockerregistry.daily}</serverId> |
| 118 | </configuration> |
| 119 | </plugin> |
wasala | 86690cd | 2018-04-03 14:41:23 +0200 | [diff] [blame] | 120 | <plugin> |
| 121 | <groupId>org.sonatype.plugins</groupId> |
| 122 | <artifactId>nexus-staging-maven-plugin</artifactId> |
| 123 | <version>1.6.7</version> |
| 124 | <extensions>true</extensions> |
| 125 | <configuration> |
| 126 | <serverId>ecomp-staging</serverId> |
| 127 | <nexusUrl>${nexusproxy}</nexusUrl> |
| 128 | <stagingProfileId>176c31dfe190a</stagingProfileId> |
| 129 | </configuration> |
| 130 | </plugin> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 131 | </plugins> |
| 132 | </build> |
| 133 | <dependencies> |
wasala | 961af3e | 2018-03-27 13:02:10 +0200 | [diff] [blame] | 134 | |
| 135 | <!--DEVELOPMENT DEPENDENCIES--> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 136 | <dependency> |
| 137 | <groupId>org.springframework.boot</groupId> |
| 138 | <artifactId>spring-boot-starter-web</artifactId> |
| 139 | </dependency> |
| 140 | <dependency> |
| 141 | <groupId>org.springframework.boot</groupId> |
| 142 | <artifactId>spring-boot-starter-webflux</artifactId> |
| 143 | </dependency> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 144 | <dependency> |
| 145 | <groupId>com.spotify</groupId> |
| 146 | <artifactId>docker-maven-plugin</artifactId> |
wasala | b3a974e | 2018-04-18 08:48:00 +0200 | [diff] [blame] | 147 | <exclusions> |
| 148 | <exclusion> |
| 149 | <groupId>com.fasterxml.jackson.core</groupId> |
| 150 | <artifactId>jackson-databind</artifactId> |
| 151 | </exclusion> |
| 152 | </exclusions> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 153 | </dependency> |
wasala | 3c2e8c9 | 2018-04-12 13:37:41 +0200 | [diff] [blame] | 154 | <dependency> |
wasala | 5fbcb63 | 2018-04-18 15:21:56 +0200 | [diff] [blame] | 155 | <groupId>io.projectreactor</groupId> |
| 156 | <artifactId>reactor-core</artifactId> |
| 157 | </dependency> |
| 158 | <dependency> |
wasala | b0ef045 | 2018-04-16 09:52:34 +0200 | [diff] [blame] | 159 | <groupId>org.bouncycastle</groupId> |
| 160 | <artifactId>bcprov-jdk15on</artifactId> |
| 161 | </dependency> |
| 162 | <dependency> |
| 163 | <groupId>org.bouncycastle</groupId> |
| 164 | <artifactId>bcpkix-jdk15on</artifactId> |
| 165 | </dependency> |
| 166 | <dependency> |
| 167 | <groupId>org.codehaus.plexus</groupId> |
| 168 | <artifactId>plexus-utils</artifactId> |
| 169 | </dependency> |
| 170 | <dependency> |
wasala | b0ef045 | 2018-04-16 09:52:34 +0200 | [diff] [blame] | 171 | <groupId>org.apache.tomcat.embed</groupId> |
| 172 | <artifactId>tomcat-embed-core</artifactId> |
| 173 | </dependency> |
| 174 | <dependency> |
| 175 | <groupId>org.apache.tomcat.embed</groupId> |
| 176 | <artifactId>tomcat-embed-el</artifactId> |
| 177 | </dependency> |
| 178 | <dependency> |
| 179 | <groupId>org.apache.tomcat.embed</groupId> |
| 180 | <artifactId>tomcat-embed-websocket</artifactId> |
| 181 | </dependency> |
wasala | 44ce56c | 2018-05-08 13:48:44 +0200 | [diff] [blame] | 182 | <dependency> |
| 183 | <groupId>org.immutables</groupId> |
| 184 | <artifactId>value</artifactId> |
| 185 | </dependency> |
| 186 | <dependency> |
| 187 | <groupId>org.immutables</groupId> |
| 188 | <artifactId>gson</artifactId> |
| 189 | </dependency> |
pwielebs | a393ae3 | 2018-05-07 16:58:20 +0200 | [diff] [blame] | 190 | <dependency> |
pwielebs | cb85d68 | 2018-05-07 16:58:20 +0200 | [diff] [blame] | 191 | <groupId>org.onap.dcaegen2.services.prh</groupId> |
| 192 | <artifactId>prh-commons</artifactId> |
| 193 | <version>1.0.0-SNAPSHOT</version> |
| 194 | </dependency> |
pwielebs | a393ae3 | 2018-05-07 16:58:20 +0200 | [diff] [blame] | 195 | |
wasala | 961af3e | 2018-03-27 13:02:10 +0200 | [diff] [blame] | 196 | |
| 197 | <!-- LOGGING DEPENDENCIES--> |
| 198 | <dependency> |
wasala | 961af3e | 2018-03-27 13:02:10 +0200 | [diff] [blame] | 199 | <groupId>ch.qos.logback</groupId> |
| 200 | <artifactId>logback-classic</artifactId> |
| 201 | </dependency> |
wasala | d8e4e88 | 2018-03-28 14:20:58 +0200 | [diff] [blame] | 202 | <dependency> |
| 203 | <groupId>org.slf4j</groupId> |
| 204 | <artifactId>jul-to-slf4j</artifactId> |
| 205 | </dependency> |
| 206 | <dependency> |
| 207 | <groupId>org.slf4j</groupId> |
| 208 | <artifactId>log4j-over-slf4j</artifactId> |
| 209 | </dependency> |
wasala | 961af3e | 2018-03-27 13:02:10 +0200 | [diff] [blame] | 210 | |
| 211 | <!--TESTS DEPENDENCIES --> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 212 | <dependency> |
wasala | 5fbcb63 | 2018-04-18 15:21:56 +0200 | [diff] [blame] | 213 | <groupId>io.projectreactor</groupId> |
| 214 | <artifactId>reactor-test</artifactId> |
| 215 | <scope>test</scope> |
| 216 | </dependency> |
| 217 | <dependency> |
wasala | 961af3e | 2018-03-27 13:02:10 +0200 | [diff] [blame] | 218 | <groupId>org.junit.jupiter</groupId> |
| 219 | <artifactId>junit-jupiter-engine</artifactId> |
| 220 | <scope>test</scope> |
| 221 | </dependency> |
| 222 | <dependency> |
| 223 | <groupId>org.junit.vintage</groupId> |
| 224 | <artifactId>junit-vintage-engine</artifactId> |
| 225 | <scope>test</scope> |
| 226 | </dependency> |
| 227 | <dependency> |
| 228 | <groupId>org.springframework</groupId> |
| 229 | <artifactId>spring-test</artifactId> |
| 230 | <scope>test</scope> |
| 231 | </dependency> |
| 232 | <dependency> |
micdzied | 6a7fa72 | 2018-04-13 15:24:54 +0200 | [diff] [blame] | 233 | <groupId>org.junit.platform</groupId> |
| 234 | <artifactId>junit-platform-launcher</artifactId> |
| 235 | </dependency> |
| 236 | <dependency> |
wasala | 961af3e | 2018-03-27 13:02:10 +0200 | [diff] [blame] | 237 | <groupId>org.springframework.boot</groupId> |
| 238 | <artifactId>spring-boot-starter-test</artifactId> |
| 239 | <scope>test</scope> |
| 240 | </dependency> |
| 241 | <dependency> |
| 242 | <groupId>org.mockito</groupId> |
| 243 | <artifactId>mockito-core</artifactId> |
| 244 | <scope>test</scope> |
| 245 | </dependency> |
| 246 | <dependency> |
wasala | b0ef045 | 2018-04-16 09:52:34 +0200 | [diff] [blame] | 247 | <groupId>org.glassfish.jersey.connectors</groupId> |
| 248 | <artifactId>jersey-apache-connector</artifactId> |
| 249 | <scope>test</scope> |
| 250 | </dependency> |
| 251 | <dependency> |
wasala | 961af3e | 2018-03-27 13:02:10 +0200 | [diff] [blame] | 252 | <groupId>org.testng</groupId> |
| 253 | <artifactId>testng</artifactId> |
| 254 | </dependency> |
wasala | 86690cd | 2018-04-03 14:41:23 +0200 | [diff] [blame] | 255 | <dependency> |
| 256 | <groupId>org.onap.dcaegen2.services.prh</groupId> |
| 257 | <artifactId>prh-aai-client</artifactId> |
wasala | b0ef045 | 2018-04-16 09:52:34 +0200 | [diff] [blame] | 258 | <version>${project.parent.version}</version> |
wasala | 86690cd | 2018-04-03 14:41:23 +0200 | [diff] [blame] | 259 | </dependency> |
| 260 | <dependency> |
| 261 | <groupId>org.onap.dcaegen2.services.prh</groupId> |
| 262 | <artifactId>prh-dmaap-client</artifactId> |
wasala | b0ef045 | 2018-04-16 09:52:34 +0200 | [diff] [blame] | 263 | <version>${project.parent.version}</version> |
wasala | 86690cd | 2018-04-03 14:41:23 +0200 | [diff] [blame] | 264 | </dependency> |
wasala | 44ce56c | 2018-05-08 13:48:44 +0200 | [diff] [blame] | 265 | |
micdzied | 7e7aa0c | 2018-05-07 08:42:44 +0200 | [diff] [blame] | 266 | <!--REQUIRED TO GENERATE DOCUMENTATION --> |
| 267 | <dependency> |
| 268 | <groupId>io.springfox</groupId> |
| 269 | <artifactId>springfox-swagger2</artifactId> |
| 270 | </dependency> |
| 271 | <dependency> |
| 272 | <groupId>io.springfox</groupId> |
| 273 | <artifactId>springfox-swagger-ui</artifactId> |
| 274 | </dependency> |
wasala | 961af3e | 2018-03-27 13:02:10 +0200 | [diff] [blame] | 275 | |
wasala | 44ce56c | 2018-05-08 13:48:44 +0200 | [diff] [blame] | 276 | <dependency> |
| 277 | <groupId>org.onap.dcaegen2.services.prh</groupId> |
| 278 | <artifactId>prh-aai-client</artifactId> |
| 279 | <version>1.0.0-SNAPSHOT</version> |
| 280 | </dependency> |
| 281 | |
pwielebs | a393ae3 | 2018-05-07 16:58:20 +0200 | [diff] [blame] | 282 | |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 283 | </dependencies> |
| 284 | <dependencyManagement> |
| 285 | <dependencies> |
| 286 | <dependency> |
wasala | 961af3e | 2018-03-27 13:02:10 +0200 | [diff] [blame] | 287 | <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING BOOT --> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 288 | <groupId>org.springframework.boot</groupId> |
| 289 | <artifactId>spring-boot-dependencies</artifactId> |
wasala | cf292d9 | 2018-04-13 09:44:51 +0200 | [diff] [blame] | 290 | <version>2.0.1.RELEASE</version> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 291 | <type>pom</type> |
| 292 | <scope>import</scope> |
| 293 | </dependency> |
| 294 | </dependencies> |
| 295 | </dependencyManagement> |
Lusheng Ji | 6bb4aa2 | 2018-04-06 10:26:18 -0400 | [diff] [blame] | 296 | </project> |