blob: e5f2c8c4fa624ca7086a1abada33586fbd854d88 [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>
48 <groupId>org.springframework.boot</groupId>
49 <artifactId>spring-boot-maven-plugin</artifactId>
wasalad8e4e882018-03-28 14:20:58 +020050 <executions>
51 <execution>
52 <goals>
53 <goal>repackage</goal>
54 </goals>
55 </execution>
56 </executions>
57 <configuration>
wasala86690cd2018-04-03 14:41:23 +020058 <finalName>${project.fatJar.finalName}</finalName>
wasalad8e4e882018-03-28 14:20:58 +020059 <mainClass>org.onap.dcaegen2.services.prh.MainApp</mainClass>
60 </configuration>
wasalab80bcb82018-03-26 15:48:46 +020061 </plugin>
wasala112044f2018-03-28 20:08:54 +020062 <!-- This plugin may go away in favor of a custom Dockerfile provided by Carsten and co. -->
63 <plugin>
64 <groupId>com.spotify</groupId>
65 <artifactId>docker-maven-plugin</artifactId>
wasala112044f2018-03-28 20:08:54 +020066 <configuration>
Lusheng Ji6bb4aa22018-04-06 10:26:18 -040067 <skipDockerBuild>false</skipDockerBuild>
wasala112044f2018-03-28 20:08:54 +020068 <imageName>
69 ${onap.nexus.dockerregistry.daily}/onap/${project.groupId}.${project.artifactId}
70 </imageName>
wasala86690cd2018-04-03 14:41:23 +020071 <baseImage>openjdk:8-jre-alpine</baseImage>
72 <entryPoint>["java", "-jar", "/opt/${project.fatJar.finalName}.jar"]</entryPoint>
wasala112044f2018-03-28 20:08:54 +020073 <resources>
74 <resource>
wasala86690cd2018-04-03 14:41:23 +020075 <targetPath>/opt</targetPath>
wasala112044f2018-03-28 20:08:54 +020076 <directory>${project.build.directory}</directory>
wasala86690cd2018-04-03 14:41:23 +020077 <include>${project.fatJar.finalName}.jar</include>
wasala112044f2018-03-28 20:08:54 +020078 </resource>
79 </resources>
wasala86690cd2018-04-03 14:41:23 +020080 <exposes>
81 <expose>8100</expose>
82 </exposes>
wasala112044f2018-03-28 20:08:54 +020083 <imageTags>
wasala86690cd2018-04-03 14:41:23 +020084 <imageTag>${project.version}-SNAPSHOT-${maven.build.timestamp}Z</imageTag>
85 <imageTag>${project.version}</imageTag>
wasala112044f2018-03-28 20:08:54 +020086 <imageTag>latest</imageTag>
87 </imageTags>
88 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
89 </configuration>
90 </plugin>
wasala86690cd2018-04-03 14:41:23 +020091 <plugin>
92 <groupId>org.sonatype.plugins</groupId>
93 <artifactId>nexus-staging-maven-plugin</artifactId>
94 <version>1.6.7</version>
95 <extensions>true</extensions>
96 <configuration>
97 <serverId>ecomp-staging</serverId>
98 <nexusUrl>${nexusproxy}</nexusUrl>
99 <stagingProfileId>176c31dfe190a</stagingProfileId>
100 </configuration>
101 </plugin>
wasalab80bcb82018-03-26 15:48:46 +0200102 </plugins>
103 </build>
104 <dependencies>
wasala961af3e2018-03-27 13:02:10 +0200105
106 <!--DEVELOPMENT DEPENDENCIES-->
wasalab80bcb82018-03-26 15:48:46 +0200107 <dependency>
108 <groupId>org.springframework.boot</groupId>
109 <artifactId>spring-boot-starter-web</artifactId>
wasalab196f932018-04-17 12:25:54 +0200110 <exclusions>
111 <exclusion>
112 <artifactId>jackson-databind</artifactId>
113 <groupId>com.fasterxml.jackson.core</groupId>
114 </exclusion>
115 </exclusions>
wasalab80bcb82018-03-26 15:48:46 +0200116 </dependency>
117 <dependency>
118 <groupId>org.springframework.boot</groupId>
119 <artifactId>spring-boot-starter-webflux</artifactId>
wasalab196f932018-04-17 12:25:54 +0200120 <exclusions>
121 <exclusion>
122 <artifactId>jackson-databind</artifactId>
123 <groupId>com.fasterxml.jackson.core</groupId>
124 </exclusion>
125 </exclusions>
wasalab80bcb82018-03-26 15:48:46 +0200126 </dependency>
wasala112044f2018-03-28 20:08:54 +0200127 <dependency>
128 <groupId>com.spotify</groupId>
129 <artifactId>docker-maven-plugin</artifactId>
130 </dependency>
wasala3c2e8c92018-04-12 13:37:41 +0200131 <dependency>
wasalab0ef0452018-04-16 09:52:34 +0200132 <groupId>org.bouncycastle</groupId>
133 <artifactId>bcprov-jdk15on</artifactId>
134 </dependency>
135 <dependency>
136 <groupId>org.bouncycastle</groupId>
137 <artifactId>bcpkix-jdk15on</artifactId>
138 </dependency>
139 <dependency>
140 <groupId>org.codehaus.plexus</groupId>
141 <artifactId>plexus-utils</artifactId>
142 </dependency>
143 <dependency>
wasalab0ef0452018-04-16 09:52:34 +0200144 <groupId>org.apache.tomcat.embed</groupId>
145 <artifactId>tomcat-embed-core</artifactId>
146 </dependency>
147 <dependency>
148 <groupId>org.apache.tomcat.embed</groupId>
149 <artifactId>tomcat-embed-el</artifactId>
150 </dependency>
151 <dependency>
152 <groupId>org.apache.tomcat.embed</groupId>
153 <artifactId>tomcat-embed-websocket</artifactId>
154 </dependency>
wasala961af3e2018-03-27 13:02:10 +0200155
156 <!-- LOGGING DEPENDENCIES-->
157 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200158 <groupId>ch.qos.logback</groupId>
159 <artifactId>logback-classic</artifactId>
160 </dependency>
wasalad8e4e882018-03-28 14:20:58 +0200161 <dependency>
162 <groupId>org.slf4j</groupId>
163 <artifactId>jul-to-slf4j</artifactId>
164 </dependency>
165 <dependency>
166 <groupId>org.slf4j</groupId>
167 <artifactId>log4j-over-slf4j</artifactId>
168 </dependency>
wasala961af3e2018-03-27 13:02:10 +0200169
170 <!--TESTS DEPENDENCIES -->
wasalab80bcb82018-03-26 15:48:46 +0200171 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200172 <groupId>org.junit.jupiter</groupId>
173 <artifactId>junit-jupiter-engine</artifactId>
174 <scope>test</scope>
175 </dependency>
176 <dependency>
177 <groupId>org.junit.vintage</groupId>
178 <artifactId>junit-vintage-engine</artifactId>
179 <scope>test</scope>
180 </dependency>
181 <dependency>
182 <groupId>org.springframework</groupId>
183 <artifactId>spring-test</artifactId>
184 <scope>test</scope>
185 </dependency>
186 <dependency>
micdzied6a7fa722018-04-13 15:24:54 +0200187 <groupId>org.junit.platform</groupId>
188 <artifactId>junit-platform-launcher</artifactId>
189 </dependency>
190 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200191 <groupId>org.springframework.boot</groupId>
192 <artifactId>spring-boot-starter-test</artifactId>
193 <scope>test</scope>
194 </dependency>
195 <dependency>
196 <groupId>org.mockito</groupId>
197 <artifactId>mockito-core</artifactId>
198 <scope>test</scope>
199 </dependency>
200 <dependency>
wasalab0ef0452018-04-16 09:52:34 +0200201 <groupId>org.glassfish.jersey.connectors</groupId>
202 <artifactId>jersey-apache-connector</artifactId>
203 <scope>test</scope>
204 </dependency>
205 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200206 <groupId>org.testng</groupId>
207 <artifactId>testng</artifactId>
208 </dependency>
wasala86690cd2018-04-03 14:41:23 +0200209 <dependency>
210 <groupId>org.onap.dcaegen2.services.prh</groupId>
211 <artifactId>prh-aai-client</artifactId>
wasalab0ef0452018-04-16 09:52:34 +0200212 <version>${project.parent.version}</version>
wasala86690cd2018-04-03 14:41:23 +0200213 </dependency>
214 <dependency>
215 <groupId>org.onap.dcaegen2.services.prh</groupId>
216 <artifactId>prh-dmaap-client</artifactId>
wasalab0ef0452018-04-16 09:52:34 +0200217 <version>${project.parent.version}</version>
wasala86690cd2018-04-03 14:41:23 +0200218 </dependency>
wasala961af3e2018-03-27 13:02:10 +0200219
wasalab80bcb82018-03-26 15:48:46 +0200220 </dependencies>
221 <dependencyManagement>
222 <dependencies>
223 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200224 <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING BOOT -->
wasalab80bcb82018-03-26 15:48:46 +0200225 <groupId>org.springframework.boot</groupId>
226 <artifactId>spring-boot-dependencies</artifactId>
wasalacf292d92018-04-13 09:44:51 +0200227 <version>2.0.1.RELEASE</version>
wasalab80bcb82018-03-26 15:48:46 +0200228 <type>pom</type>
229 <scope>import</scope>
wasalab196f932018-04-17 12:25:54 +0200230 <exclusions>
231 <exclusion>
232 <artifactId>jackson-databind</artifactId>
233 <groupId>com.fasterxml.jackson.core</groupId>
234 </exclusion>
235 </exclusions>
wasalab80bcb82018-03-26 15:48:46 +0200236 </dependency>
237 </dependencies>
238 </dependencyManagement>
Lusheng Ji6bb4aa22018-04-06 10:26:18 -0400239</project>