1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
5+ <parent >
6+ <artifactId >sql.elasticsearch6</artifactId >
7+ <groupId >com.dtstack.flink</groupId >
8+ <version >1.0-SNAPSHOT</version >
9+ </parent >
10+ <modelVersion >4.0.0</modelVersion >
11+
12+ <artifactId >sql.sink.elasticsearch6</artifactId >
13+ <name >elasticsearch6-sink</name >
14+
15+ <properties >
16+ <elasticsearch .version>6.8.6</elasticsearch .version>
17+ </properties >
18+
19+ <dependencies >
20+ <dependency >
21+ <groupId >org.apache.flink</groupId >
22+ <artifactId >flink-streaming-java_2.11</artifactId >
23+ <version >${flink.version} </version >
24+ <scope >provided</scope >
25+ </dependency >
26+
27+ <dependency >
28+ <groupId >org.elasticsearch.client</groupId >
29+ <artifactId >elasticsearch-rest-high-level-client</artifactId >
30+ <version >${elasticsearch.version} </version >
31+ </dependency >
32+
33+ <dependency >
34+ <groupId >ch.qos.logback</groupId >
35+ <artifactId >logback-core</artifactId >
36+ <version >1.1.7</version >
37+ </dependency >
38+
39+ <dependency >
40+ <groupId >ch.qos.logback</groupId >
41+ <artifactId >logback-classic</artifactId >
42+ <version >1.1.7</version >
43+ </dependency >
44+
45+ <dependency >
46+ <groupId >org.apache.logging.log4j</groupId >
47+ <artifactId >log4j-to-slf4j</artifactId >
48+ <version >2.7</version >
49+ </dependency >
50+
51+ <dependency >
52+ <groupId >org.apache.flink</groupId >
53+ <artifactId >flink-connector-elasticsearch6_2.11</artifactId >
54+ <version >${flink.version} </version >
55+ </dependency >
56+
57+ <dependency >
58+ <groupId >org.apache.flink</groupId >
59+ <artifactId >flink-connector-elasticsearch-base_2.11</artifactId >
60+ <version >${flink.version} </version >
61+ </dependency >
62+ </dependencies >
63+
64+ <build >
65+ <plugins >
66+ <plugin >
67+ <groupId >org.apache.maven.plugins</groupId >
68+ <artifactId >maven-shade-plugin</artifactId >
69+ <version >1.4</version >
70+ <executions >
71+ <execution >
72+ <phase >package</phase >
73+ <goals >
74+ <goal >shade</goal >
75+ </goals >
76+ <configuration >
77+ <artifactSet >
78+ <excludes >
79+ <!-- <exclude>org.apache.logging.log4j:log4j-to-slf4j</exclude>-->
80+ </excludes >
81+ </artifactSet >
82+ <filters >
83+ <filter >
84+ <artifact >*:*</artifact >
85+ <excludes >
86+ <exclude >META-INF/*.SF</exclude >
87+ <exclude >META-INF/*.DSA</exclude >
88+ <exclude >META-INF/*.RSA</exclude >
89+ </excludes >
90+ </filter >
91+ </filters >
92+ </configuration >
93+ </execution >
94+ </executions >
95+ </plugin >
96+
97+ <plugin >
98+ <artifactId >maven-antrun-plugin</artifactId >
99+ <version >1.2</version >
100+ <executions >
101+ <execution >
102+ <id >copy-resources</id >
103+ <!-- here the phase you need -->
104+ <phase >package</phase >
105+ <goals >
106+ <goal >run</goal >
107+ </goals >
108+ <configuration >
109+ <tasks >
110+ <copy todir =" ${basedir}/../../plugins/elasticsearch6sink" >
111+ <fileset dir =" target/" >
112+ <include name =" ${project.artifactId}-${project.version}.jar" />
113+ </fileset >
114+ </copy >
115+
116+ <move file =" ${basedir}/../../plugins/elasticsearch6sink/${project.artifactId}-${project.version}.jar"
117+ tofile =" ${basedir}/../../plugins/elasticsearch6sink/${project.name}-${git.branch}.jar" />
118+ </tasks >
119+ </configuration >
120+ </execution >
121+ </executions >
122+ </plugin >
123+ </plugins >
124+ </build >
125+
126+ </project >
0 commit comments