blob: 87ae94430d7d2d02b4eaab0d338264b31516bab8 [file] [log] [blame]
Kai18e86742020-07-29 11:18:59 +08001<?xml version="1.0" encoding="UTF-8"?>
Kaie0a4ff72020-09-17 11:17:13 +08002<!--
3 ~ ============LICENSE_START=======================================================
4 ~ Copyright (c) 2020 China Mobile. All rights reserved.
5 ~ ================================================================================
6 ~ Licensed under the Apache License, Version 2.0 (the "License");
7 ~ you may not use this file except in compliance with the License.
8 ~ You may obtain a copy of the License at
9 ~
10 ~ http://www.apache.org/licenses/LICENSE-2.0
11 ~
12 ~ Unless required by applicable law or agreed to in writing, software
13 ~ distributed under the License is distributed on an "AS IS" BASIS,
14 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ~ See the License for the specific language governing permissions and
16 ~ limitations under the License.
17 ~ ============LICENSE_END=========================================================
18 -->
Kai18e86742020-07-29 11:18:59 +080019
20<project xmlns="http://maven.apache.org/POM/4.0.0"
Kaie0a4ff72020-09-17 11:17:13 +080021 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23 <modelVersion>4.0.0</modelVersion>
Kai18e86742020-07-29 11:18:59 +080024
Kaie0a4ff72020-09-17 11:17:13 +080025 <parent>
26 <groupId>org.onap.dcaegen2.services.components</groupId>
27 <artifactId>datalake-handler</artifactId>
Niranjana8faf1812021-02-23 15:59:05 +000028 <version>1.1.1-SNAPSHOT</version>
Kaie0a4ff72020-09-17 11:17:13 +080029 </parent>
Kai18e86742020-07-29 11:18:59 +080030
Kaie0a4ff72020-09-17 11:17:13 +080031 <artifactId>des</artifactId>
32 <packaging>jar</packaging>
33 <name>DataLake Extraction Service</name>
Kai18e86742020-07-29 11:18:59 +080034
Kaie0a4ff72020-09-17 11:17:13 +080035 <properties>
36 <swagger.version>2.9.2</swagger.version>
37 <dockerfile-maven.version>1.4.10</dockerfile-maven.version>
38 <docker.image.path>onap/org.onap.dcaegen2.services.datalake.exposure.service</docker.image.path>
39 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
40 </properties>
Kai18e86742020-07-29 11:18:59 +080041
Kaie0a4ff72020-09-17 11:17:13 +080042 <dependencies>
Kai18e86742020-07-29 11:18:59 +080043
Kaie0a4ff72020-09-17 11:17:13 +080044 <dependency>
45 <groupId>org.jdom</groupId>
46 <artifactId>jdom2</artifactId>
47 <version>2.0.6</version>
48 </dependency>
Kai18e86742020-07-29 11:18:59 +080049
Kaie0a4ff72020-09-17 11:17:13 +080050 <dependency>
51 <groupId>com.facebook.presto</groupId>
52 <artifactId>presto-jdbc</artifactId>
53 <version>0.240</version>
54 </dependency>
Kai18e86742020-07-29 11:18:59 +080055
Kaie0a4ff72020-09-17 11:17:13 +080056 <dependency>
57 <groupId>org.apache.hadoop</groupId>
58 <artifactId>hadoop-client</artifactId>
59 <version>${hadoop.version}</version>
60 </dependency>
Kai18e86742020-07-29 11:18:59 +080061
Kaie0a4ff72020-09-17 11:17:13 +080062 <dependency>
Niranjana8faf1812021-02-23 15:59:05 +000063 <groupId>org.postgresql</groupId>
64 <artifactId>postgresql</artifactId>
65 <version>42.2.18</version>
Kaie0a4ff72020-09-17 11:17:13 +080066 </dependency>
Kai18e86742020-07-29 11:18:59 +080067
Kaie0a4ff72020-09-17 11:17:13 +080068 <dependency>
69 <groupId>org.json</groupId>
70 <artifactId>json</artifactId>
71 <version>20190722</version>
72 </dependency>
Kai18e86742020-07-29 11:18:59 +080073
Kaie0a4ff72020-09-17 11:17:13 +080074 <dependency>
75 <groupId>org.apache.httpcomponents</groupId>
76 <artifactId>httpclient</artifactId>
77 <version>4.5.10</version>
78 </dependency>
Kai18e86742020-07-29 11:18:59 +080079
Kaie0a4ff72020-09-17 11:17:13 +080080 <dependency>
81 <groupId>org.apache.kafka</groupId>
82 <artifactId>kafka-clients</artifactId>
83 <version>2.3.1</version>
84 </dependency>
Kai18e86742020-07-29 11:18:59 +080085
Kaie0a4ff72020-09-17 11:17:13 +080086 <dependency>
87 <groupId>org.springframework.boot</groupId>
88 <artifactId>spring-boot-starter-web</artifactId>
89 <version>${springboot.version}</version>
90 </dependency>
Kai18e86742020-07-29 11:18:59 +080091
Kaie0a4ff72020-09-17 11:17:13 +080092 <dependency>
93 <groupId>org.springframework.boot</groupId>
94 <artifactId>spring-boot-starter-actuator</artifactId>
95 <version>${springboot.version}</version>
96 </dependency>
Kai18e86742020-07-29 11:18:59 +080097
Kaie0a4ff72020-09-17 11:17:13 +080098 <dependency>
99 <groupId>org.springframework.boot</groupId>
100 <artifactId>spring-boot-starter-data-jpa</artifactId>
101 <version>${springboot.version}</version>
102 </dependency>
Kai18e86742020-07-29 11:18:59 +0800103
Kaie0a4ff72020-09-17 11:17:13 +0800104 <dependency>
105 <groupId>org.springframework.boot</groupId>
106 <artifactId>spring-boot-starter-data-couchbase</artifactId>
107 <version>${springboot.version}</version>
108 </dependency>
Kai18e86742020-07-29 11:18:59 +0800109
Kaie0a4ff72020-09-17 11:17:13 +0800110 <dependency>
111 <groupId>org.springframework.boot</groupId>
112 <artifactId>spring-boot-starter-test</artifactId>
113 <version>${springboot.version}</version>
114 <scope>test</scope>
115 </dependency>
Kai18e86742020-07-29 11:18:59 +0800116
Kaie0a4ff72020-09-17 11:17:13 +0800117 <dependency>
118 <groupId>org.springframework.boot</groupId>
119 <artifactId>spring-boot-configuration-processor</artifactId>
120 <version>${springboot.version}</version>
121 </dependency>
Kai18e86742020-07-29 11:18:59 +0800122
Kaie0a4ff72020-09-17 11:17:13 +0800123 <dependency>
124 <groupId>org.elasticsearch.client</groupId>
125 <artifactId>elasticsearch-rest-high-level-client</artifactId>
126 <version>${elasticsearchjava.version}</version>
127 </dependency>
Kai18e86742020-07-29 11:18:59 +0800128
Kaie0a4ff72020-09-17 11:17:13 +0800129 <dependency>
130 <groupId>commons-io</groupId>
131 <artifactId>commons-io</artifactId>
132 <version>2.6</version>
133 </dependency>
Kai18e86742020-07-29 11:18:59 +0800134
Kaie0a4ff72020-09-17 11:17:13 +0800135 <dependency>
136 <groupId>com.fasterxml.jackson.dataformat</groupId>
137 <artifactId>jackson-dataformat-yaml</artifactId>
138 <version>${jackson.version}</version>
139 </dependency>
Kai18e86742020-07-29 11:18:59 +0800140
Kaie0a4ff72020-09-17 11:17:13 +0800141 <dependency>
142 <groupId>com.fasterxml.jackson.dataformat</groupId>
143 <artifactId>jackson-dataformat-xml</artifactId>
144 <version>${jackson.version}</version>
145 </dependency>
Kai18e86742020-07-29 11:18:59 +0800146
Kaie0a4ff72020-09-17 11:17:13 +0800147 <dependency>
148 <groupId>com.fasterxml.jackson.core</groupId>
149 <artifactId>jackson-databind</artifactId>
150 <version>${jackson.version}</version>
151 </dependency>
Kai18e86742020-07-29 11:18:59 +0800152
Kaie0a4ff72020-09-17 11:17:13 +0800153 <dependency>
154 <groupId>com.google.code.gson</groupId>
155 <artifactId>gson</artifactId>
156 <version>2.8.2</version>
157 </dependency>
Kai18e86742020-07-29 11:18:59 +0800158
Kaie0a4ff72020-09-17 11:17:13 +0800159 <dependency>
160 <groupId>org.projectlombok</groupId>
161 <artifactId>lombok</artifactId>
162 <version>1.18.10</version>
163 <scope>provided</scope>
164 </dependency>
Kai18e86742020-07-29 11:18:59 +0800165
Kaie0a4ff72020-09-17 11:17:13 +0800166 <dependency>
167 <groupId>io.druid</groupId>
168 <artifactId>tranquility-core_2.11</artifactId>
169 <version>0.8.3</version>
170 </dependency>
Kai18e86742020-07-29 11:18:59 +0800171
Kaie0a4ff72020-09-17 11:17:13 +0800172 <dependency>
173 <groupId>org.apache.velocity</groupId>
174 <artifactId>velocity-engine-core</artifactId>
175 <version>2.1</version>
176 </dependency>
Kai18e86742020-07-29 11:18:59 +0800177
178
Kaie0a4ff72020-09-17 11:17:13 +0800179 <dependency>
180 <groupId>org.hibernate</groupId>
181 <artifactId>hibernate-core</artifactId>
182 <version>5.3.7.Final</version>
183 </dependency>
Kai18e86742020-07-29 11:18:59 +0800184
Kaie0a4ff72020-09-17 11:17:13 +0800185 <!-- jsr303 validation -->
186 <dependency>
187 <groupId>javax.validation</groupId>
188 <artifactId>validation-api</artifactId>
189 <version>2.0.1.Final</version>
190 </dependency>
Kai18e86742020-07-29 11:18:59 +0800191
Kaie0a4ff72020-09-17 11:17:13 +0800192 <dependency>
193 <groupId>org.hibernate</groupId>
194 <artifactId>hibernate-validator</artifactId>
195 <version>6.1.0.Final</version>
196 </dependency>
Kai18e86742020-07-29 11:18:59 +0800197
Kaie0a4ff72020-09-17 11:17:13 +0800198 <dependency>
199 <groupId>io.springfox</groupId>
200 <artifactId>springfox-swagger2</artifactId>
201 <version>${swagger.version}</version>
202 <scope>compile</scope>
203 </dependency>
Kai18e86742020-07-29 11:18:59 +0800204
Kaie0a4ff72020-09-17 11:17:13 +0800205 <dependency>
206 <groupId>io.springfox</groupId>
207 <artifactId>springfox-swagger-ui</artifactId>
208 <version>${swagger.version}</version>
209 <scope>compile</scope>
210 </dependency>
Kai18e86742020-07-29 11:18:59 +0800211
Kaie0a4ff72020-09-17 11:17:13 +0800212 <dependency>
213 <groupId>org.mongodb</groupId>
214 <artifactId>mongo-java-driver</artifactId>
215 <version>${mongojava.version}</version>
216 </dependency>
Kai18e86742020-07-29 11:18:59 +0800217
Kaie0a4ff72020-09-17 11:17:13 +0800218 <dependency>
219 <groupId>com.couchbase.mock</groupId>
220 <artifactId>CouchbaseMock</artifactId>
221 <version>1.5.22</version>
222 <scope>test</scope>
223 </dependency>
Kai18e86742020-07-29 11:18:59 +0800224
Kaie0a4ff72020-09-17 11:17:13 +0800225 </dependencies>
Kai18e86742020-07-29 11:18:59 +0800226
227
Kaie0a4ff72020-09-17 11:17:13 +0800228 <build>
229 <plugins>
Niranjana6bff68d2021-05-06 11:00:56 +0000230 <plugin>
231 <groupId>org.apache.maven.plugins</groupId>
232 <artifactId>maven-deploy-plugin</artifactId>
233 <version>2.8</version>
234 <configuration>
235 <skip>true</skip>
236 </configuration>
237 </plugin>
238
Kaie0a4ff72020-09-17 11:17:13 +0800239 <plugin>
240 <groupId>org.springframework.boot</groupId>
241 <artifactId>spring-boot-maven-plugin</artifactId>
242 <configuration>
243 <classifier>execute</classifier>
244 <executions>
245 <execution>
246 <goals>
247 <goal>repackage</goal>
248 </goals>
249 </execution>
250 </executions>
251 </configuration>
252 </plugin>
253 <plugin>
254 <groupId>com.spotify</groupId>
255 <artifactId>dockerfile-maven-plugin</artifactId>
256 <version>${dockerfile-maven.version}</version>
257 <configuration>
258 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.path}</repository>
259 <tag>${project.version}</tag>
260 <dockerfile>Dockerfile</dockerfile>
261 <buildArgs>
262 <JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
263 </buildArgs>
264 </configuration>
265 <executions>
266 <execution>
267 <id>build-sl-des-image</id>
268 <phase>package</phase>
269 <goals>
270 <goal>build</goal>
271 </goals>
Niranjana8faf1812021-02-23 15:59:05 +0000272 <configuration>
273 <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
274 </configuration>
Kaie0a4ff72020-09-17 11:17:13 +0800275 </execution>
276 <execution>
277 <id>tag-and-push-image-latest</id>
278 <phase>package</phase>
279 <goals>
280 <goal>tag</goal>
281 <goal>push</goal>
282 </goals>
283 <configuration>
284 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.path}</repository>
285 <tag>latest</tag>
286 <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
287 </configuration>
288 </execution>
289 <execution>
290 <id>tag-and-push-image-with-version</id>
291 <phase>package</phase>
292 <goals>
293 <goal>tag</goal>
294 <goal>push</goal>
295 </goals>
296 <configuration>
297 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.path}</repository>
298 <tag>${project.version}</tag>
299 <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
300 </configuration>
301 </execution>
302 <execution>
303 <id>tag-and-push-image-with-version-and-date</id>
304 <phase>package</phase>
305 <goals>
306 <goal>tag</goal>
307 <goal>push</goal>
308 </goals>
309 <configuration>
310 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.path}</repository>
311 <tag>${project.version}-${maven.build.timestamp}Z</tag>
312 <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
313 </configuration>
314 </execution>
315 </executions>
316 <dependencies>
317 <!-- To make this work on JDK 9+ -->
318 <dependency>
319 <groupId>javax.activation</groupId>
320 <artifactId>javax.activation-api</artifactId>
321 <version>1.2.0</version>
322 </dependency>
323 </dependencies>
324 </plugin>
325 </plugins>
326 </build>
Kai18e86742020-07-29 11:18:59 +0800327</project>