blob: 59ffb9967735ff1b92fb052373fc9c54c551c9b4 [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 -->
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020021<project xmlns="http://maven.apache.org/POM/4.0.0"
pwielebsbe312722018-09-04 09:50:05 +020022 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>
29 <version>1.0.0-SNAPSHOT</version>
30 </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>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020037 <docker.image.name>onap/${project.groupId}.${project.artifactId}</docker.image.name>
wasala112044f2018-03-28 20:08:54 +020038 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
wasala112044f2018-03-28 20:08:54 +020039 </properties>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020040
wasalab80bcb82018-03-26 15:48:46 +020041 <build>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020042 <resources>
43 <resource>
pwielebsbe312722018-09-04 09:50:05 +020044 <directory>src/main/resources</directory>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020045 </resource>
46 </resources>
47
wasalab80bcb82018-03-26 15:48:46 +020048 <plugins>
49 <plugin>
wasalab80bcb82018-03-26 15:48:46 +020050 <groupId>org.springframework.boot</groupId>
51 <artifactId>spring-boot-maven-plugin</artifactId>
wasalad8e4e882018-03-28 14:20:58 +020052 <configuration>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020053 <finalName>${project.artifactId}</finalName>
wasalad8e4e882018-03-28 14:20:58 +020054 <mainClass>org.onap.dcaegen2.services.prh.MainApp</mainClass>
55 </configuration>
wasalab80bcb82018-03-26 15:48:46 +020056 </plugin>
wasala112044f2018-03-28 20:08:54 +020057 <plugin>
58 <groupId>com.spotify</groupId>
59 <artifactId>docker-maven-plugin</artifactId>
wasala112044f2018-03-28 20:08:54 +020060 <configuration>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020061 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
62 <imageName>${docker.image.name}</imageName>
63 <imageTags>
64 <tag>latest</tag>
65 </imageTags>
wasala86690cd2018-04-03 14:41:23 +020066 <baseImage>openjdk:8-jre-alpine</baseImage>
wasala112044f2018-03-28 20:08:54 +020067 <resources>
68 <resource>
wasala112044f2018-03-28 20:08:54 +020069 <directory>${project.build.directory}</directory>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020070 <include>${project.artifactId}.jar</include>
71 <targetPath>/opt</targetPath>
wasala112044f2018-03-28 20:08:54 +020072 </resource>
73 </resources>
wasala86690cd2018-04-03 14:41:23 +020074 <exposes>
75 <expose>8100</expose>
wasala5fbcb632018-04-18 15:21:56 +020076 <expose>8433</expose>
wasala86690cd2018-04-03 14:41:23 +020077 </exposes>
pwielebsbe312722018-09-04 09:50:05 +020078 <cmd>["java", "-jar", "/opt/${project.artifactId}.jar"]</cmd>
wasala86690cd2018-04-03 14:41:23 +020079 </configuration>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020080 <executions>
81 <execution>
82 <id>build-image</id>
83 <phase>package</phase>
84 <goals>
85 <goal>build</goal>
86 </goals>
87 </execution>
88 <execution>
89 <id>tag-and-push-image-latest</id>
90 <phase>deploy</phase>
91 <goals>
92 <goal>tag</goal>
93 </goals>
94 <configuration>
95 <image>${docker.image.name}:latest</image>
96 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName>
97 <pushImage>true</pushImage>
98 </configuration>
99 </execution>
100 <execution>
101 <id>tag-and-push-image-with-version</id>
102 <phase>deploy</phase>
103 <goals>
104 <goal>tag</goal>
105 </goals>
106 <configuration>
107 <image>${docker.image.name}:latest</image>
108 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName>
109 <pushImage>true</pushImage>
110 </configuration>
111 </execution>
112 <execution>
113 <id>tag-and-push-image-with-version-and-date</id>
114 <phase>deploy</phase>
115 <goals>
116 <goal>tag</goal>
117 </goals>
118 <configuration>
119 <image>${docker.image.name}:latest</image>
120 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z</newName>
121 <pushImage>true</pushImage>
122 </configuration>
123 </execution>
124 </executions>
wasalaa684d472018-06-19 09:27:20 +0200125 </plugin>
wasalab80bcb82018-03-26 15:48:46 +0200126 </plugins>
127 </build>
wasala961af3e2018-03-27 13:02:10 +0200128
Piotr Bochenski3c2766d2018-08-31 11:49:21 +0200129 <dependencies>
wasalab80bcb82018-03-26 15:48:46 +0200130 <dependency>
131 <groupId>org.springframework.boot</groupId>
132 <artifactId>spring-boot-starter-web</artifactId>
wasala4a1457c2018-09-11 09:50:21 +0200133 <exclusions>
134 <exclusion>
135 <groupId>com.fasterxml.jackson.core</groupId>
136 <artifactId>jackson-databind</artifactId>
137 </exclusion>
138 </exclusions>
wasalab80bcb82018-03-26 15:48:46 +0200139 </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>
wasala5fbcb632018-04-18 15:21:56 +0200145 <groupId>io.projectreactor</groupId>
146 <artifactId>reactor-core</artifactId>
147 </dependency>
148 <dependency>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +0200149 <groupId>org.immutables</groupId>
150 <artifactId>value</artifactId>
151 </dependency>
152 <dependency>
153 <groupId>org.immutables</groupId>
154 <artifactId>gson</artifactId>
155 </dependency>
156 <dependency>
wasalab0ef0452018-04-16 09:52:34 +0200157 <groupId>org.apache.tomcat.embed</groupId>
158 <artifactId>tomcat-embed-core</artifactId>
159 </dependency>
160 <dependency>
161 <groupId>org.apache.tomcat.embed</groupId>
162 <artifactId>tomcat-embed-el</artifactId>
163 </dependency>
164 <dependency>
165 <groupId>org.apache.tomcat.embed</groupId>
166 <artifactId>tomcat-embed-websocket</artifactId>
167 </dependency>
wasala44ce56c2018-05-08 13:48:44 +0200168 <dependency>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +0200169 <groupId>org.onap.dcaegen2.services.prh</groupId>
170 <artifactId>prh-commons</artifactId>
171 <version>${project.version}</version>
wasala44ce56c2018-05-08 13:48:44 +0200172 </dependency>
pwielebsa393ae32018-05-07 16:58:20 +0200173 <dependency>
pwielebscb85d682018-05-07 16:58:20 +0200174 <groupId>org.onap.dcaegen2.services.prh</groupId>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +0200175 <artifactId>prh-aai-client</artifactId>
176 <version>${project.version}</version>
177 </dependency>
178 <dependency>
179 <groupId>org.onap.dcaegen2.services.prh</groupId>
180 <artifactId>prh-dmaap-client</artifactId>
181 <version>${project.version}</version>
wasalaa684d472018-06-19 09:27:20 +0200182 </dependency>
pwielebsa393ae32018-05-07 16:58:20 +0200183
wasala961af3e2018-03-27 13:02:10 +0200184 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200185 <groupId>ch.qos.logback</groupId>
186 <artifactId>logback-classic</artifactId>
187 </dependency>
wasalad8e4e882018-03-28 14:20:58 +0200188 <dependency>
189 <groupId>org.slf4j</groupId>
190 <artifactId>jul-to-slf4j</artifactId>
191 </dependency>
192 <dependency>
193 <groupId>org.slf4j</groupId>
194 <artifactId>log4j-over-slf4j</artifactId>
195 </dependency>
wasala961af3e2018-03-27 13:02:10 +0200196
wasalab80bcb82018-03-26 15:48:46 +0200197 <dependency>
wasala5fbcb632018-04-18 15:21:56 +0200198 <groupId>io.projectreactor</groupId>
199 <artifactId>reactor-test</artifactId>
200 <scope>test</scope>
201 </dependency>
202 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200203 <groupId>org.junit.jupiter</groupId>
204 <artifactId>junit-jupiter-engine</artifactId>
205 <scope>test</scope>
206 </dependency>
207 <dependency>
208 <groupId>org.junit.vintage</groupId>
209 <artifactId>junit-vintage-engine</artifactId>
210 <scope>test</scope>
211 </dependency>
212 <dependency>
213 <groupId>org.springframework</groupId>
214 <artifactId>spring-test</artifactId>
215 <scope>test</scope>
216 </dependency>
217 <dependency>
micdzied6a7fa722018-04-13 15:24:54 +0200218 <groupId>org.junit.platform</groupId>
219 <artifactId>junit-platform-launcher</artifactId>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +0200220 <scope>test</scope>
micdzied6a7fa722018-04-13 15:24:54 +0200221 </dependency>
222 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200223 <groupId>org.mockito</groupId>
224 <artifactId>mockito-core</artifactId>
225 <scope>test</scope>
226 </dependency>
227 <dependency>
wasalab0ef0452018-04-16 09:52:34 +0200228 <groupId>org.glassfish.jersey.connectors</groupId>
229 <artifactId>jersey-apache-connector</artifactId>
230 <scope>test</scope>
231 </dependency>
232 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200233 <groupId>org.testng</groupId>
234 <artifactId>testng</artifactId>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +0200235 <scope>test</scope>
wasala86690cd2018-04-03 14:41:23 +0200236 </dependency>
wasala4a1457c2018-09-11 09:50:21 +0200237 <dependency>
238 <groupId>org.assertj</groupId>
239 <artifactId>assertj-core</artifactId>
240 </dependency>
wasala44ce56c2018-05-08 13:48:44 +0200241
micdzied7e7aa0c2018-05-07 08:42:44 +0200242 <dependency>
243 <groupId>io.springfox</groupId>
244 <artifactId>springfox-swagger2</artifactId>
245 </dependency>
246 <dependency>
247 <groupId>io.springfox</groupId>
248 <artifactId>springfox-swagger-ui</artifactId>
249 </dependency>
wasalab80bcb82018-03-26 15:48:46 +0200250 </dependencies>
Lusheng Ji6bb4aa22018-04-06 10:26:18 -0400251</project>