-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
230 lines (207 loc) · 9.04 KB
/
pom.xml
File metadata and controls
230 lines (207 loc) · 9.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.boraydata.cdc</groupId>
<artifactId>TableCloneManager</artifactId>
<version>1.1</version>
<description>Clone table struct and sync table data,Only good at offline table data.</description>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<descriptorRefs>
<!-- 使用的描述符,按此描述进行打包,此处配置一个zip.xml表示打zip包,如果写 jar-with-dependencies 表示 默认配置文件-->
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<!-- 输出最终的名称-->
<finalName>TCM</finalName>
<!-- 配置是否添加id到名称中,若为true,当前示例中,则为jsw-test-zip.zip,false即不添加,只是jsw-test.zip; -->
<!-- 若同时打多个包,则可设为true,分别添加id以作区分-->
<!-- <appendAssemblyId>true</appendAssemblyId>-->
<!-- 打包的输出目录,可自定义,${project.build.directory}为编译输出目录,即target目录 -->
<!-- <outputDirectory>${project.build.directory}</outputDirectory>-->
<archive>
<!-- 设置 jar 包指定的主类-->
<manifest>
<mainClass>${main-class}</mainClass>
</manifest>
</archive>
<!-- <descriptors>-->
<!-- <!– 使用的描述符,按此描述进行打包,此处配置一个zip.xml表示打zip包 –>-->
<!-- <descriptor>src/main/assembly/assembly-with-TCM.xml</descriptor>-->
<!-- </descriptors>-->
</configuration>
<executions>
<execution>
<!-- id 标识,唯一即可-->
<id>make-assembly</id>
<!-- 设置 package 阶段进行-->
<phase>package</phase>
<goals>
<!-- 只运行一次-->
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<target>1.8</target>
<source>1.8</source>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>
${project.build.directory}/lib
</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>${class-path}</classpathPrefix>
<mainClass>${main-class}</mainClass>
</manifest>
</archive>
<includes>
<include>**/*.class</include>
<include>${log4j-configuration-file}</include>
</includes>
<excludes>
<!-- <exclude>config.properties</exclude>-->
<!-- <exclude>*.back</exclude>-->
</excludes>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<class-path>cdc-libs/</class-path>
<main-class>com.boraydata.cdc.tcm.TableCloneManagerLauncher</main-class>
<!-- <main-class>com.boraydata.cdc.tcm.Test</main-class>-->
<log4j-configuration-file>log4j2.xml</log4j-configuration-file>
<!-- <mysql-connector-java.version>5.1.46</mysql-connector-java.version>-->
<mysql-connector-java.version>8.0.28</mysql-connector-java.version>
<postgresql.version>42.3.1</postgresql.version>
<!-- https://docs.microsoft.com/en-us/sql/connect/jdbc/connecting-with-ssl-encryption?view=sql-server-linux-ver15 -->
<!-- <mssql-jdbc.version>11.1.1.jre8-preview</mssql-jdbc.version>-->
<mssql-jdbc.version>6.4.0.jre8</mssql-jdbc.version>
<jackson.version>2.13.3</jackson.version>
<jedis.version>3.3.0</jedis.version>
<!-- slf4j interface -->
<slf4j-api.version>1.7.36</slf4j-api.version>
<!-- log4j 2 implement -->
<log4j-core.version>2.17.2</log4j-core.version>
<log4j-impl.version>2.17.2</log4j-impl.version>
<!-- slf4j to log4j2 -->
<log4j-slf4j-impl.version>2.17.2</log4j-slf4j-impl.version>
</properties>
<dependencies>
<!-- hive-jdbc-metadata -->
<dependency>
<artifactId>hive-jdbc-metastore</artifactId>
<groupId>com.boraydata</groupId>
<version>1.0</version>
</dependency>
<!-- MySQL -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql-connector-java.version}</version>
</dependency>
<!-- PostGreSQL 13 -->
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>${postgresql.version}</version>
</dependency>
<!-- SQL Server -->
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>${mssql-jdbc.version}</version>
</dependency>
<!-- JSON -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
<!-- Redis -->
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>${jedis.version}</version>
</dependency>
<!-- slf4j interface -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j-api.version}</version>
</dependency>
<!-- Log4j2 implement -->
<!-- log4j2 to slf4j -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>${log4j-slf4j-impl.version}</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- log4j2 -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${log4j-core.version}</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>${log4j-impl.version}</version>
</dependency>
<!-- Test -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.7.2</version>
<scope>test</scope>
<optional>true</optional>
</dependency>
</dependencies>
</project>