blob: f488ecbd4c1a3f0967d39caf0c519c13e76ef32e [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>
Kasperkiewicz Pawelb4329622018-10-22 14:21:40 +020029 <version>1.2.0-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>
40 <dependency.dir.name>libs</dependency.dir.name>
41 <dependency.dir.location>${project.build.directory}/${dependency.dir.name}</dependency.dir.location>
42 <docker.artifact.dir>/opt</docker.artifact.dir>
43 <docker.image.name>onap/${project.groupId}.${project.artifactId}</docker.image.name>
wasala112044f2018-03-28 20:08:54 +020044 </properties>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020045
wasalab80bcb82018-03-26 15:48:46 +020046 <build>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020047 <resources>
48 <resource>
pwielebsbe312722018-09-04 09:50:05 +020049 <directory>src/main/resources</directory>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020050 </resource>
51 </resources>
52
wasalab80bcb82018-03-26 15:48:46 +020053 <plugins>
54 <plugin>
Piotr Bocheński05fd72a2019-01-23 15:01:00 +010055 <groupId>org.apache.maven.plugins</groupId>
56 <artifactId>maven-jar-plugin</artifactId>
57 <version>3.0.2</version>
wasalad8e4e882018-03-28 14:20:58 +020058 <configuration>
Piotr Bocheński05fd72a2019-01-23 15:01:00 +010059 <archive>
60 <manifestEntries>
61 <Main-Class>${prh.main.class}</Main-Class>
62 <Build-Time>${maven.build.timestamp}</Build-Time>
63 </manifestEntries>
64 </archive>
wasalad8e4e882018-03-28 14:20:58 +020065 </configuration>
wasalab80bcb82018-03-26 15:48:46 +020066 </plugin>
wasala112044f2018-03-28 20:08:54 +020067 <plugin>
Piotr Bocheński05fd72a2019-01-23 15:01:00 +010068 <groupId>org.apache.maven.plugins</groupId>
69 <artifactId>maven-dependency-plugin</artifactId>
70 <configuration>
71 <outputDirectory>${dependency.dir.location}</outputDirectory>
72 <includeScope>runtime</includeScope>
73 <silent>true</silent>
74 </configuration>
75 <executions>
76 <execution>
77 <id>copy-external-dependencies</id>
78 <phase>package</phase>
79 <goals>
80 <goal>copy-dependencies</goal>
81 </goals>
82 </execution>
83 </executions>
84 </plugin>
85 <plugin>
wasala112044f2018-03-28 20:08:54 +020086 <groupId>com.spotify</groupId>
87 <artifactId>docker-maven-plugin</artifactId>
wasala112044f2018-03-28 20:08:54 +020088 <configuration>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +020089 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
90 <imageName>${docker.image.name}</imageName>
91 <imageTags>
92 <tag>latest</tag>
93 </imageTags>
wasala86690cd2018-04-03 14:41:23 +020094 <baseImage>openjdk:8-jre-alpine</baseImage>
wasala86690cd2018-04-03 14:41:23 +020095 <exposes>
96 <expose>8100</expose>
wasala5fbcb632018-04-18 15:21:56 +020097 <expose>8433</expose>
wasala86690cd2018-04-03 14:41:23 +020098 </exposes>
Piotr Bocheńskie0e5f2a2019-01-25 15:23:01 +010099 <entryPoint>java -cp ${docker.artifact.dir}/${dependency.dir.name}/*:${docker.artifact.dir}/${project.build.finalName}.jar ${prh.main.class}</entryPoint>
Piotr Bocheński05fd72a2019-01-23 15:01:00 +0100100 <resources>
101 <resource>
102 <directory>${dependency.dir.location}</directory>
103 <targetPath>${docker.artifact.dir}/${dependency.dir.name}</targetPath>
104 </resource>
105 <resource>
106 <directory>${project.build.directory}</directory>
107 <include>${project.build.finalName}.jar</include>
108 <targetPath>${docker.artifact.dir}</targetPath>
109 </resource>
110 </resources>
wasala86690cd2018-04-03 14:41:23 +0200111 </configuration>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +0200112 <executions>
113 <execution>
114 <id>build-image</id>
115 <phase>package</phase>
116 <goals>
117 <goal>build</goal>
118 </goals>
119 </execution>
120 <execution>
121 <id>tag-and-push-image-latest</id>
122 <phase>deploy</phase>
123 <goals>
124 <goal>tag</goal>
125 </goals>
126 <configuration>
127 <image>${docker.image.name}:latest</image>
128 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName>
129 <pushImage>true</pushImage>
130 </configuration>
131 </execution>
132 <execution>
133 <id>tag-and-push-image-with-version</id>
134 <phase>deploy</phase>
135 <goals>
136 <goal>tag</goal>
137 </goals>
138 <configuration>
139 <image>${docker.image.name}:latest</image>
140 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName>
141 <pushImage>true</pushImage>
142 </configuration>
143 </execution>
144 <execution>
145 <id>tag-and-push-image-with-version-and-date</id>
146 <phase>deploy</phase>
147 <goals>
148 <goal>tag</goal>
149 </goals>
150 <configuration>
151 <image>${docker.image.name}:latest</image>
152 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z</newName>
153 <pushImage>true</pushImage>
154 </configuration>
155 </execution>
156 </executions>
wasalaa684d472018-06-19 09:27:20 +0200157 </plugin>
wasalab80bcb82018-03-26 15:48:46 +0200158 </plugins>
159 </build>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +0200160 <dependencies>
wasalab80bcb82018-03-26 15:48:46 +0200161 <dependency>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +0200162 <groupId>org.onap.dcaegen2.services.prh</groupId>
163 <artifactId>prh-commons</artifactId>
pwielebs0386c752018-12-17 09:49:00 +0100164 <version>1.2.0-SNAPSHOT</version>
wasala44ce56c2018-05-08 13:48:44 +0200165 </dependency>
Piotr Bocheński85e1d392018-11-30 18:03:17 +0100166 <dependency>
167 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
168 <artifactId>cbs-client</artifactId>
169 </dependency>
micdzied19ff70f2018-12-03 11:01:37 +0100170 <dependency>
171 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
172 <artifactId>aai-client</artifactId>
173 </dependency>
174 <dependency>
175 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
176 <artifactId>dmaap-client</artifactId>
177 </dependency>
pwielebs0386c752018-12-17 09:49:00 +0100178 <dependency>
179 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
180 <artifactId>common-dependency</artifactId>
181 </dependency>
pwielebsa393ae32018-05-07 16:58:20 +0200182
wasala961af3e2018-03-27 13:02:10 +0200183 <dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100184 <groupId>org.springframework.boot</groupId>
185 <artifactId>spring-boot-starter-web</artifactId>
wasala961af3e2018-03-27 13:02:10 +0200186 </dependency>
wasalad8e4e882018-03-28 14:20:58 +0200187 <dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100188 <groupId>org.springframework.boot</groupId>
189 <artifactId>spring-boot-starter-webflux</artifactId>
wasalad8e4e882018-03-28 14:20:58 +0200190 </dependency>
191 <dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100192 <groupId>io.springfox</groupId>
193 <artifactId>springfox-swagger2</artifactId>
wasalad8e4e882018-03-28 14:20:58 +0200194 </dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100195 <dependency>
196 <groupId>io.springfox</groupId>
197 <artifactId>springfox-swagger-ui</artifactId>
198 </dependency>
wasalab80bcb82018-03-26 15:48:46 +0200199 <dependency>
wasala5fbcb632018-04-18 15:21:56 +0200200 <groupId>io.projectreactor</groupId>
micdzied8e8d8f72018-12-12 14:03:19 +0100201 <artifactId>reactor-core</artifactId>
wasala5fbcb632018-04-18 15:21:56 +0200202 </dependency>
203 <dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100204 <groupId>org.apache.tomcat.embed</groupId>
205 <artifactId>tomcat-embed-core</artifactId>
206 </dependency>
207 <dependency>
208 <groupId>org.apache.tomcat.embed</groupId>
209 <artifactId>tomcat-embed-el</artifactId>
210 </dependency>
211 <dependency>
212 <groupId>org.apache.tomcat.embed</groupId>
213 <artifactId>tomcat-embed-websocket</artifactId>
214 </dependency>
215
216 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200217 <groupId>org.junit.jupiter</groupId>
218 <artifactId>junit-jupiter-engine</artifactId>
219 <scope>test</scope>
220 </dependency>
221 <dependency>
wasala961af3e2018-03-27 13:02:10 +0200222 <groupId>org.mockito</groupId>
223 <artifactId>mockito-core</artifactId>
224 <scope>test</scope>
225 </dependency>
226 <dependency>
227 <groupId>org.testng</groupId>
228 <artifactId>testng</artifactId>
Piotr Bochenski3c2766d2018-08-31 11:49:21 +0200229 <scope>test</scope>
wasala86690cd2018-04-03 14:41:23 +0200230 </dependency>
wasala4a1457c2018-09-11 09:50:21 +0200231 <dependency>
232 <groupId>org.assertj</groupId>
233 <artifactId>assertj-core</artifactId>
Piotr Bocheński85e1d392018-11-30 18:03:17 +0100234 <scope>test</scope>
wasala4a1457c2018-09-11 09:50:21 +0200235 </dependency>
micdzied7e7aa0c2018-05-07 08:42:44 +0200236 <dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100237 <groupId>org.springframework</groupId>
238 <artifactId>spring-test</artifactId>
239 <scope>test</scope>
micdzied7e7aa0c2018-05-07 08:42:44 +0200240 </dependency>
241 <dependency>
micdzied8e8d8f72018-12-12 14:03:19 +0100242 <groupId>io.projectreactor</groupId>
243 <artifactId>reactor-test</artifactId>
244 <scope>test</scope>
245 </dependency>
246 <dependency>
247 <groupId>org.glassfish.jersey.connectors</groupId>
248 <artifactId>jersey-apache-connector</artifactId>
249 <scope>test</scope>
micdzied7e7aa0c2018-05-07 08:42:44 +0200250 </dependency>
wasalab80bcb82018-03-26 15:48:46 +0200251 </dependencies>
Lusheng Ji6bb4aa22018-04-06 10:26:18 -0400252</project>