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.side.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.side.all.elasticsearch6</artifactId >
13+ <name >elasticsearch6-all-side</name >
14+ <packaging >jar</packaging >
15+
16+ <properties >
17+ <sql .side.elasticsearch6.core.version>1.0-SNAPSHOT</sql .side.elasticsearch6.core.version>
18+ <elasticsearch .version>6.8.6</elasticsearch .version>
19+ </properties >
20+
21+
22+ <dependencies >
23+ <dependency >
24+ <groupId >org.elasticsearch.client</groupId >
25+ <artifactId >elasticsearch-rest-high-level-client</artifactId >
26+ <version >${elasticsearch.version} </version >
27+ </dependency >
28+
29+ <dependency >
30+ <groupId >com.dtstack.flink</groupId >
31+ <artifactId >sql.side.elasticsearch6.core</artifactId >
32+ <version >${sql.side.elasticsearch6.core.version} </version >
33+ </dependency >
34+
35+ <dependency >
36+ <groupId >junit</groupId >
37+ <artifactId >junit</artifactId >
38+ <version >4.12</version >
39+ <scope >test</scope >
40+ </dependency >
41+
42+ </dependencies >
43+
44+ <build >
45+ <plugins >
46+ <plugin >
47+ <groupId >org.apache.maven.plugins</groupId >
48+ <artifactId >maven-shade-plugin</artifactId >
49+ <version >1.4</version >
50+ <executions >
51+ <execution >
52+ <phase >package</phase >
53+ <goals >
54+ <goal >shade</goal >
55+ </goals >
56+ <configuration >
57+ <artifactSet >
58+ <excludes >
59+
60+ </excludes >
61+ </artifactSet >
62+ <filters >
63+ <filter >
64+ <artifact >*:*</artifact >
65+ <excludes >
66+ <exclude >META-INF/*.SF</exclude >
67+ <exclude >META-INF/*.DSA</exclude >
68+ <exclude >META-INF/*.RSA</exclude >
69+ </excludes >
70+ </filter >
71+ </filters >
72+ </configuration >
73+ </execution >
74+ </executions >
75+ </plugin >
76+
77+ <plugin >
78+ <artifactId >maven-antrun-plugin</artifactId >
79+ <version >1.2</version >
80+ <executions >
81+ <execution >
82+ <id >copy-resources</id >
83+ <!-- here the phase you need -->
84+ <phase >package</phase >
85+ <goals >
86+ <goal >run</goal >
87+ </goals >
88+ <configuration >
89+ <tasks >
90+ <copy todir =" ${basedir}/../../../plugins/elasticsearch6allside" >
91+ <fileset dir =" target/" >
92+ <include name =" ${project.artifactId}-${project.version}.jar" />
93+ </fileset >
94+ </copy >
95+
96+ <move file =" ${basedir}/../../../plugins/elasticsearch6allside/${project.artifactId}-${project.version}.jar"
97+ tofile =" ${basedir}/../../../plugins/elasticsearch6allside/${project.name}-${git.branch}.jar" />
98+ </tasks >
99+ </configuration >
100+ </execution >
101+ </executions >
102+ </plugin >
103+ </plugins >
104+ </build >
105+
106+
107+
108+ </project >
0 commit comments