blob: 5706dc93e31dca81aa47bb84d2524b6d8507d571 [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 ~ ================================================================================
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 -->
wasalab80bcb82018-03-26 15:48:46 +020021<project xmlns="http://maven.apache.org/POM/4.0.0"
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">
24 <parent>
25 <artifactId>prh</artifactId>
26 <groupId>org.onap.dcaegen2.services</groupId>
27 <version>1.0.0-SNAPSHOT</version>
28 </parent>
29 <modelVersion>4.0.0</modelVersion>
30
31 <artifactId>prh-app-server</artifactId>
wasala961af3e2018-03-27 13:02:10 +020032 <groupId>org.onap.dcaegen2.services.prh</groupId>
wasalab80bcb82018-03-26 15:48:46 +020033 <packaging>jar</packaging>
wasala112044f2018-03-28 20:08:54 +020034 <properties>
35 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
wasala86690cd2018-04-03 14:41:23 +020036 <project.fatJar.finalName>prh-app-server</project.fatJar.finalName>
wasalacf292d92018-04-13 09:44:51 +020037 <nexusproxy>https://nexus.onap.org</nexusproxy>
38 <snapshots.path>content/repositories/snapshots/</snapshots.path>
39 <releases.path>content/repositories/releases/</releases.path>
wasala112044f2018-03-28 20:08:54 +020040 </properties>
wasalab80bcb82018-03-26 15:48:46 +020041 <build>
42 <plugins>
43 <plugin>
44 <groupId>org.apache.maven.plugins</groupId>
45 <artifactId>maven-compiler-plugin</artifactId>
46 </plugin>
47 <plugin>
wasala44ce56c2018-05-08 13:48:44 +020048 <groupId>org.apache.maven.plugins</groupId>
49 <artifactId>maven-resources-plugin</artifactId>
50 <executions>
51 <execution>
52 <id>custom-resources</id>
53 <phase>process-resources</phase>
54 <goals>
55 <goal>copy-resources</goal>
56 </goals>
57 <configuration>
58 <outputDirectory>${project.build.directory}/config</outputDirectory>
59 <resources>
60 <resource>
61 <directory>${project.basedir}/config</directory>
62 <filtering>true</filtering>
63 </resource>
64 </resources>
65 <encoding>UTF-8</encoding>
66 </configuration>
67 </execution>
68 </executions>
69 </plugin>
70 <plugin>
wasalab80bcb82018-03-26 15:48:46 +020071 <groupId>org.springframework.boot</groupId>
72 <artifactId>spring-boot-maven-plugin</artifactId>
wasalad8e4e882018-03-28 14:20:58 +020073 <executions>
74 <execution>
75 <goals>
76 <goal>repackage</goal>
77 </goals>
78 </execution>
79 </executions>
80 <configuration>
wasala86690cd2018-04-03 14:41:23 +020081 <finalName>${project.fatJar.finalName}</finalName>
wasalad8e4e882018-03-28 14:20:58 +020082 <mainClass>org.onap.dcaegen2.services.prh.MainApp</mainClass>
83 </configuration>
wasalab80bcb82018-03-26 15:48:46 +020084 </plugin>
wasala112044f2018-03-28 20:08:54 +020085 <!-- This plugin may go away in favor of a custom Dockerfile provided by Carsten and co. -->
86 <plugin>
87 <groupId>com.spotify</groupId>
88 <artifactId>docker-maven-plugin</artifactId>
wasala112044f2018-03-28 20:08:54 +020089 <configuration>
Lusheng Ji6bb4aa22018-04-06 10:26:18 -040090 <skipDockerBuild>false</skipDockerBuild>
wasala112044f2018-03-28 20:08:54 +020091 <imageName>
92 ${onap.nexus.dockerregistry.daily}/onap/${project.groupId}.${project.artifactId}
93 </imageName>
wasala86690cd2018-04-03 14:41:23 +020094 <baseImage>openjdk:8-jre-alpine</baseImage>
95 <entryPoint>["java", "-jar", "/opt/${project.fatJar.finalName}.jar"]</entryPoint>
wasala112044f2018-03-28 20:08:54 +020096 <resources>
97 <resource>
wasala86690cd2018-04-03 14:41:23 +020098 <targetPath>/opt</targetPath>
wasala112044f2018-03-28 20:08:54 +020099 <directory>${project.build.directory}</directory>
wasala86690cd2018-04-03 14:41:23 +0200100 <include>${project.fatJar.finalName}.jar</include>
wasala112044f2018-03-28 20:08:54 +0200101 </resource>
wejs7412a222018-05-16 12:32:24 +0200102 <resource>
103 <targetPath>/config</targetPath>
104 <directory>${project.build.directory}/config</directory>
105 <include>*</include>
106 </resource>
wasala112044f2018-03-28 20:08:54 +0200107 </resources>
wasala86690cd2018-04-03 14:41:23 +0200108 <exposes>
109 <expose>8100</expose>
wasala5fbcb632018-04-18 15:21:56 +0200110 <expose>8433</expose>
wasala86690cd2018-04-03 14:41:23 +0200111 </exposes>
wasala112044f2018-03-28 20:08:54 +0200112 <imageTags>
wasala86690cd2018-04-03 14:41:23 +0200113 <imageTag>${project.version}-SNAPSHOT-${maven.build.timestamp}Z</imageTag>
114 <imageTag>${project.version}</imageTag>
wasala112044f2018-03-28 20:08:54 +0200115 <imageTag>latest</imageTag>
116 </imageTags>
117 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
118 </configuration>
119 </plugin>
wasala86690cd2018-04-03 14:41:23 +0200120 <plugin>
121 <groupId>org.sonatype.plugins</groupId>
122 <artifactId>nexus-staging-maven-plugin</artifactId>
123 <version>1.6.7</version>
124 <extensions>true</extensions>
125 <configuration>
126 <serverId>ecomp-staging</serverId>
127 <nexusUrl>${nexusproxy}</nexusUrl>
128 <stagingProfileId>176c31dfe190a</stagingProfileId>
129 </configuration>
130 </plugin>
wasalab80bcb82018-03-26 15:48:46 +0200131 </plugins>
132 </build>
133 <dependencies>
wasala961af3e2018-03-27 13:02:10 +0200134
135 <!--DEVELOPMENT DEPENDENCIES-->
wasalab80bcb82018-03-26 15:48:46 +0200136 <dependency>
137 <groupId>org.springframework.boot</groupId>
138 <artifactId>spring-boot-starter-web</artifactId>
139 </dependency>
140 <dependency>
141 <groupId>org.springframework.boot</groupId>
142 <artifactId>spring-boot-starter-webflux</artifactId>
143 </dependency>
wasala112044f2018-03-28 20:08:54 +0200144 <dependency>
145 <groupId>com.spotify</groupId>
146 <artifactId>docker-maven-plugin</artifactId>
wasalab3a974e2018-04-18 08:48:00 +0200147 <exclusions>
148 <exclusion>
149 <groupId>com.fasterxml.jackson.core</groupId>
150 <artifactId>jackson-databind</artifactId>
151 </exclusion>
152 </exclusions>
wasala112044f2018-03-28 20:08:54 +0200153 </dependency>
wasala3c2e8c92018-04-12 13:37:41 +0200154 <dependency>
wasala5fbcb632018-04-18 15:21:56 +0200155 <groupId>io.projectreactor</groupId>
156 <artifactId>reactor-core</artifactId>
157 </dependency>
158 <dependency>
wasalab0ef0452018-04-16 09:52:34 +0200159 <groupId>org.bouncycastle</groupId>
160 <artifactId>bcprov-jdk15on</artifactId>
161 </dependency>
162 <dependency>
163 <groupId>org.bouncycastle</groupId>
164 <artifactId>bcpkix-jdk15on</artifactId>
165 </dependency>
166 <dependency>
167 <groupId>org.codehaus.plexus</groupId>
168 <artifactId>plexus-utils</artifactId>
169 </dependency>
170 <dependency>
wasalab0ef0452018-04-16 09:52:34 +0200171 <groupId>org.apache.tomcat.embed</groupId>
172 <artifactId>tomcat-embed-core</artifactId>
173 </dependency>
174 <dependency>
175 <groupId>org.apache.tomcat.embed</groupId>
176 <artifactId>tomcat-embed-el</artifactId>
177 </dependency>
178 <dependency>
179 <groupId>org.apache.tomcat.embed</groupId>
180 <artifactId>tomcat-embed-websocket</artifactId>
181 </dependency>
wasala44ce56c2018-05-08 13:48:44 +0200182 <dependency>
183 <groupId>org.immutables</groupId>
184 <artifactId>value</artifactId>
185 </dependency>
186 <dependency>
187 <groupId>org.immutables</groupId>
188 <artifactId>gson</artifactId>
189 </dependency>
pwielebsa393ae32018-05-07 16:58:20 +0200190 <dependency>
pwielebscb85d682018-05-07 16:58:20 +0200191 <groupId>org.onap.dcaegen2.services.prh</groupId>
192 <artifactId>prh-commons</artifactId>
193 <version>1.0.0-SNAPSHOT</version>
194 </dependency>
pwielebsa393ae32018-05-07 16:58:20 +0200195
wasala961af3e2018-03-27 13:02:10 +0200196
197 <!-- LOGGING DEPENDENCIES-->
198 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200199 <groupId>ch.qos.logback</groupId>
200 <artifactId>logback-classic</artifactId>
201 </dependency>
wasalad8e4e882018-03-28 14:20:58 +0200202 <dependency>
203 <groupId>org.slf4j</groupId>
204 <artifactId>jul-to-slf4j</artifactId>
205 </dependency>
206 <dependency>
207 <groupId>org.slf4j</groupId>
208 <artifactId>log4j-over-slf4j</artifactId>
209 </dependency>
wasala961af3e2018-03-27 13:02:10 +0200210
211 <!--TESTS DEPENDENCIES -->
wasalab80bcb82018-03-26 15:48:46 +0200212 <dependency>
wasala5fbcb632018-04-18 15:21:56 +0200213 <groupId>io.projectreactor</groupId>
214 <artifactId>reactor-test</artifactId>
215 <scope>test</scope>
216 </dependency>
217 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200218 <groupId>org.junit.jupiter</groupId>
219 <artifactId>junit-jupiter-engine</artifactId>
220 <scope>test</scope>
221 </dependency>
222 <dependency>
223 <groupId>org.junit.vintage</groupId>
224 <artifactId>junit-vintage-engine</artifactId>
225 <scope>test</scope>
226 </dependency>
227 <dependency>
228 <groupId>org.springframework</groupId>
229 <artifactId>spring-test</artifactId>
230 <scope>test</scope>
231 </dependency>
232 <dependency>
micdzied6a7fa722018-04-13 15:24:54 +0200233 <groupId>org.junit.platform</groupId>
234 <artifactId>junit-platform-launcher</artifactId>
235 </dependency>
236 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200237 <groupId>org.springframework.boot</groupId>
238 <artifactId>spring-boot-starter-test</artifactId>
239 <scope>test</scope>
240 </dependency>
241 <dependency>
242 <groupId>org.mockito</groupId>
243 <artifactId>mockito-core</artifactId>
244 <scope>test</scope>
245 </dependency>
246 <dependency>
wasalab0ef0452018-04-16 09:52:34 +0200247 <groupId>org.glassfish.jersey.connectors</groupId>
248 <artifactId>jersey-apache-connector</artifactId>
249 <scope>test</scope>
250 </dependency>
251 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200252 <groupId>org.testng</groupId>
253 <artifactId>testng</artifactId>
254 </dependency>
wasala86690cd2018-04-03 14:41:23 +0200255 <dependency>
256 <groupId>org.onap.dcaegen2.services.prh</groupId>
257 <artifactId>prh-aai-client</artifactId>
wasalab0ef0452018-04-16 09:52:34 +0200258 <version>${project.parent.version}</version>
wasala86690cd2018-04-03 14:41:23 +0200259 </dependency>
260 <dependency>
261 <groupId>org.onap.dcaegen2.services.prh</groupId>
262 <artifactId>prh-dmaap-client</artifactId>
wasalab0ef0452018-04-16 09:52:34 +0200263 <version>${project.parent.version}</version>
wasala86690cd2018-04-03 14:41:23 +0200264 </dependency>
wasala44ce56c2018-05-08 13:48:44 +0200265
micdzied7e7aa0c2018-05-07 08:42:44 +0200266 <!--REQUIRED TO GENERATE DOCUMENTATION -->
267 <dependency>
268 <groupId>io.springfox</groupId>
269 <artifactId>springfox-swagger2</artifactId>
270 </dependency>
271 <dependency>
272 <groupId>io.springfox</groupId>
273 <artifactId>springfox-swagger-ui</artifactId>
274 </dependency>
wasala961af3e2018-03-27 13:02:10 +0200275
wasala44ce56c2018-05-08 13:48:44 +0200276 <dependency>
277 <groupId>org.onap.dcaegen2.services.prh</groupId>
278 <artifactId>prh-aai-client</artifactId>
279 <version>1.0.0-SNAPSHOT</version>
280 </dependency>
281
pwielebsa393ae32018-05-07 16:58:20 +0200282
wasalab80bcb82018-03-26 15:48:46 +0200283 </dependencies>
284 <dependencyManagement>
285 <dependencies>
286 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200287 <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING BOOT -->
wasalab80bcb82018-03-26 15:48:46 +0200288 <groupId>org.springframework.boot</groupId>
289 <artifactId>spring-boot-dependencies</artifactId>
wasalacf292d92018-04-13 09:44:51 +0200290 <version>2.0.1.RELEASE</version>
wasalab80bcb82018-03-26 15:48:46 +0200291 <type>pom</type>
292 <scope>import</scope>
293 </dependency>
294 </dependencies>
295 </dependencyManagement>
Lusheng Ji6bb4aa22018-04-06 10:26:18 -0400296</project>