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 | --> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 21 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
pwielebs | be31272 | 2018-09-04 09:50:05 +0200 | [diff] [blame] | 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"> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 24 | <modelVersion>4.0.0</modelVersion> |
| 25 | |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 26 | <parent> |
| 27 | <groupId>org.onap.dcaegen2.services</groupId> |
| 28 | <artifactId>prh</artifactId> |
| 29 | <version>1.0.0-SNAPSHOT</version> |
| 30 | </parent> |
| 31 | |
wasala | 961af3e | 2018-03-27 13:02:10 +0200 | [diff] [blame] | 32 | <groupId>org.onap.dcaegen2.services.prh</groupId> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 33 | <artifactId>prh-app-server</artifactId> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 34 | <packaging>jar</packaging> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 35 | |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 36 | <properties> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 37 | <docker.image.name>onap/${project.groupId}.${project.artifactId}</docker.image.name> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 38 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 39 | </properties> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 40 | |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 41 | <build> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 42 | <resources> |
| 43 | <resource> |
pwielebs | be31272 | 2018-09-04 09:50:05 +0200 | [diff] [blame] | 44 | <directory>src/main/resources</directory> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 45 | </resource> |
| 46 | </resources> |
| 47 | |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 48 | <plugins> |
| 49 | <plugin> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 50 | <groupId>org.springframework.boot</groupId> |
| 51 | <artifactId>spring-boot-maven-plugin</artifactId> |
wasala | d8e4e88 | 2018-03-28 14:20:58 +0200 | [diff] [blame] | 52 | <configuration> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 53 | <finalName>${project.artifactId}</finalName> |
wasala | d8e4e88 | 2018-03-28 14:20:58 +0200 | [diff] [blame] | 54 | <mainClass>org.onap.dcaegen2.services.prh.MainApp</mainClass> |
| 55 | </configuration> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 56 | </plugin> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 57 | <plugin> |
| 58 | <groupId>com.spotify</groupId> |
| 59 | <artifactId>docker-maven-plugin</artifactId> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 60 | <configuration> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 61 | <serverId>${onap.nexus.dockerregistry.daily}</serverId> |
| 62 | <imageName>${docker.image.name}</imageName> |
| 63 | <imageTags> |
| 64 | <tag>latest</tag> |
| 65 | </imageTags> |
wasala | 86690cd | 2018-04-03 14:41:23 +0200 | [diff] [blame] | 66 | <baseImage>openjdk:8-jre-alpine</baseImage> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 67 | <resources> |
| 68 | <resource> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 69 | <directory>${project.build.directory}</directory> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 70 | <include>${project.artifactId}.jar</include> |
| 71 | <targetPath>/opt</targetPath> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 72 | </resource> |
| 73 | </resources> |
wasala | 86690cd | 2018-04-03 14:41:23 +0200 | [diff] [blame] | 74 | <exposes> |
| 75 | <expose>8100</expose> |
wasala | 5fbcb63 | 2018-04-18 15:21:56 +0200 | [diff] [blame] | 76 | <expose>8433</expose> |
wasala | 86690cd | 2018-04-03 14:41:23 +0200 | [diff] [blame] | 77 | </exposes> |
pwielebs | be31272 | 2018-09-04 09:50:05 +0200 | [diff] [blame] | 78 | <cmd>["java", "-jar", "/opt/${project.artifactId}.jar"]</cmd> |
wasala | 86690cd | 2018-04-03 14:41:23 +0200 | [diff] [blame] | 79 | </configuration> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 80 | <executions> |
| 81 | <execution> |
| 82 | <id>build-image</id> |
| 83 | <phase>package</phase> |
| 84 | <goals> |
| 85 | <goal>build</goal> |
| 86 | </goals> |
| 87 | </execution> |
| 88 | <execution> |
| 89 | <id>tag-and-push-image-latest</id> |
| 90 | <phase>deploy</phase> |
| 91 | <goals> |
| 92 | <goal>tag</goal> |
| 93 | </goals> |
| 94 | <configuration> |
| 95 | <image>${docker.image.name}:latest</image> |
| 96 | <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName> |
| 97 | <pushImage>true</pushImage> |
| 98 | </configuration> |
| 99 | </execution> |
| 100 | <execution> |
| 101 | <id>tag-and-push-image-with-version</id> |
| 102 | <phase>deploy</phase> |
| 103 | <goals> |
| 104 | <goal>tag</goal> |
| 105 | </goals> |
| 106 | <configuration> |
| 107 | <image>${docker.image.name}:latest</image> |
| 108 | <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName> |
| 109 | <pushImage>true</pushImage> |
| 110 | </configuration> |
| 111 | </execution> |
| 112 | <execution> |
| 113 | <id>tag-and-push-image-with-version-and-date</id> |
| 114 | <phase>deploy</phase> |
| 115 | <goals> |
| 116 | <goal>tag</goal> |
| 117 | </goals> |
| 118 | <configuration> |
| 119 | <image>${docker.image.name}:latest</image> |
| 120 | <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z</newName> |
| 121 | <pushImage>true</pushImage> |
| 122 | </configuration> |
| 123 | </execution> |
| 124 | </executions> |
wasala | a684d47 | 2018-06-19 09:27:20 +0200 | [diff] [blame] | 125 | </plugin> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 126 | </plugins> |
| 127 | </build> |
wasala | 961af3e | 2018-03-27 13:02:10 +0200 | [diff] [blame] | 128 | |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 129 | <dependencies> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 130 | <dependency> |
| 131 | <groupId>org.springframework.boot</groupId> |
| 132 | <artifactId>spring-boot-starter-web</artifactId> |
wasala | 4a1457c | 2018-09-11 09:50:21 +0200 | [diff] [blame] | 133 | <exclusions> |
| 134 | <exclusion> |
| 135 | <groupId>com.fasterxml.jackson.core</groupId> |
| 136 | <artifactId>jackson-databind</artifactId> |
| 137 | </exclusion> |
| 138 | </exclusions> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 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> |
wasala | 5fbcb63 | 2018-04-18 15:21:56 +0200 | [diff] [blame] | 145 | <groupId>io.projectreactor</groupId> |
| 146 | <artifactId>reactor-core</artifactId> |
| 147 | </dependency> |
| 148 | <dependency> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 149 | <groupId>org.immutables</groupId> |
| 150 | <artifactId>value</artifactId> |
| 151 | </dependency> |
| 152 | <dependency> |
| 153 | <groupId>org.immutables</groupId> |
| 154 | <artifactId>gson</artifactId> |
| 155 | </dependency> |
| 156 | <dependency> |
wasala | b0ef045 | 2018-04-16 09:52:34 +0200 | [diff] [blame] | 157 | <groupId>org.apache.tomcat.embed</groupId> |
| 158 | <artifactId>tomcat-embed-core</artifactId> |
| 159 | </dependency> |
| 160 | <dependency> |
| 161 | <groupId>org.apache.tomcat.embed</groupId> |
| 162 | <artifactId>tomcat-embed-el</artifactId> |
| 163 | </dependency> |
| 164 | <dependency> |
| 165 | <groupId>org.apache.tomcat.embed</groupId> |
| 166 | <artifactId>tomcat-embed-websocket</artifactId> |
| 167 | </dependency> |
wasala | 44ce56c | 2018-05-08 13:48:44 +0200 | [diff] [blame] | 168 | <dependency> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 169 | <groupId>org.onap.dcaegen2.services.prh</groupId> |
| 170 | <artifactId>prh-commons</artifactId> |
| 171 | <version>${project.version}</version> |
wasala | 44ce56c | 2018-05-08 13:48:44 +0200 | [diff] [blame] | 172 | </dependency> |
pwielebs | a393ae3 | 2018-05-07 16:58:20 +0200 | [diff] [blame] | 173 | <dependency> |
pwielebs | cb85d68 | 2018-05-07 16:58:20 +0200 | [diff] [blame] | 174 | <groupId>org.onap.dcaegen2.services.prh</groupId> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 175 | <artifactId>prh-aai-client</artifactId> |
| 176 | <version>${project.version}</version> |
| 177 | </dependency> |
| 178 | <dependency> |
| 179 | <groupId>org.onap.dcaegen2.services.prh</groupId> |
| 180 | <artifactId>prh-dmaap-client</artifactId> |
| 181 | <version>${project.version}</version> |
wasala | a684d47 | 2018-06-19 09:27:20 +0200 | [diff] [blame] | 182 | </dependency> |
pwielebs | a393ae3 | 2018-05-07 16:58:20 +0200 | [diff] [blame] | 183 | |
wasala | 961af3e | 2018-03-27 13:02:10 +0200 | [diff] [blame] | 184 | <dependency> |
wasala | 961af3e | 2018-03-27 13:02:10 +0200 | [diff] [blame] | 185 | <groupId>ch.qos.logback</groupId> |
| 186 | <artifactId>logback-classic</artifactId> |
| 187 | </dependency> |
wasala | d8e4e88 | 2018-03-28 14:20:58 +0200 | [diff] [blame] | 188 | <dependency> |
| 189 | <groupId>org.slf4j</groupId> |
| 190 | <artifactId>jul-to-slf4j</artifactId> |
| 191 | </dependency> |
| 192 | <dependency> |
| 193 | <groupId>org.slf4j</groupId> |
| 194 | <artifactId>log4j-over-slf4j</artifactId> |
| 195 | </dependency> |
wasala | 961af3e | 2018-03-27 13:02:10 +0200 | [diff] [blame] | 196 | |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 197 | <dependency> |
wasala | 5fbcb63 | 2018-04-18 15:21:56 +0200 | [diff] [blame] | 198 | <groupId>io.projectreactor</groupId> |
| 199 | <artifactId>reactor-test</artifactId> |
| 200 | <scope>test</scope> |
| 201 | </dependency> |
| 202 | <dependency> |
wasala | 961af3e | 2018-03-27 13:02:10 +0200 | [diff] [blame] | 203 | <groupId>org.junit.jupiter</groupId> |
| 204 | <artifactId>junit-jupiter-engine</artifactId> |
| 205 | <scope>test</scope> |
| 206 | </dependency> |
| 207 | <dependency> |
| 208 | <groupId>org.junit.vintage</groupId> |
| 209 | <artifactId>junit-vintage-engine</artifactId> |
| 210 | <scope>test</scope> |
| 211 | </dependency> |
| 212 | <dependency> |
| 213 | <groupId>org.springframework</groupId> |
| 214 | <artifactId>spring-test</artifactId> |
| 215 | <scope>test</scope> |
| 216 | </dependency> |
| 217 | <dependency> |
micdzied | 6a7fa72 | 2018-04-13 15:24:54 +0200 | [diff] [blame] | 218 | <groupId>org.junit.platform</groupId> |
| 219 | <artifactId>junit-platform-launcher</artifactId> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 220 | <scope>test</scope> |
micdzied | 6a7fa72 | 2018-04-13 15:24:54 +0200 | [diff] [blame] | 221 | </dependency> |
| 222 | <dependency> |
wasala | 961af3e | 2018-03-27 13:02:10 +0200 | [diff] [blame] | 223 | <groupId>org.mockito</groupId> |
| 224 | <artifactId>mockito-core</artifactId> |
| 225 | <scope>test</scope> |
| 226 | </dependency> |
| 227 | <dependency> |
wasala | b0ef045 | 2018-04-16 09:52:34 +0200 | [diff] [blame] | 228 | <groupId>org.glassfish.jersey.connectors</groupId> |
| 229 | <artifactId>jersey-apache-connector</artifactId> |
| 230 | <scope>test</scope> |
| 231 | </dependency> |
| 232 | <dependency> |
wasala | 961af3e | 2018-03-27 13:02:10 +0200 | [diff] [blame] | 233 | <groupId>org.testng</groupId> |
| 234 | <artifactId>testng</artifactId> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 235 | <scope>test</scope> |
wasala | 86690cd | 2018-04-03 14:41:23 +0200 | [diff] [blame] | 236 | </dependency> |
wasala | 4a1457c | 2018-09-11 09:50:21 +0200 | [diff] [blame] | 237 | <dependency> |
| 238 | <groupId>org.assertj</groupId> |
| 239 | <artifactId>assertj-core</artifactId> |
| 240 | </dependency> |
wasala | 44ce56c | 2018-05-08 13:48:44 +0200 | [diff] [blame] | 241 | |
micdzied | 7e7aa0c | 2018-05-07 08:42:44 +0200 | [diff] [blame] | 242 | <dependency> |
| 243 | <groupId>io.springfox</groupId> |
| 244 | <artifactId>springfox-swagger2</artifactId> |
| 245 | </dependency> |
| 246 | <dependency> |
| 247 | <groupId>io.springfox</groupId> |
| 248 | <artifactId>springfox-swagger-ui</artifactId> |
| 249 | </dependency> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 250 | </dependencies> |
Lusheng Ji | 6bb4aa2 | 2018-04-06 10:26:18 -0400 | [diff] [blame] | 251 | </project> |