blob: e92515bed5104d7182c6d41db8ef0fec96f6e59b [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 ~ ================================================================================
Joanna Jeremicz992e0702022-02-11 13:48:25 +01006 ~ Copyright (C) 2018-2022 NOKIA Intellectual Property. All rights reserved.
Alexander Mazurukbc8f2ec2021-02-18 17:25:57 +01007 ~ Copyright (C) 2021 Samsung Electronics. All rights reserved.
wasala9292dd22018-03-28 19:04:20 +02008 ~ ================================================================================
9 ~ Licensed under the Apache License, Version 2.0 (the "License");
10 ~ you may not use this file except in compliance with the License.
11 ~ You may obtain a copy of the License at
12 ~
13 ~ http://www.apache.org/licenses/LICENSE-2.0
14 ~
15 ~ Unless required by applicable law or agreed to in writing, software
16 ~ distributed under the License is distributed on an "AS IS" BASIS,
17 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 ~ See the License for the specific language governing permissions and
19 ~ limitations under the License.
20 ~ ============LICENSE_END=========================================================
Piotr Bocheński2ce68d32019-02-08 13:38:02 +010021-->
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020022<project xmlns="http://maven.apache.org/POM/4.0.0"
Piotr Bocheński2ce68d32019-02-08 13:38:02 +010023 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">
wasalab80bcb82018-03-26 15:48:46 +020025 <modelVersion>4.0.0</modelVersion>
26
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020027 <parent>
28 <groupId>org.onap.dcaegen2.services</groupId>
29 <artifactId>prh</artifactId>
Joanna Jeremicz992e0702022-02-11 13:48:25 +010030 <version>1.8.0-SNAPSHOT</version>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020031 </parent>
32
wasala961af3e2018-03-27 13:02:10 +020033 <groupId>org.onap.dcaegen2.services.prh</groupId>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020034 <artifactId>prh-app-server</artifactId>
wasalab80bcb82018-03-26 15:48:46 +020035 <packaging>jar</packaging>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020036
wasala112044f2018-03-28 20:08:54 +020037 <properties>
38 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
Piotr Bocheński05fd72a2019-01-23 15:01:00 +010039
40 <prh.main.class>org.onap.dcaegen2.services.prh.MainApp</prh.main.class>
pwielebsb32fb6d2019-07-15 17:25:26 +020041 <classpath.separator>@@</classpath.separator>
42 <dep.dir.name>libs</dep.dir.name>
43 <ext.dep.dir.path>${dep.dir.name}/external</ext.dep.dir.path>
44 <int.dep.dir.path>${dep.dir.name}/internal</int.dep.dir.path>
Piotr Bochenski84a69822019-06-18 12:03:42 +020045
pwielebsb32fb6d2019-07-15 17:25:26 +020046 <skipDocker>false</skipDocker>
Piotr Bochenski84a69822019-06-18 12:03:42 +020047 <docker.user.name>prh</docker.user.name>
48 <docker.user.dir>/home/${docker.user.name}</docker.user.dir>
mharazinb8d80b12020-01-15 15:37:31 +010049 <docker.user.id>1414</docker.user.id>
wasala112044f2018-03-28 20:08:54 +020050 </properties>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020051
wasalab80bcb82018-03-26 15:48:46 +020052 <build>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020053 <resources>
54 <resource>
pwielebsbe312722018-09-04 09:50:05 +020055 <directory>src/main/resources</directory>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020056 </resource>
57 </resources>
58
wasalab80bcb82018-03-26 15:48:46 +020059 <plugins>
60 <plugin>
Piotr Bocheński2ce68d32019-02-08 13:38:02 +010061 <groupId>pl.project13.maven</groupId>
62 <artifactId>git-commit-id-plugin</artifactId>
63 <configuration>
64 <dateFormat>${maven.build.timestamp.format}</dateFormat>
65 <generateGitPropertiesFile>true</generateGitPropertiesFile>
66 <format>json</format>
67 <generateGitPropertiesFilename>${project.build.outputDirectory}/git_info.json</generateGitPropertiesFilename>
68 </configuration>
69 <executions>
70 <execution>
71 <id>get-git-info</id>
72 <goals>
73 <goal>revision</goal>
74 </goals>
75 </execution>
76 </executions>
77 </plugin>
pwielebsb32fb6d2019-07-15 17:25:26 +020078
79 <plugin>
80 <groupId>org.apache.maven.plugins</groupId>
81 <artifactId>maven-dependency-plugin</artifactId>
82 <configuration>
83 <silent>true</silent>
84 <includeScope>runtime</includeScope>
85 <pathSeparator>${classpath.separator}</pathSeparator>
86 </configuration>
87 <executions>
88 <execution>
89 <id>copy-external-dependencies</id>
90 <phase>prepare-package</phase>
91 <goals>
92 <goal>copy-dependencies</goal>
93 <goal>build-classpath</goal>
94 </goals>
95 <configuration>
96 <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
97 <outputDirectory>${project.build.directory}/${ext.dep.dir.path}</outputDirectory>
98 <prefix>./${ext.dep.dir.path}</prefix>
99 <outputProperty>classpath.external</outputProperty>
100 </configuration>
101 </execution>
102 <execution>
103 <id>copy-internal-dependencies</id>
104 <phase>prepare-package</phase>
105 <goals>
106 <goal>copy-dependencies</goal>
107 <goal>build-classpath</goal>
108 </goals>
109 <configuration>
110 <includeGroupIds>${project.parent.groupId}</includeGroupIds>
111 <outputDirectory>${project.build.directory}/${int.dep.dir.path}</outputDirectory>
112 <prefix>./${int.dep.dir.path}</prefix>
113 <outputProperty>classpath.internal</outputProperty>
114 </configuration>
115 </execution>
116 </executions>
117 </plugin>
118
119 <plugin> <!-- workaround for MDEP-541 -->
120 <groupId>org.codehaus.mojo</groupId>
121 <artifactId>build-helper-maven-plugin</artifactId>
122 <executions>
123 <execution>
124 <id>fix-classpath-separator</id>
125 <phase>prepare-package</phase>
126 <goals>
127 <goal>regex-properties</goal>
128 </goals>
129 <configuration>
130 <regexPropertySettings>
131 <regexPropertySetting>
132 <name>classpath.external</name>
133 <value>${classpath.external}</value>
134 <regex>${classpath.separator}</regex>
135 <replacement xml:space="preserve"> </replacement>
136 </regexPropertySetting>
137 <regexPropertySetting>
138 <name>classpath.internal</name>
139 <value>${classpath.internal}</value>
140 <regex>${classpath.separator}</regex>
141 <replacement xml:space="preserve"> </replacement>
142 </regexPropertySetting>
143 </regexPropertySettings>
144 </configuration>
145 </execution>
146 </executions>
147 </plugin>
148
Piotr Bocheński2ce68d32019-02-08 13:38:02 +0100149 <plugin>
Piotr Bocheński05fd72a2019-01-23 15:01:00 +0100150 <groupId>org.apache.maven.plugins</groupId>
151 <artifactId>maven-jar-plugin</artifactId>
wasalad8e4e882018-03-28 14:20:58 +0200152 <configuration>
Piotr Bocheński05fd72a2019-01-23 15:01:00 +0100153 <archive>
Piotr Bocheński2ce68d32019-02-08 13:38:02 +0100154 <manifest>
Piotr Bocheński2ce68d32019-02-08 13:38:02 +0100155 <mainClass>${prh.main.class}</mainClass>
156 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
pwielebsb32fb6d2019-07-15 17:25:26 +0200157 <addBuildEnvironmentEntries>true</addBuildEnvironmentEntries>
158 <useUniqueVersions>false</useUniqueVersions> <!-- workaround for MJAR-156 -->
Piotr Bocheński2ce68d32019-02-08 13:38:02 +0100159 </manifest>
Piotr Bocheński05fd72a2019-01-23 15:01:00 +0100160 <manifestEntries>
pwielebsb32fb6d2019-07-15 17:25:26 +0200161 <Class-Path>${classpath.external} ${classpath.internal}</Class-Path>
162 <Git-Branch>${git.branch}</Git-Branch>
163 <Git-Build-Host>${git.build.host}</Git-Build-Host>
164 <Git-Build-Time>${git.build.time}</Git-Build-Time>
165 <Git-Build-User-Email>${git.build.user.email}</Git-Build-User-Email>
166 <Git-Build-User-Name>${git.build.user.name}</Git-Build-User-Name>
167 <Git-Build-Version>${git.build.version}</Git-Build-Version>
168 <Git-Closest-Tag-Name>${git.closest.tag.name}</Git-Closest-Tag-Name>
169 <Git-Commit-Id>${git.commit.id}</Git-Commit-Id>
170 <Git-Commit-Message-Short>${git.commit.message.short}</Git-Commit-Message-Short>
171 <Git-Commit-Time>${git.commit.time}</Git-Commit-Time>
172 <Git-Commit-User-Email>${git.commit.user.email}</Git-Commit-User-Email>
173 <Git-Commit-User-Name>${git.commit.user.name}</Git-Commit-User-Name>
Piotr Bocheński05fd72a2019-01-23 15:01:00 +0100174 </manifestEntries>
175 </archive>
wasalad8e4e882018-03-28 14:20:58 +0200176 </configuration>
wasalab80bcb82018-03-26 15:48:46 +0200177 </plugin>
pwielebsb32fb6d2019-07-15 17:25:26 +0200178
wasala112044f2018-03-28 20:08:54 +0200179 <plugin>
pwielebsb32fb6d2019-07-15 17:25:26 +0200180 <groupId>io.fabric8</groupId>
wasala112044f2018-03-28 20:08:54 +0200181 <artifactId>docker-maven-plugin</artifactId>
wasala112044f2018-03-28 20:08:54 +0200182 <configuration>
kjaniakbb1f25d2019-09-10 09:14:31 +0200183 <verbose>true</verbose>
184 <imagePullPolicy>IfNotPresent</imagePullPolicy>
pwielebsb32fb6d2019-07-15 17:25:26 +0200185 <images>
186 <image>
Vijay Venkatesh Kumar7231ec82019-07-21 01:34:38 +0000187 <name>onap/${project.groupId}.${project.artifactId}</name>
pwielebsb32fb6d2019-07-15 17:25:26 +0200188 <registry>${onap.nexus.dockerregistry.daily}</registry>
189 <build>
190 <contextDir>${project.basedir}</contextDir>
191 <cleanup>none</cleanup>
192 <tags>
193 <tag>latest</tag>
194 <tag>${project.version}</tag>
195 <tag>${project.version}-${maven.build.timestamp}Z</tag>
196 </tags>
197 </build>
198 </image>
199 </images>
wasala86690cd2018-04-03 14:41:23 +0200200 </configuration>
wasalaa684d472018-06-19 09:27:20 +0200201 </plugin>
wasalab80bcb82018-03-26 15:48:46 +0200202 </plugins>
203 </build>
Piotr Bocheński2ce68d32019-02-08 13:38:02 +0100204
Piotr Bochenski3c2766d2018-08-31 11:49:21 +0200205 <dependencies>
wasalab80bcb82018-03-26 15:48:46 +0200206 <dependency>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +0200207 <groupId>org.onap.dcaegen2.services.prh</groupId>
208 <artifactId>prh-commons</artifactId>
Piotr Jaszczyk3d20b252019-05-06 12:26:34 +0200209 <version>${project.version}</version>
wasala44ce56c2018-05-08 13:48:44 +0200210 </dependency>
Piotr Bocheński85e1d392018-11-30 18:03:17 +0100211 <dependency>
212 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
213 <artifactId>cbs-client</artifactId>
214 </dependency>
micdzied19ff70f2018-12-03 11:01:37 +0100215 <dependency>
216 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
micdzied19ff70f2018-12-03 11:01:37 +0100217 <artifactId>dmaap-client</artifactId>
218 </dependency>
pwielebsa393ae32018-05-07 16:58:20 +0200219
wasala961af3e2018-03-27 13:02:10 +0200220 <dependency>
grabinsk4117c9f2019-06-04 15:18:44 +0200221 <groupId>org.springframework.cloud</groupId>
222 <artifactId>spring-cloud-starter-config</artifactId>
223 </dependency>
224 <dependency>
Maciej Malewski14011f92021-02-03 10:45:43 +0100225 <groupId>org.springframework.cloud</groupId>
226 <artifactId>spring-cloud-starter-bootstrap</artifactId>
227 </dependency>
228 <dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100229 <groupId>org.springframework.boot</groupId>
230 <artifactId>spring-boot-starter-web</artifactId>
wasala961af3e2018-03-27 13:02:10 +0200231 </dependency>
wasalad8e4e882018-03-28 14:20:58 +0200232 <dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100233 <groupId>org.springframework.boot</groupId>
234 <artifactId>spring-boot-starter-webflux</artifactId>
wasalad8e4e882018-03-28 14:20:58 +0200235 </dependency>
236 <dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100237 <groupId>io.springfox</groupId>
deen1985ee146f32020-08-05 17:54:22 +0200238 <artifactId>springfox-boot-starter</artifactId>
micdzied8e8d8f72018-12-12 14:03:19 +0100239 </dependency>
wasalab80bcb82018-03-26 15:48:46 +0200240 <dependency>
wasala5fbcb632018-04-18 15:21:56 +0200241 <groupId>io.projectreactor</groupId>
micdzied8e8d8f72018-12-12 14:03:19 +0100242 <artifactId>reactor-core</artifactId>
wasala5fbcb632018-04-18 15:21:56 +0200243 </dependency>
244 <dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100245 <groupId>org.apache.tomcat.embed</groupId>
246 <artifactId>tomcat-embed-core</artifactId>
247 </dependency>
248 <dependency>
249 <groupId>org.apache.tomcat.embed</groupId>
250 <artifactId>tomcat-embed-el</artifactId>
251 </dependency>
252 <dependency>
253 <groupId>org.apache.tomcat.embed</groupId>
254 <artifactId>tomcat-embed-websocket</artifactId>
255 </dependency>
256
257 <dependency>
grabinsk526dfb02019-06-04 15:37:52 +0200258 <groupId>org.springframework.boot</groupId>
grabinsk4117c9f2019-06-04 15:18:44 +0200259 <artifactId>spring-boot-configuration-processor</artifactId>
260 <optional>true</optional>
261 </dependency>
grabinsk4117c9f2019-06-04 15:18:44 +0200262 <dependency>
263 <groupId>org.springframework.boot</groupId>
grabinsk526dfb02019-06-04 15:37:52 +0200264 <artifactId>spring-boot-starter-actuator</artifactId>
265 </dependency>
deen1985ee146f32020-08-05 17:54:22 +0200266
267 <dependency>
268 <groupId>com.google.guava</groupId>
269 <artifactId>guava</artifactId>
270 </dependency>
grabinsk526dfb02019-06-04 15:37:52 +0200271
272 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200273 <groupId>org.junit.jupiter</groupId>
274 <artifactId>junit-jupiter-engine</artifactId>
275 <scope>test</scope>
276 </dependency>
277 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200278 <groupId>org.mockito</groupId>
grabinskc0d1ad42019-05-30 14:43:14 +0200279 <artifactId>mockito-junit-jupiter</artifactId>
wasala961af3e2018-03-27 13:02:10 +0200280 <scope>test</scope>
281 </dependency>
282 <dependency>
wasala4a1457c2018-09-11 09:50:21 +0200283 <groupId>org.assertj</groupId>
284 <artifactId>assertj-core</artifactId>
Piotr Bocheński85e1d392018-11-30 18:03:17 +0100285 <scope>test</scope>
wasala4a1457c2018-09-11 09:50:21 +0200286 </dependency>
micdzied7e7aa0c2018-05-07 08:42:44 +0200287 <dependency>
grabinsk6ae123a2019-05-29 15:06:10 +0200288 <groupId>org.springframework.boot</groupId>
289 <artifactId>spring-boot-starter-test</artifactId>
micdzied8e8d8f72018-12-12 14:03:19 +0100290 <scope>test</scope>
grabinsk6ae123a2019-05-29 15:06:10 +0200291 <exclusions>
292 <exclusion>
293 <groupId>junit</groupId>
294 <artifactId>junit</artifactId>
295 </exclusion>
296 </exclusions>
micdzied7e7aa0c2018-05-07 08:42:44 +0200297 </dependency>
298 <dependency>
grabinsk48589752019-07-09 09:56:58 +0200299 <groupId>org.springframework.cloud</groupId>
300 <artifactId>spring-cloud-contract-wiremock</artifactId>
301 <scope>test</scope>
302 <exclusions>
303 <exclusion>
304 <groupId>junit</groupId>
305 <artifactId>junit</artifactId>
306 </exclusion>
307 </exclusions>
308 </dependency>
309 <dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100310 <groupId>io.projectreactor</groupId>
311 <artifactId>reactor-test</artifactId>
312 <scope>test</scope>
313 </dependency>
314 <dependency>
315 <groupId>org.glassfish.jersey.connectors</groupId>
316 <artifactId>jersey-apache-connector</artifactId>
317 <scope>test</scope>
micdzied7e7aa0c2018-05-07 08:42:44 +0200318 </dependency>
wasalab80bcb82018-03-26 15:48:46 +0200319 </dependencies>
Lusheng Ji6bb4aa22018-04-06 10:26:18 -0400320</project>