87ae94430d7d2d02b4eaab0d338264b31516bab8
[dcaegen2/services.git] / components / datalake-handler / des / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
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   -->
19
20 <project xmlns="http://maven.apache.org/POM/4.0.0"
21     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>
24
25     <parent>
26         <groupId>org.onap.dcaegen2.services.components</groupId>
27         <artifactId>datalake-handler</artifactId>
28         <version>1.1.1-SNAPSHOT</version>
29     </parent>
30
31     <artifactId>des</artifactId>
32     <packaging>jar</packaging>
33     <name>DataLake Extraction Service</name>
34
35     <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>
41
42     <dependencies>
43
44         <dependency>
45             <groupId>org.jdom</groupId>
46             <artifactId>jdom2</artifactId>
47             <version>2.0.6</version>
48         </dependency>
49
50         <dependency>
51             <groupId>com.facebook.presto</groupId>
52             <artifactId>presto-jdbc</artifactId>
53             <version>0.240</version>
54         </dependency>
55
56         <dependency>
57             <groupId>org.apache.hadoop</groupId>
58             <artifactId>hadoop-client</artifactId>
59             <version>${hadoop.version}</version>
60         </dependency>
61
62         <dependency>
63             <groupId>org.postgresql</groupId>
64             <artifactId>postgresql</artifactId>
65             <version>42.2.18</version>
66         </dependency>
67
68         <dependency>
69             <groupId>org.json</groupId>
70             <artifactId>json</artifactId>
71             <version>20190722</version>
72         </dependency>
73
74         <dependency>
75             <groupId>org.apache.httpcomponents</groupId>
76             <artifactId>httpclient</artifactId>
77             <version>4.5.10</version>
78         </dependency>
79
80         <dependency>
81             <groupId>org.apache.kafka</groupId>
82             <artifactId>kafka-clients</artifactId>
83             <version>2.3.1</version>
84         </dependency>
85
86         <dependency>
87             <groupId>org.springframework.boot</groupId>
88             <artifactId>spring-boot-starter-web</artifactId>
89             <version>${springboot.version}</version>
90         </dependency>
91
92         <dependency>
93             <groupId>org.springframework.boot</groupId>
94             <artifactId>spring-boot-starter-actuator</artifactId>
95             <version>${springboot.version}</version>
96         </dependency>
97
98         <dependency>
99             <groupId>org.springframework.boot</groupId>
100             <artifactId>spring-boot-starter-data-jpa</artifactId>
101             <version>${springboot.version}</version>
102         </dependency>
103
104         <dependency>
105             <groupId>org.springframework.boot</groupId>
106             <artifactId>spring-boot-starter-data-couchbase</artifactId>
107             <version>${springboot.version}</version>
108         </dependency>
109
110         <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>
116
117         <dependency>
118             <groupId>org.springframework.boot</groupId>
119             <artifactId>spring-boot-configuration-processor</artifactId>
120             <version>${springboot.version}</version>
121         </dependency>
122
123         <dependency>
124             <groupId>org.elasticsearch.client</groupId>
125             <artifactId>elasticsearch-rest-high-level-client</artifactId>
126             <version>${elasticsearchjava.version}</version>
127         </dependency>
128
129         <dependency>
130             <groupId>commons-io</groupId>
131             <artifactId>commons-io</artifactId>
132             <version>2.6</version>
133         </dependency>
134
135         <dependency>
136             <groupId>com.fasterxml.jackson.dataformat</groupId>
137             <artifactId>jackson-dataformat-yaml</artifactId>
138             <version>${jackson.version}</version>
139         </dependency>
140
141         <dependency>
142             <groupId>com.fasterxml.jackson.dataformat</groupId>
143             <artifactId>jackson-dataformat-xml</artifactId>
144             <version>${jackson.version}</version>
145         </dependency>
146
147         <dependency>
148             <groupId>com.fasterxml.jackson.core</groupId>
149             <artifactId>jackson-databind</artifactId>
150             <version>${jackson.version}</version>
151         </dependency>
152
153         <dependency>
154             <groupId>com.google.code.gson</groupId>
155             <artifactId>gson</artifactId>
156             <version>2.8.2</version>
157         </dependency>
158
159         <dependency>
160             <groupId>org.projectlombok</groupId>
161             <artifactId>lombok</artifactId>
162             <version>1.18.10</version>
163             <scope>provided</scope>
164         </dependency>
165
166         <dependency>
167             <groupId>io.druid</groupId>
168             <artifactId>tranquility-core_2.11</artifactId>
169             <version>0.8.3</version>
170         </dependency>
171
172         <dependency>
173             <groupId>org.apache.velocity</groupId>
174             <artifactId>velocity-engine-core</artifactId>
175             <version>2.1</version>
176         </dependency>
177
178
179         <dependency>
180             <groupId>org.hibernate</groupId>
181             <artifactId>hibernate-core</artifactId>
182             <version>5.3.7.Final</version>
183         </dependency>
184
185         <!-- jsr303 validation -->
186         <dependency>
187             <groupId>javax.validation</groupId>
188             <artifactId>validation-api</artifactId>
189             <version>2.0.1.Final</version>
190         </dependency>
191
192         <dependency>
193             <groupId>org.hibernate</groupId>
194             <artifactId>hibernate-validator</artifactId>
195             <version>6.1.0.Final</version>
196         </dependency>
197
198         <dependency>
199             <groupId>io.springfox</groupId>
200             <artifactId>springfox-swagger2</artifactId>
201             <version>${swagger.version}</version>
202             <scope>compile</scope>
203         </dependency>
204
205         <dependency>
206             <groupId>io.springfox</groupId>
207             <artifactId>springfox-swagger-ui</artifactId>
208             <version>${swagger.version}</version>
209             <scope>compile</scope>
210         </dependency>
211
212         <dependency>
213             <groupId>org.mongodb</groupId>
214             <artifactId>mongo-java-driver</artifactId>
215             <version>${mongojava.version}</version>
216         </dependency>
217
218         <dependency>
219             <groupId>com.couchbase.mock</groupId>
220             <artifactId>CouchbaseMock</artifactId>
221             <version>1.5.22</version>
222             <scope>test</scope>
223         </dependency>
224
225     </dependencies>
226
227
228     <build>
229         <plugins>
230             <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
239             <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>
272                         <configuration>
273                             <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
274                         </configuration>
275                     </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>
327 </project>