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> |
Kasperkiewicz Pawel | b432962 | 2018-10-22 14:21:40 +0200 | [diff] [blame] | 29 | <version>1.2.0-SNAPSHOT</version> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 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> |
| 37 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format> |
Piotr Bocheński | 05fd72a | 2019-01-23 15:01:00 +0100 | [diff] [blame] | 38 | |
| 39 | <prh.main.class>org.onap.dcaegen2.services.prh.MainApp</prh.main.class> |
| 40 | <dependency.dir.name>libs</dependency.dir.name> |
| 41 | <dependency.dir.location>${project.build.directory}/${dependency.dir.name}</dependency.dir.location> |
| 42 | <docker.artifact.dir>/opt</docker.artifact.dir> |
| 43 | <docker.image.name>onap/${project.groupId}.${project.artifactId}</docker.image.name> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 44 | </properties> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 45 | |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 46 | <build> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 47 | <resources> |
| 48 | <resource> |
pwielebs | be31272 | 2018-09-04 09:50:05 +0200 | [diff] [blame] | 49 | <directory>src/main/resources</directory> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 50 | </resource> |
| 51 | </resources> |
| 52 | |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 53 | <plugins> |
| 54 | <plugin> |
Piotr Bocheński | 05fd72a | 2019-01-23 15:01:00 +0100 | [diff] [blame] | 55 | <groupId>org.apache.maven.plugins</groupId> |
| 56 | <artifactId>maven-jar-plugin</artifactId> |
| 57 | <version>3.0.2</version> |
wasala | d8e4e88 | 2018-03-28 14:20:58 +0200 | [diff] [blame] | 58 | <configuration> |
Piotr Bocheński | 05fd72a | 2019-01-23 15:01:00 +0100 | [diff] [blame] | 59 | <archive> |
| 60 | <manifestEntries> |
| 61 | <Main-Class>${prh.main.class}</Main-Class> |
| 62 | <Build-Time>${maven.build.timestamp}</Build-Time> |
| 63 | </manifestEntries> |
| 64 | </archive> |
wasala | d8e4e88 | 2018-03-28 14:20:58 +0200 | [diff] [blame] | 65 | </configuration> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 66 | </plugin> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 67 | <plugin> |
Piotr Bocheński | 05fd72a | 2019-01-23 15:01:00 +0100 | [diff] [blame] | 68 | <groupId>org.apache.maven.plugins</groupId> |
| 69 | <artifactId>maven-dependency-plugin</artifactId> |
| 70 | <configuration> |
| 71 | <outputDirectory>${dependency.dir.location}</outputDirectory> |
| 72 | <includeScope>runtime</includeScope> |
| 73 | <silent>true</silent> |
| 74 | </configuration> |
| 75 | <executions> |
| 76 | <execution> |
| 77 | <id>copy-external-dependencies</id> |
| 78 | <phase>package</phase> |
| 79 | <goals> |
| 80 | <goal>copy-dependencies</goal> |
| 81 | </goals> |
| 82 | </execution> |
| 83 | </executions> |
| 84 | </plugin> |
| 85 | <plugin> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 86 | <groupId>com.spotify</groupId> |
| 87 | <artifactId>docker-maven-plugin</artifactId> |
wasala | 112044f | 2018-03-28 20:08:54 +0200 | [diff] [blame] | 88 | <configuration> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 89 | <serverId>${onap.nexus.dockerregistry.daily}</serverId> |
| 90 | <imageName>${docker.image.name}</imageName> |
| 91 | <imageTags> |
| 92 | <tag>latest</tag> |
| 93 | </imageTags> |
wasala | 86690cd | 2018-04-03 14:41:23 +0200 | [diff] [blame] | 94 | <baseImage>openjdk:8-jre-alpine</baseImage> |
wasala | 86690cd | 2018-04-03 14:41:23 +0200 | [diff] [blame] | 95 | <exposes> |
| 96 | <expose>8100</expose> |
wasala | 5fbcb63 | 2018-04-18 15:21:56 +0200 | [diff] [blame] | 97 | <expose>8433</expose> |
wasala | 86690cd | 2018-04-03 14:41:23 +0200 | [diff] [blame] | 98 | </exposes> |
Piotr Bocheński | e0e5f2a | 2019-01-25 15:23:01 +0100 | [diff] [blame^] | 99 | <entryPoint>java -cp ${docker.artifact.dir}/${dependency.dir.name}/*:${docker.artifact.dir}/${project.build.finalName}.jar ${prh.main.class}</entryPoint> |
Piotr Bocheński | 05fd72a | 2019-01-23 15:01:00 +0100 | [diff] [blame] | 100 | <resources> |
| 101 | <resource> |
| 102 | <directory>${dependency.dir.location}</directory> |
| 103 | <targetPath>${docker.artifact.dir}/${dependency.dir.name}</targetPath> |
| 104 | </resource> |
| 105 | <resource> |
| 106 | <directory>${project.build.directory}</directory> |
| 107 | <include>${project.build.finalName}.jar</include> |
| 108 | <targetPath>${docker.artifact.dir}</targetPath> |
| 109 | </resource> |
| 110 | </resources> |
wasala | 86690cd | 2018-04-03 14:41:23 +0200 | [diff] [blame] | 111 | </configuration> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 112 | <executions> |
| 113 | <execution> |
| 114 | <id>build-image</id> |
| 115 | <phase>package</phase> |
| 116 | <goals> |
| 117 | <goal>build</goal> |
| 118 | </goals> |
| 119 | </execution> |
| 120 | <execution> |
| 121 | <id>tag-and-push-image-latest</id> |
| 122 | <phase>deploy</phase> |
| 123 | <goals> |
| 124 | <goal>tag</goal> |
| 125 | </goals> |
| 126 | <configuration> |
| 127 | <image>${docker.image.name}:latest</image> |
| 128 | <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName> |
| 129 | <pushImage>true</pushImage> |
| 130 | </configuration> |
| 131 | </execution> |
| 132 | <execution> |
| 133 | <id>tag-and-push-image-with-version</id> |
| 134 | <phase>deploy</phase> |
| 135 | <goals> |
| 136 | <goal>tag</goal> |
| 137 | </goals> |
| 138 | <configuration> |
| 139 | <image>${docker.image.name}:latest</image> |
| 140 | <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName> |
| 141 | <pushImage>true</pushImage> |
| 142 | </configuration> |
| 143 | </execution> |
| 144 | <execution> |
| 145 | <id>tag-and-push-image-with-version-and-date</id> |
| 146 | <phase>deploy</phase> |
| 147 | <goals> |
| 148 | <goal>tag</goal> |
| 149 | </goals> |
| 150 | <configuration> |
| 151 | <image>${docker.image.name}:latest</image> |
| 152 | <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z</newName> |
| 153 | <pushImage>true</pushImage> |
| 154 | </configuration> |
| 155 | </execution> |
| 156 | </executions> |
wasala | a684d47 | 2018-06-19 09:27:20 +0200 | [diff] [blame] | 157 | </plugin> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 158 | </plugins> |
| 159 | </build> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 160 | <dependencies> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 161 | <dependency> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 162 | <groupId>org.onap.dcaegen2.services.prh</groupId> |
| 163 | <artifactId>prh-commons</artifactId> |
pwielebs | 0386c75 | 2018-12-17 09:49:00 +0100 | [diff] [blame] | 164 | <version>1.2.0-SNAPSHOT</version> |
wasala | 44ce56c | 2018-05-08 13:48:44 +0200 | [diff] [blame] | 165 | </dependency> |
Piotr Bocheński | 85e1d39 | 2018-11-30 18:03:17 +0100 | [diff] [blame] | 166 | <dependency> |
| 167 | <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId> |
| 168 | <artifactId>cbs-client</artifactId> |
| 169 | </dependency> |
micdzied | 19ff70f | 2018-12-03 11:01:37 +0100 | [diff] [blame] | 170 | <dependency> |
| 171 | <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId> |
| 172 | <artifactId>aai-client</artifactId> |
| 173 | </dependency> |
| 174 | <dependency> |
| 175 | <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId> |
| 176 | <artifactId>dmaap-client</artifactId> |
| 177 | </dependency> |
pwielebs | 0386c75 | 2018-12-17 09:49:00 +0100 | [diff] [blame] | 178 | <dependency> |
| 179 | <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId> |
| 180 | <artifactId>common-dependency</artifactId> |
| 181 | </dependency> |
pwielebs | a393ae3 | 2018-05-07 16:58:20 +0200 | [diff] [blame] | 182 | |
wasala | 961af3e | 2018-03-27 13:02:10 +0200 | [diff] [blame] | 183 | <dependency> |
micdzied | 8e8d8f7 | 2018-12-12 14:03:19 +0100 | [diff] [blame] | 184 | <groupId>org.springframework.boot</groupId> |
| 185 | <artifactId>spring-boot-starter-web</artifactId> |
wasala | 961af3e | 2018-03-27 13:02:10 +0200 | [diff] [blame] | 186 | </dependency> |
wasala | d8e4e88 | 2018-03-28 14:20:58 +0200 | [diff] [blame] | 187 | <dependency> |
micdzied | 8e8d8f7 | 2018-12-12 14:03:19 +0100 | [diff] [blame] | 188 | <groupId>org.springframework.boot</groupId> |
| 189 | <artifactId>spring-boot-starter-webflux</artifactId> |
wasala | d8e4e88 | 2018-03-28 14:20:58 +0200 | [diff] [blame] | 190 | </dependency> |
| 191 | <dependency> |
micdzied | 8e8d8f7 | 2018-12-12 14:03:19 +0100 | [diff] [blame] | 192 | <groupId>io.springfox</groupId> |
| 193 | <artifactId>springfox-swagger2</artifactId> |
wasala | d8e4e88 | 2018-03-28 14:20:58 +0200 | [diff] [blame] | 194 | </dependency> |
micdzied | 8e8d8f7 | 2018-12-12 14:03:19 +0100 | [diff] [blame] | 195 | <dependency> |
| 196 | <groupId>io.springfox</groupId> |
| 197 | <artifactId>springfox-swagger-ui</artifactId> |
| 198 | </dependency> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 199 | <dependency> |
wasala | 5fbcb63 | 2018-04-18 15:21:56 +0200 | [diff] [blame] | 200 | <groupId>io.projectreactor</groupId> |
micdzied | 8e8d8f7 | 2018-12-12 14:03:19 +0100 | [diff] [blame] | 201 | <artifactId>reactor-core</artifactId> |
wasala | 5fbcb63 | 2018-04-18 15:21:56 +0200 | [diff] [blame] | 202 | </dependency> |
| 203 | <dependency> |
micdzied | 8e8d8f7 | 2018-12-12 14:03:19 +0100 | [diff] [blame] | 204 | <groupId>org.apache.tomcat.embed</groupId> |
| 205 | <artifactId>tomcat-embed-core</artifactId> |
| 206 | </dependency> |
| 207 | <dependency> |
| 208 | <groupId>org.apache.tomcat.embed</groupId> |
| 209 | <artifactId>tomcat-embed-el</artifactId> |
| 210 | </dependency> |
| 211 | <dependency> |
| 212 | <groupId>org.apache.tomcat.embed</groupId> |
| 213 | <artifactId>tomcat-embed-websocket</artifactId> |
| 214 | </dependency> |
| 215 | |
| 216 | <dependency> |
wasala | 961af3e | 2018-03-27 13:02:10 +0200 | [diff] [blame] | 217 | <groupId>org.junit.jupiter</groupId> |
| 218 | <artifactId>junit-jupiter-engine</artifactId> |
| 219 | <scope>test</scope> |
| 220 | </dependency> |
| 221 | <dependency> |
wasala | 961af3e | 2018-03-27 13:02:10 +0200 | [diff] [blame] | 222 | <groupId>org.mockito</groupId> |
| 223 | <artifactId>mockito-core</artifactId> |
| 224 | <scope>test</scope> |
| 225 | </dependency> |
| 226 | <dependency> |
| 227 | <groupId>org.testng</groupId> |
| 228 | <artifactId>testng</artifactId> |
Piotr Bochenski | 3c2766d | 2018-08-31 11:49:21 +0200 | [diff] [blame] | 229 | <scope>test</scope> |
wasala | 86690cd | 2018-04-03 14:41:23 +0200 | [diff] [blame] | 230 | </dependency> |
wasala | 4a1457c | 2018-09-11 09:50:21 +0200 | [diff] [blame] | 231 | <dependency> |
| 232 | <groupId>org.assertj</groupId> |
| 233 | <artifactId>assertj-core</artifactId> |
Piotr Bocheński | 85e1d39 | 2018-11-30 18:03:17 +0100 | [diff] [blame] | 234 | <scope>test</scope> |
wasala | 4a1457c | 2018-09-11 09:50:21 +0200 | [diff] [blame] | 235 | </dependency> |
micdzied | 7e7aa0c | 2018-05-07 08:42:44 +0200 | [diff] [blame] | 236 | <dependency> |
micdzied | 8e8d8f7 | 2018-12-12 14:03:19 +0100 | [diff] [blame] | 237 | <groupId>org.springframework</groupId> |
| 238 | <artifactId>spring-test</artifactId> |
| 239 | <scope>test</scope> |
micdzied | 7e7aa0c | 2018-05-07 08:42:44 +0200 | [diff] [blame] | 240 | </dependency> |
| 241 | <dependency> |
micdzied | 8e8d8f7 | 2018-12-12 14:03:19 +0100 | [diff] [blame] | 242 | <groupId>io.projectreactor</groupId> |
| 243 | <artifactId>reactor-test</artifactId> |
| 244 | <scope>test</scope> |
| 245 | </dependency> |
| 246 | <dependency> |
| 247 | <groupId>org.glassfish.jersey.connectors</groupId> |
| 248 | <artifactId>jersey-apache-connector</artifactId> |
| 249 | <scope>test</scope> |
micdzied | 7e7aa0c | 2018-05-07 08:42:44 +0200 | [diff] [blame] | 250 | </dependency> |
wasala | b80bcb8 | 2018-03-26 15:48:46 +0200 | [diff] [blame] | 251 | </dependencies> |
Lusheng Ji | 6bb4aa2 | 2018-04-06 10:26:18 -0400 | [diff] [blame] | 252 | </project> |