blob: d1de266628ab7763cffbbd4850cff3164ed15cfe [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 ~ ================================================================================
Piotr Bocheński2ce68d32019-02-08 13:38:02 +01006 ~ Copyright (C) 2018-2019 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>
Joanna Jeremicz174e3c82020-03-06 13:16:31 +010029 <version>1.5.3-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>
Vijay Venkatesh Kumar488ad0f2019-09-10 05:24:39 +0000200<!-- <executions>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +0200201 <execution>
pwielebsb32fb6d2019-07-15 17:25:26 +0200202 <id>docker-build-image</id>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +0200203 <phase>package</phase>
204 <goals>
205 <goal>build</goal>
206 </goals>
207 </execution>
208 <execution>
pwielebsb32fb6d2019-07-15 17:25:26 +0200209 <id>docker-push-image</id>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +0200210 <phase>deploy</phase>
211 <goals>
pwielebsb32fb6d2019-07-15 17:25:26 +0200212 <goal>push</goal>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +0200213 </goals>
Vijay Venkatesh Kumar488ad0f2019-09-10 05:24:39 +0000214 </execution>
215 </executions> -->
wasalaa684d472018-06-19 09:27:20 +0200216 </plugin>
wasalab80bcb82018-03-26 15:48:46 +0200217 </plugins>
218 </build>
Piotr Bocheński2ce68d32019-02-08 13:38:02 +0100219
Piotr Bochenski3c2766d2018-08-31 11:49:21 +0200220 <dependencies>
wasalab80bcb82018-03-26 15:48:46 +0200221 <dependency>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +0200222 <groupId>org.onap.dcaegen2.services.prh</groupId>
223 <artifactId>prh-commons</artifactId>
Piotr Jaszczyk3d20b252019-05-06 12:26:34 +0200224 <version>${project.version}</version>
wasala44ce56c2018-05-08 13:48:44 +0200225 </dependency>
Piotr Bocheński85e1d392018-11-30 18:03:17 +0100226 <dependency>
227 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
228 <artifactId>cbs-client</artifactId>
229 </dependency>
micdzied19ff70f2018-12-03 11:01:37 +0100230 <dependency>
231 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
micdzied19ff70f2018-12-03 11:01:37 +0100232 <artifactId>dmaap-client</artifactId>
233 </dependency>
pwielebsa393ae32018-05-07 16:58:20 +0200234
wasala961af3e2018-03-27 13:02:10 +0200235 <dependency>
grabinsk4117c9f2019-06-04 15:18:44 +0200236 <groupId>org.springframework.cloud</groupId>
237 <artifactId>spring-cloud-starter-config</artifactId>
238 </dependency>
239 <dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100240 <groupId>org.springframework.boot</groupId>
241 <artifactId>spring-boot-starter-web</artifactId>
wasala961af3e2018-03-27 13:02:10 +0200242 </dependency>
wasalad8e4e882018-03-28 14:20:58 +0200243 <dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100244 <groupId>org.springframework.boot</groupId>
245 <artifactId>spring-boot-starter-webflux</artifactId>
wasalad8e4e882018-03-28 14:20:58 +0200246 </dependency>
247 <dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100248 <groupId>io.springfox</groupId>
249 <artifactId>springfox-swagger2</artifactId>
wasalad8e4e882018-03-28 14:20:58 +0200250 </dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100251 <dependency>
252 <groupId>io.springfox</groupId>
253 <artifactId>springfox-swagger-ui</artifactId>
254 </dependency>
wasalab80bcb82018-03-26 15:48:46 +0200255 <dependency>
wasala5fbcb632018-04-18 15:21:56 +0200256 <groupId>io.projectreactor</groupId>
micdzied8e8d8f72018-12-12 14:03:19 +0100257 <artifactId>reactor-core</artifactId>
wasala5fbcb632018-04-18 15:21:56 +0200258 </dependency>
259 <dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100260 <groupId>org.apache.tomcat.embed</groupId>
261 <artifactId>tomcat-embed-core</artifactId>
262 </dependency>
263 <dependency>
264 <groupId>org.apache.tomcat.embed</groupId>
265 <artifactId>tomcat-embed-el</artifactId>
266 </dependency>
267 <dependency>
268 <groupId>org.apache.tomcat.embed</groupId>
269 <artifactId>tomcat-embed-websocket</artifactId>
270 </dependency>
271
272 <dependency>
grabinsk526dfb02019-06-04 15:37:52 +0200273 <groupId>org.springframework.boot</groupId>
grabinsk4117c9f2019-06-04 15:18:44 +0200274 <artifactId>spring-boot-configuration-processor</artifactId>
275 <optional>true</optional>
276 </dependency>
grabinsk4117c9f2019-06-04 15:18:44 +0200277 <dependency>
278 <groupId>org.springframework.boot</groupId>
grabinsk526dfb02019-06-04 15:37:52 +0200279 <artifactId>spring-boot-starter-actuator</artifactId>
280 </dependency>
281
282 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200283 <groupId>org.junit.jupiter</groupId>
284 <artifactId>junit-jupiter-engine</artifactId>
285 <scope>test</scope>
286 </dependency>
287 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200288 <groupId>org.mockito</groupId>
grabinskc0d1ad42019-05-30 14:43:14 +0200289 <artifactId>mockito-junit-jupiter</artifactId>
wasala961af3e2018-03-27 13:02:10 +0200290 <scope>test</scope>
291 </dependency>
292 <dependency>
wasala4a1457c2018-09-11 09:50:21 +0200293 <groupId>org.assertj</groupId>
294 <artifactId>assertj-core</artifactId>
Piotr Bocheński85e1d392018-11-30 18:03:17 +0100295 <scope>test</scope>
wasala4a1457c2018-09-11 09:50:21 +0200296 </dependency>
micdzied7e7aa0c2018-05-07 08:42:44 +0200297 <dependency>
grabinsk6ae123a2019-05-29 15:06:10 +0200298 <groupId>org.springframework.boot</groupId>
299 <artifactId>spring-boot-starter-test</artifactId>
micdzied8e8d8f72018-12-12 14:03:19 +0100300 <scope>test</scope>
grabinsk6ae123a2019-05-29 15:06:10 +0200301 <exclusions>
302 <exclusion>
303 <groupId>junit</groupId>
304 <artifactId>junit</artifactId>
305 </exclusion>
306 </exclusions>
micdzied7e7aa0c2018-05-07 08:42:44 +0200307 </dependency>
308 <dependency>
grabinsk48589752019-07-09 09:56:58 +0200309 <groupId>org.springframework.cloud</groupId>
310 <artifactId>spring-cloud-contract-wiremock</artifactId>
311 <scope>test</scope>
312 <exclusions>
313 <exclusion>
314 <groupId>junit</groupId>
315 <artifactId>junit</artifactId>
316 </exclusion>
317 </exclusions>
318 </dependency>
319 <dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100320 <groupId>io.projectreactor</groupId>
321 <artifactId>reactor-test</artifactId>
322 <scope>test</scope>
323 </dependency>
324 <dependency>
325 <groupId>org.glassfish.jersey.connectors</groupId>
326 <artifactId>jersey-apache-connector</artifactId>
327 <scope>test</scope>
micdzied7e7aa0c2018-05-07 08:42:44 +0200328 </dependency>
wasalab80bcb82018-03-26 15:48:46 +0200329 </dependencies>
Lusheng Ji6bb4aa22018-04-06 10:26:18 -0400330</project>