blob: aaaf47b3a7c19703e1e628265e47b135ef405ea2 [file] [log] [blame]
wasalab80bcb82018-03-26 15:48:46 +02001<?xml version="1.0" encoding="UTF-8"?>
wasala9292dd22018-03-28 19:04:20 +02002<!--
3 ~ ============LICENSE_START=======================================================
4 ~ PNF-REGISTRATION-HANDLER
5 ~ ================================================================================
Maciej Malewski14011f92021-02-03 10:45:43 +01006 ~ Copyright (C) 2018-2021 NOKIA Intellectual Property. All rights reserved.
wasala9292dd22018-03-28 19:04:20 +02007 ~ ================================================================================
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=========================================================
Piotr Bocheński2ce68d32019-02-08 13:38:02 +010020-->
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020021<project xmlns="http://maven.apache.org/POM/4.0.0"
Piotr Bocheński2ce68d32019-02-08 13:38:02 +010022 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">
wasalab80bcb82018-03-26 15:48:46 +020024 <modelVersion>4.0.0</modelVersion>
25
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020026 <parent>
27 <groupId>org.onap.dcaegen2.services</groupId>
28 <artifactId>prh</artifactId>
pwielebsc0392ad2020-09-03 09:36:58 +020029 <version>1.5.5-SNAPSHOT</version>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020030 </parent>
31
wasala961af3e2018-03-27 13:02:10 +020032 <groupId>org.onap.dcaegen2.services.prh</groupId>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020033 <artifactId>prh-app-server</artifactId>
wasalab80bcb82018-03-26 15:48:46 +020034 <packaging>jar</packaging>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020035
wasala112044f2018-03-28 20:08:54 +020036 <properties>
37 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
Piotr Bocheński05fd72a2019-01-23 15:01:00 +010038
39 <prh.main.class>org.onap.dcaegen2.services.prh.MainApp</prh.main.class>
pwielebsb32fb6d2019-07-15 17:25:26 +020040 <classpath.separator>@@</classpath.separator>
41 <dep.dir.name>libs</dep.dir.name>
42 <ext.dep.dir.path>${dep.dir.name}/external</ext.dep.dir.path>
43 <int.dep.dir.path>${dep.dir.name}/internal</int.dep.dir.path>
Piotr Bochenski84a69822019-06-18 12:03:42 +020044
pwielebsb32fb6d2019-07-15 17:25:26 +020045 <skipDocker>false</skipDocker>
Piotr Bochenski84a69822019-06-18 12:03:42 +020046 <docker.user.name>prh</docker.user.name>
47 <docker.user.dir>/home/${docker.user.name}</docker.user.dir>
mharazinb8d80b12020-01-15 15:37:31 +010048 <docker.user.id>1414</docker.user.id>
wasala112044f2018-03-28 20:08:54 +020049 </properties>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020050
wasalab80bcb82018-03-26 15:48:46 +020051 <build>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020052 <resources>
53 <resource>
pwielebsbe312722018-09-04 09:50:05 +020054 <directory>src/main/resources</directory>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020055 </resource>
56 </resources>
57
wasalab80bcb82018-03-26 15:48:46 +020058 <plugins>
59 <plugin>
Piotr Bocheński2ce68d32019-02-08 13:38:02 +010060 <groupId>pl.project13.maven</groupId>
61 <artifactId>git-commit-id-plugin</artifactId>
62 <configuration>
63 <dateFormat>${maven.build.timestamp.format}</dateFormat>
64 <generateGitPropertiesFile>true</generateGitPropertiesFile>
65 <format>json</format>
66 <generateGitPropertiesFilename>${project.build.outputDirectory}/git_info.json</generateGitPropertiesFilename>
67 </configuration>
68 <executions>
69 <execution>
70 <id>get-git-info</id>
71 <goals>
72 <goal>revision</goal>
73 </goals>
74 </execution>
75 </executions>
76 </plugin>
pwielebsb32fb6d2019-07-15 17:25:26 +020077
78 <plugin>
79 <groupId>org.apache.maven.plugins</groupId>
80 <artifactId>maven-dependency-plugin</artifactId>
81 <configuration>
82 <silent>true</silent>
83 <includeScope>runtime</includeScope>
84 <pathSeparator>${classpath.separator}</pathSeparator>
85 </configuration>
86 <executions>
87 <execution>
88 <id>copy-external-dependencies</id>
89 <phase>prepare-package</phase>
90 <goals>
91 <goal>copy-dependencies</goal>
92 <goal>build-classpath</goal>
93 </goals>
94 <configuration>
95 <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
96 <outputDirectory>${project.build.directory}/${ext.dep.dir.path}</outputDirectory>
97 <prefix>./${ext.dep.dir.path}</prefix>
98 <outputProperty>classpath.external</outputProperty>
99 </configuration>
100 </execution>
101 <execution>
102 <id>copy-internal-dependencies</id>
103 <phase>prepare-package</phase>
104 <goals>
105 <goal>copy-dependencies</goal>
106 <goal>build-classpath</goal>
107 </goals>
108 <configuration>
109 <includeGroupIds>${project.parent.groupId}</includeGroupIds>
110 <outputDirectory>${project.build.directory}/${int.dep.dir.path}</outputDirectory>
111 <prefix>./${int.dep.dir.path}</prefix>
112 <outputProperty>classpath.internal</outputProperty>
113 </configuration>
114 </execution>
115 </executions>
116 </plugin>
117
118 <plugin> <!-- workaround for MDEP-541 -->
119 <groupId>org.codehaus.mojo</groupId>
120 <artifactId>build-helper-maven-plugin</artifactId>
121 <executions>
122 <execution>
123 <id>fix-classpath-separator</id>
124 <phase>prepare-package</phase>
125 <goals>
126 <goal>regex-properties</goal>
127 </goals>
128 <configuration>
129 <regexPropertySettings>
130 <regexPropertySetting>
131 <name>classpath.external</name>
132 <value>${classpath.external}</value>
133 <regex>${classpath.separator}</regex>
134 <replacement xml:space="preserve"> </replacement>
135 </regexPropertySetting>
136 <regexPropertySetting>
137 <name>classpath.internal</name>
138 <value>${classpath.internal}</value>
139 <regex>${classpath.separator}</regex>
140 <replacement xml:space="preserve"> </replacement>
141 </regexPropertySetting>
142 </regexPropertySettings>
143 </configuration>
144 </execution>
145 </executions>
146 </plugin>
147
Piotr Bocheński2ce68d32019-02-08 13:38:02 +0100148 <plugin>
Piotr Bocheński05fd72a2019-01-23 15:01:00 +0100149 <groupId>org.apache.maven.plugins</groupId>
150 <artifactId>maven-jar-plugin</artifactId>
wasalad8e4e882018-03-28 14:20:58 +0200151 <configuration>
Piotr Bocheński05fd72a2019-01-23 15:01:00 +0100152 <archive>
Piotr Bocheński2ce68d32019-02-08 13:38:02 +0100153 <manifest>
Piotr Bocheński2ce68d32019-02-08 13:38:02 +0100154 <mainClass>${prh.main.class}</mainClass>
155 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
pwielebsb32fb6d2019-07-15 17:25:26 +0200156 <addBuildEnvironmentEntries>true</addBuildEnvironmentEntries>
157 <useUniqueVersions>false</useUniqueVersions> <!-- workaround for MJAR-156 -->
Piotr Bocheński2ce68d32019-02-08 13:38:02 +0100158 </manifest>
Piotr Bocheński05fd72a2019-01-23 15:01:00 +0100159 <manifestEntries>
pwielebsb32fb6d2019-07-15 17:25:26 +0200160 <Class-Path>${classpath.external} ${classpath.internal}</Class-Path>
161 <Git-Branch>${git.branch}</Git-Branch>
162 <Git-Build-Host>${git.build.host}</Git-Build-Host>
163 <Git-Build-Time>${git.build.time}</Git-Build-Time>
164 <Git-Build-User-Email>${git.build.user.email}</Git-Build-User-Email>
165 <Git-Build-User-Name>${git.build.user.name}</Git-Build-User-Name>
166 <Git-Build-Version>${git.build.version}</Git-Build-Version>
167 <Git-Closest-Tag-Name>${git.closest.tag.name}</Git-Closest-Tag-Name>
168 <Git-Commit-Id>${git.commit.id}</Git-Commit-Id>
169 <Git-Commit-Message-Short>${git.commit.message.short}</Git-Commit-Message-Short>
170 <Git-Commit-Time>${git.commit.time}</Git-Commit-Time>
171 <Git-Commit-User-Email>${git.commit.user.email}</Git-Commit-User-Email>
172 <Git-Commit-User-Name>${git.commit.user.name}</Git-Commit-User-Name>
Piotr Bocheński05fd72a2019-01-23 15:01:00 +0100173 </manifestEntries>
174 </archive>
wasalad8e4e882018-03-28 14:20:58 +0200175 </configuration>
wasalab80bcb82018-03-26 15:48:46 +0200176 </plugin>
pwielebsb32fb6d2019-07-15 17:25:26 +0200177
wasala112044f2018-03-28 20:08:54 +0200178 <plugin>
pwielebsb32fb6d2019-07-15 17:25:26 +0200179 <groupId>io.fabric8</groupId>
wasala112044f2018-03-28 20:08:54 +0200180 <artifactId>docker-maven-plugin</artifactId>
wasala112044f2018-03-28 20:08:54 +0200181 <configuration>
kjaniakbb1f25d2019-09-10 09:14:31 +0200182 <verbose>true</verbose>
183 <imagePullPolicy>IfNotPresent</imagePullPolicy>
pwielebsb32fb6d2019-07-15 17:25:26 +0200184 <images>
185 <image>
Vijay Venkatesh Kumar7231ec82019-07-21 01:34:38 +0000186 <name>onap/${project.groupId}.${project.artifactId}</name>
pwielebsb32fb6d2019-07-15 17:25:26 +0200187 <registry>${onap.nexus.dockerregistry.daily}</registry>
188 <build>
189 <contextDir>${project.basedir}</contextDir>
190 <cleanup>none</cleanup>
191 <tags>
192 <tag>latest</tag>
193 <tag>${project.version}</tag>
194 <tag>${project.version}-${maven.build.timestamp}Z</tag>
195 </tags>
196 </build>
197 </image>
198 </images>
wasala86690cd2018-04-03 14:41:23 +0200199 </configuration>
wasalaa684d472018-06-19 09:27:20 +0200200 </plugin>
wasalab80bcb82018-03-26 15:48:46 +0200201 </plugins>
202 </build>
Piotr Bocheński2ce68d32019-02-08 13:38:02 +0100203
Piotr Bochenski3c2766d2018-08-31 11:49:21 +0200204 <dependencies>
wasalab80bcb82018-03-26 15:48:46 +0200205 <dependency>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +0200206 <groupId>org.onap.dcaegen2.services.prh</groupId>
207 <artifactId>prh-commons</artifactId>
Piotr Jaszczyk3d20b252019-05-06 12:26:34 +0200208 <version>${project.version}</version>
wasala44ce56c2018-05-08 13:48:44 +0200209 </dependency>
Piotr Bocheński85e1d392018-11-30 18:03:17 +0100210 <dependency>
211 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
212 <artifactId>cbs-client</artifactId>
213 </dependency>
micdzied19ff70f2018-12-03 11:01:37 +0100214 <dependency>
215 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
micdzied19ff70f2018-12-03 11:01:37 +0100216 <artifactId>dmaap-client</artifactId>
217 </dependency>
pwielebsa393ae32018-05-07 16:58:20 +0200218
wasala961af3e2018-03-27 13:02:10 +0200219 <dependency>
grabinsk4117c9f2019-06-04 15:18:44 +0200220 <groupId>org.springframework.cloud</groupId>
221 <artifactId>spring-cloud-starter-config</artifactId>
222 </dependency>
223 <dependency>
Maciej Malewski14011f92021-02-03 10:45:43 +0100224 <groupId>org.springframework.cloud</groupId>
225 <artifactId>spring-cloud-starter-bootstrap</artifactId>
226 </dependency>
227 <dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100228 <groupId>org.springframework.boot</groupId>
229 <artifactId>spring-boot-starter-web</artifactId>
wasala961af3e2018-03-27 13:02:10 +0200230 </dependency>
wasalad8e4e882018-03-28 14:20:58 +0200231 <dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100232 <groupId>org.springframework.boot</groupId>
233 <artifactId>spring-boot-starter-webflux</artifactId>
wasalad8e4e882018-03-28 14:20:58 +0200234 </dependency>
235 <dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100236 <groupId>io.springfox</groupId>
deen1985ee146f32020-08-05 17:54:22 +0200237 <artifactId>springfox-boot-starter</artifactId>
micdzied8e8d8f72018-12-12 14:03:19 +0100238 </dependency>
wasalab80bcb82018-03-26 15:48:46 +0200239 <dependency>
wasala5fbcb632018-04-18 15:21:56 +0200240 <groupId>io.projectreactor</groupId>
micdzied8e8d8f72018-12-12 14:03:19 +0100241 <artifactId>reactor-core</artifactId>
wasala5fbcb632018-04-18 15:21:56 +0200242 </dependency>
243 <dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100244 <groupId>org.apache.tomcat.embed</groupId>
245 <artifactId>tomcat-embed-core</artifactId>
246 </dependency>
247 <dependency>
248 <groupId>org.apache.tomcat.embed</groupId>
249 <artifactId>tomcat-embed-el</artifactId>
250 </dependency>
251 <dependency>
252 <groupId>org.apache.tomcat.embed</groupId>
253 <artifactId>tomcat-embed-websocket</artifactId>
254 </dependency>
255
256 <dependency>
grabinsk526dfb02019-06-04 15:37:52 +0200257 <groupId>org.springframework.boot</groupId>
grabinsk4117c9f2019-06-04 15:18:44 +0200258 <artifactId>spring-boot-configuration-processor</artifactId>
259 <optional>true</optional>
260 </dependency>
grabinsk4117c9f2019-06-04 15:18:44 +0200261 <dependency>
262 <groupId>org.springframework.boot</groupId>
grabinsk526dfb02019-06-04 15:37:52 +0200263 <artifactId>spring-boot-starter-actuator</artifactId>
264 </dependency>
deen1985ee146f32020-08-05 17:54:22 +0200265
266 <dependency>
267 <groupId>com.google.guava</groupId>
268 <artifactId>guava</artifactId>
269 </dependency>
grabinsk526dfb02019-06-04 15:37:52 +0200270
271 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200272 <groupId>org.junit.jupiter</groupId>
273 <artifactId>junit-jupiter-engine</artifactId>
274 <scope>test</scope>
275 </dependency>
276 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200277 <groupId>org.mockito</groupId>
grabinskc0d1ad42019-05-30 14:43:14 +0200278 <artifactId>mockito-junit-jupiter</artifactId>
wasala961af3e2018-03-27 13:02:10 +0200279 <scope>test</scope>
280 </dependency>
281 <dependency>
wasala4a1457c2018-09-11 09:50:21 +0200282 <groupId>org.assertj</groupId>
283 <artifactId>assertj-core</artifactId>
Piotr Bocheński85e1d392018-11-30 18:03:17 +0100284 <scope>test</scope>
wasala4a1457c2018-09-11 09:50:21 +0200285 </dependency>
micdzied7e7aa0c2018-05-07 08:42:44 +0200286 <dependency>
grabinsk6ae123a2019-05-29 15:06:10 +0200287 <groupId>org.springframework.boot</groupId>
288 <artifactId>spring-boot-starter-test</artifactId>
micdzied8e8d8f72018-12-12 14:03:19 +0100289 <scope>test</scope>
grabinsk6ae123a2019-05-29 15:06:10 +0200290 <exclusions>
291 <exclusion>
292 <groupId>junit</groupId>
293 <artifactId>junit</artifactId>
294 </exclusion>
295 </exclusions>
micdzied7e7aa0c2018-05-07 08:42:44 +0200296 </dependency>
297 <dependency>
grabinsk48589752019-07-09 09:56:58 +0200298 <groupId>org.springframework.cloud</groupId>
299 <artifactId>spring-cloud-contract-wiremock</artifactId>
300 <scope>test</scope>
301 <exclusions>
302 <exclusion>
303 <groupId>junit</groupId>
304 <artifactId>junit</artifactId>
305 </exclusion>
306 </exclusions>
307 </dependency>
308 <dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100309 <groupId>io.projectreactor</groupId>
310 <artifactId>reactor-test</artifactId>
311 <scope>test</scope>
312 </dependency>
313 <dependency>
314 <groupId>org.glassfish.jersey.connectors</groupId>
315 <artifactId>jersey-apache-connector</artifactId>
316 <scope>test</scope>
micdzied7e7aa0c2018-05-07 08:42:44 +0200317 </dependency>
wasalab80bcb82018-03-26 15:48:46 +0200318 </dependencies>
Lusheng Ji6bb4aa22018-04-06 10:26:18 -0400319</project>