blob: a2d0aff5719f9d77912b4d0334e7846d8322232a [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>
wasala112044f2018-03-28 20:08:54 +020037 </properties>
wasalab80bcb82018-03-26 15:48:46 +020038 <build>
39 <plugins>
40 <plugin>
41 <groupId>org.apache.maven.plugins</groupId>
42 <artifactId>maven-compiler-plugin</artifactId>
43 </plugin>
44 <plugin>
45 <groupId>org.springframework.boot</groupId>
46 <artifactId>spring-boot-maven-plugin</artifactId>
wasalad8e4e882018-03-28 14:20:58 +020047 <executions>
48 <execution>
49 <goals>
50 <goal>repackage</goal>
51 </goals>
52 </execution>
53 </executions>
54 <configuration>
wasala86690cd2018-04-03 14:41:23 +020055 <finalName>${project.fatJar.finalName}</finalName>
wasalad8e4e882018-03-28 14:20:58 +020056 <mainClass>org.onap.dcaegen2.services.prh.MainApp</mainClass>
57 </configuration>
wasalab80bcb82018-03-26 15:48:46 +020058 </plugin>
wasala112044f2018-03-28 20:08:54 +020059 <!-- This plugin may go away in favor of a custom Dockerfile provided by Carsten and co. -->
60 <plugin>
61 <groupId>com.spotify</groupId>
62 <artifactId>docker-maven-plugin</artifactId>
63 <version>1.0.0</version>
wasala86690cd2018-04-03 14:41:23 +020064 <executions>
65 <execution>
66 <goals>
67 <goal>build</goal>
68 </goals>
69 <phase>package</phase>
70 </execution>
71 </executions>
wasala112044f2018-03-28 20:08:54 +020072 <configuration>
Lusheng Ji6bb4aa22018-04-06 10:26:18 -040073 <skipDockerBuild>false</skipDockerBuild>
wasala112044f2018-03-28 20:08:54 +020074 <imageName>
75 ${onap.nexus.dockerregistry.daily}/onap/${project.groupId}.${project.artifactId}
76 </imageName>
wasala86690cd2018-04-03 14:41:23 +020077 <baseImage>openjdk:8-jre-alpine</baseImage>
78 <entryPoint>["java", "-jar", "/opt/${project.fatJar.finalName}.jar"]</entryPoint>
wasala112044f2018-03-28 20:08:54 +020079 <resources>
80 <resource>
wasala86690cd2018-04-03 14:41:23 +020081 <targetPath>/opt</targetPath>
wasala112044f2018-03-28 20:08:54 +020082 <directory>${project.build.directory}</directory>
wasala86690cd2018-04-03 14:41:23 +020083 <include>${project.fatJar.finalName}.jar</include>
wasala112044f2018-03-28 20:08:54 +020084 </resource>
85 </resources>
wasala86690cd2018-04-03 14:41:23 +020086 <exposes>
87 <expose>8100</expose>
88 </exposes>
wasala112044f2018-03-28 20:08:54 +020089 <imageTags>
wasala86690cd2018-04-03 14:41:23 +020090 <imageTag>${project.version}-SNAPSHOT-${maven.build.timestamp}Z</imageTag>
91 <imageTag>${project.version}</imageTag>
wasala112044f2018-03-28 20:08:54 +020092 <imageTag>latest</imageTag>
93 </imageTags>
94 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
95 </configuration>
96 </plugin>
wasala86690cd2018-04-03 14:41:23 +020097 <plugin>
98 <groupId>org.sonatype.plugins</groupId>
99 <artifactId>nexus-staging-maven-plugin</artifactId>
100 <version>1.6.7</version>
101 <extensions>true</extensions>
102 <configuration>
103 <serverId>ecomp-staging</serverId>
104 <nexusUrl>${nexusproxy}</nexusUrl>
105 <stagingProfileId>176c31dfe190a</stagingProfileId>
106 </configuration>
107 </plugin>
wasalab80bcb82018-03-26 15:48:46 +0200108 </plugins>
109 </build>
110 <dependencies>
wasala961af3e2018-03-27 13:02:10 +0200111
112 <!--DEVELOPMENT DEPENDENCIES-->
wasalab80bcb82018-03-26 15:48:46 +0200113 <dependency>
114 <groupId>org.springframework.boot</groupId>
115 <artifactId>spring-boot-starter-web</artifactId>
116 </dependency>
117 <dependency>
118 <groupId>org.springframework.boot</groupId>
119 <artifactId>spring-boot-starter-webflux</artifactId>
120 </dependency>
wasala112044f2018-03-28 20:08:54 +0200121 <dependency>
122 <groupId>com.spotify</groupId>
123 <artifactId>docker-maven-plugin</artifactId>
124 </dependency>
wasala961af3e2018-03-27 13:02:10 +0200125
126 <!-- LOGGING DEPENDENCIES-->
127 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200128 <groupId>ch.qos.logback</groupId>
129 <artifactId>logback-classic</artifactId>
130 </dependency>
wasalad8e4e882018-03-28 14:20:58 +0200131 <dependency>
132 <groupId>org.slf4j</groupId>
133 <artifactId>jul-to-slf4j</artifactId>
134 </dependency>
135 <dependency>
136 <groupId>org.slf4j</groupId>
137 <artifactId>log4j-over-slf4j</artifactId>
138 </dependency>
wasala961af3e2018-03-27 13:02:10 +0200139
140 <!--TESTS DEPENDENCIES -->
wasalab80bcb82018-03-26 15:48:46 +0200141 <dependency>
142 <groupId>org.junit.platform</groupId>
143 <artifactId>junit-platform-commons</artifactId>
144 <version>RELEASE</version>
145 </dependency>
wasala961af3e2018-03-27 13:02:10 +0200146 <dependency>
147 <groupId>org.junit.jupiter</groupId>
148 <artifactId>junit-jupiter-api</artifactId>
149 <scope>test</scope>
150 </dependency>
151 <dependency>
152 <groupId>junit</groupId>
153 <artifactId>junit</artifactId>
154 <scope>test</scope>
155 </dependency>
156 <dependency>
157 <groupId>org.junit.jupiter</groupId>
158 <artifactId>junit-jupiter-engine</artifactId>
159 <scope>test</scope>
160 </dependency>
161 <dependency>
162 <groupId>org.junit.vintage</groupId>
163 <artifactId>junit-vintage-engine</artifactId>
164 <scope>test</scope>
165 </dependency>
166 <dependency>
167 <groupId>org.springframework</groupId>
168 <artifactId>spring-test</artifactId>
169 <scope>test</scope>
170 </dependency>
171 <dependency>
172 <groupId>org.springframework.boot</groupId>
173 <artifactId>spring-boot-starter-test</artifactId>
174 <scope>test</scope>
175 </dependency>
176 <dependency>
177 <groupId>org.mockito</groupId>
178 <artifactId>mockito-core</artifactId>
179 <scope>test</scope>
180 </dependency>
181 <dependency>
182 <groupId>org.testng</groupId>
183 <artifactId>testng</artifactId>
184 </dependency>
wasala86690cd2018-04-03 14:41:23 +0200185 <dependency>
186 <groupId>org.onap.dcaegen2.services.prh</groupId>
187 <artifactId>prh-aai-client</artifactId>
188 <version>${parent.version}</version>
189 </dependency>
190 <dependency>
191 <groupId>org.onap.dcaegen2.services.prh</groupId>
192 <artifactId>prh-dmaap-client</artifactId>
193 <version>${parent.version}</version>
194 </dependency>
wasala961af3e2018-03-27 13:02:10 +0200195
wasalab80bcb82018-03-26 15:48:46 +0200196 </dependencies>
197 <dependencyManagement>
198 <dependencies>
199 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200200 <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING BOOT -->
wasalab80bcb82018-03-26 15:48:46 +0200201 <groupId>org.springframework.boot</groupId>
202 <artifactId>spring-boot-dependencies</artifactId>
203 <version>2.0.0.RELEASE</version>
204 <type>pom</type>
205 <scope>import</scope>
206 </dependency>
207 </dependencies>
208 </dependencyManagement>
Lusheng Ji6bb4aa22018-04-06 10:26:18 -0400209</project>