pom.xml 17.8 KB
Newer Older
1
<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">
2 3 4 5 6
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.alibaba.otter</groupId>
    <artifactId>canal</artifactId>
    <packaging>pom</packaging>
    <name>canal module for otter ${project.version}</name>
7
    <version>1.1.5-SNAPSHOT</version>
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
    <url>https://github.com/alibaba/canal</url>
    <parent>
        <groupId>org.sonatype.oss</groupId>
        <artifactId>oss-parent</artifactId>
        <version>7</version>
    </parent>
    <developers>
        <developer>
            <name>agapple</name>
            <url>http://agapple.iteye.com</url>
            <email>jianghang115@gmail.com</email>
            <timezone>8</timezone>
        </developer>
        <developer>
            <name>zavakid</name>
            <url>http://www.zavakid.com</url>
            <email>zava.kid@gmail.com</email>
            <timezone>8</timezone>
        </developer>
        <developer>
            <name>in355hz</name>
            <url>http://in355hz.iteye.com</url>
            <email>in355hz@gmail.com</email>
            <timezone>8</timezone>
        </developer>
    </developers>
A
init  
agapple 已提交
34

35 36 37 38 39 40
    <licenses>
        <license>
            <name>Apache License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0</url>
        </license>
    </licenses>
A
init  
agapple 已提交
41

42 43 44 45 46 47 48 49 50
    <scm>
        <url>git@github.com:alibaba/canal.git</url>
        <connection>scm:git:git@github.com:alibaba/canal.git</connection>
        <developerConnection>scm:git:git@github.com:alibaba/canal.git</developerConnection>
    </scm>

    <repositories>
        <repository>
            <id>central</id>
51
            <url>https://repo1.maven.org/maven2</url>
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
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>java.net</id>
            <url>http://download.java.net/maven/2/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>sonatype</id>
            <name>sonatype</name>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>sonatype-release</id>
            <name>sonatype-release</name>
            <url>https://oss.sonatype.org/service/local/repositories/releases/content</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <!--maven properties-->
        <downloadSources>true</downloadSources>
        <!-- compiler settings properties -->
X
Xin Wang 已提交
98 99
        <java_source_version>1.8</java_source_version>
        <java_target_version>1.8</java_target_version>
100
        <file_encoding>UTF-8</file_encoding>
A
agapple 已提交
101
        <javadoc_skip>true</javadoc_skip>
102
        <spring_version>5.0.5.RELEASE</spring_version>
X
Xin Wang 已提交
103 104
        <maven-jacoco-plugin.version>0.8.3</maven-jacoco-plugin.version>
        <maven-surefire.version>2.22.1</maven-surefire.version>
105 106
        <argline>-server -Xms512m -Xmx1024m -Dfile.encoding=UTF-8
            -Djava.net.preferIPv4Stack=true -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m
X
Xin Wang 已提交
107
        </argline>
108
        <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
109
        <javax.annotation-api.version>1.3.2</javax.annotation-api.version>
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
    </properties>

    <modules>
        <module>common</module>
        <module>meta</module>
        <module>dbsync</module>
        <module>filter</module>
        <module>driver</module>
        <module>parse</module>
        <module>sink</module>
        <module>store</module>
        <module>protocol</module>
        <module>instance</module>
        <module>server</module>
        <module>client</module>
        <module>deployer</module>
        <module>example</module>
127
        <module>prometheus</module>
A
agapple 已提交
128
        <module>admin</module>
M
mcy 已提交
129
        <module>client-adapter</module>
R
rewerma 已提交
130
        <module>connector</module>
131 132 133 134 135
    </modules>

    <dependencyManagement>
        <dependencies>
            <dependency>
A
agapple 已提交
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
                    <groupId>org.springframework</groupId>
                    <artifactId>spring-core</artifactId>
                    <version>${spring_version}</version>
            </dependency>
            <dependency>
                    <groupId>org.springframework</groupId>
                    <artifactId>spring-aop</artifactId>
                    <version>${spring_version}</version>
            </dependency>
            <dependency>
                    <groupId>org.springframework</groupId>
                    <artifactId>spring-context</artifactId>
                    <version>${spring_version}</version>
            </dependency>
            <dependency>
                    <groupId>org.springframework</groupId>
                    <artifactId>spring-jdbc</artifactId>
                    <version>${spring_version}</version>
            </dependency>
            <dependency>
                    <groupId>org.springframework</groupId>
                    <artifactId>spring-orm</artifactId>
                    <version>${spring_version}</version>
159
            </dependency>
K
kaimingwan 已提交
160 161 162
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-test</artifactId>
A
agapple 已提交
163
                <version>${spring_version}</version>
K
kaimingwan 已提交
164 165
                <scope>test</scope>
            </dependency>
A
init  
agapple 已提交
166 167
            <!-- external -->
            <dependency>
168 169 170 171 172 173 174 175 176
                <groupId>commons-lang</groupId>
                <artifactId>commons-lang</artifactId>
                <version>2.6</version>
            </dependency>
            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>2.4</version>
            </dependency>
A
agapple 已提交
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
            <dependency>
                <groupId>commons-codec</groupId>
                <artifactId>commons-codec</artifactId>
                <version>1.9</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-compress</artifactId>
                <version>1.9</version>
            </dependency>
            <dependency>
                <groupId>org.apache.httpcomponents</groupId>
                <artifactId>httpclient</artifactId>
                <version>4.5.1</version>
            </dependency>
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215
            <dependency>
                <groupId>org.apache.zookeeper</groupId>
                <artifactId>zookeeper</artifactId>
                <version>3.4.5</version>
                <exclusions>
                    <exclusion>
                        <groupId>log4j</groupId>
                        <artifactId>log4j</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-log4j12</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-api</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>jline</groupId>
                        <artifactId>jline</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
A
alex.zheng 已提交
216
                <groupId>com.101tec</groupId>
217
                <artifactId>zkclient</artifactId>
A
alex.zheng 已提交
218
                <version>0.10</version>
219 220 221 222
            </dependency>
            <dependency>
                <groupId>com.alibaba</groupId>
                <artifactId>fastjson</artifactId>
K
Koshoooooo 已提交
223
                <version>1.2.58.sec06</version>
224 225 226 227
            </dependency>
            <dependency>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
文哥 已提交
228
                <version>22.0</version>
229 230 231 232 233 234
            </dependency>
            <dependency>
                <groupId>com.googlecode.aviator</groupId>
                <artifactId>aviator</artifactId>
                <version>2.2.1</version>
            </dependency>
235 236 237 238 239
            <dependency>
                <groupId>com.alibaba</groupId>
                <artifactId>fastjson</artifactId>
                <version>1.2.58.sec06</version>
            </dependency>
240 241 242 243 244
            <dependency>
                <groupId>oro</groupId>
                <artifactId>oro</artifactId>
                <version>2.0.8</version>
            </dependency>
A
agapple 已提交
245 246 247 248 249
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-all</artifactId>
                <version>4.1.6.Final</version>
            </dependency>
250 251 252
            <dependency>
                <groupId>com.google.protobuf</groupId>
                <artifactId>protobuf-java</artifactId>
W
WithLin 已提交
253
                <version>3.6.1</version>
254
            </dependency>
K
kaimingwan 已提交
255
            <dependency>
256 257 258 259 260 261 262 263
                <groupId>org.mybatis</groupId>
                <artifactId>mybatis-spring</artifactId>
                <version>2.0.4</version>
            </dependency>
            <dependency>
                <groupId>org.mybatis</groupId>
                <artifactId>mybatis</artifactId>
                <version>3.5.4</version>
K
kaimingwan 已提交
264 265 266 267
            </dependency>
            <dependency>
                <groupId>com.alibaba</groupId>
                <artifactId>druid</artifactId>
温绍锦 已提交
268
                <version>1.2.1</version>
K
kaimingwan 已提交
269
            </dependency>
270 271 272 273 274
            <dependency>
                <groupId>com.lmax</groupId>
                <artifactId>disruptor</artifactId>
                <version>3.4.2</version>
            </dependency>
A
init  
agapple 已提交
275 276
            <!-- log -->
            <dependency>
277 278 279 280
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-core</artifactId>
                <version>1.1.3</version>
            </dependency>
A
init  
agapple 已提交
281
            <dependency>
282 283 284 285 286 287 288 289 290 291 292 293 294 295
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-classic</artifactId>
                <version>1.1.3</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>jcl-over-slf4j</artifactId>
                <version>1.7.12</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>1.7.12</version>
            </dependency>
A
agapple 已提交
296 297 298 299 300
            <dependency>
                <groupId>com.h2database</groupId>
                <artifactId>h2</artifactId>
                <version>1.4.196</version>
            </dependency>
301 302 303 304 305 306 307
            <!-- test dependency -->
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>4.12</version>
                <scope>test</scope>
            </dependency>
A
agapple 已提交
308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331
            <dependency>
                <groupId>org.powermock</groupId>
                <artifactId>powermock-api-mockito</artifactId>
                <version>1.6.5</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.powermock</groupId>
                <artifactId>powermock-module-junit4</artifactId>
                <version>1.6.5</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-all</artifactId>
                <version>1.10.19</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.diffblue</groupId>
                <artifactId>deeptestutils</artifactId>
                <version>1.9.0</version>
                <scope>test</scope>
            </dependency>
332 333 334
            <dependency>
                <groupId>mysql</groupId>
                <artifactId>mysql-connector-java</artifactId>
335
                <version>5.1.48</version>
K
kaimingwan 已提交
336
                <!--<scope>test</scope>-->
337
            </dependency>
七锋 已提交
338 339 340 341 342
            <dependency>
                <groupId>com.google.code.findbugs</groupId>
                <artifactId>jsr305</artifactId>
                <version>3.0.2</version>
            </dependency>
343 344 345 346 347
            <dependency>
                <groupId>javax.annotation</groupId>
                <artifactId>javax.annotation-api</artifactId>
                <version>${javax.annotation-api.version}</version>
            </dependency>
348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367
        </dependencies>
    </dependencyManagement>

    <build>
        <extensions>
            <extension>
                <groupId>org.jvnet.wagon-svn</groupId>
                <artifactId>wagon-svn</artifactId>
                <version>1.9</version>
            </extension>
            <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-http-shared</artifactId>
                <version>1.0-beta-7</version>
            </extension>
        </extensions>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
368
                <version>2.4</version>
369 370 371 372 373 374 375 376 377 378 379 380
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
381
                <version>${maven-compiler-plugin.version}</version>
382 383 384 385 386 387
                <configuration>
                    <source>${java_source_version}</source>
                    <target>${java_target_version}</target>
                    <encoding>${file_encoding}</encoding>
                </configuration>
            </plugin>
X
Xin Wang 已提交
388
            <plugin>
X
Xin Wang 已提交
389 390 391 392 393
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>${maven-jacoco-plugin.version}</version>
                <executions>
                    <execution>
X
Xin Wang 已提交
394
                        <id>jacoco-initialize</id>
X
Xin Wang 已提交
395 396 397 398 399 400 401 402
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                        <configuration>
                            <propertyName>jacocoArgLine</propertyName>
                        </configuration>
                    </execution>
                    <execution>
X
Xin Wang 已提交
403 404
                        <id>report-aggregate</id>
                        <phase>verify</phase>
X
Xin Wang 已提交
405
                        <goals>
X
Xin Wang 已提交
406
                            <goal>report-aggregate</goal>
X
Xin Wang 已提交
407 408 409 410 411 412 413 414
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>${maven-surefire.version}</version>
415
                <configuration>
X
Xin Wang 已提交
416 417
                    <useSystemClassLoader>true</useSystemClassLoader>
                    <forkMode>once</forkMode>
X
Xin Wang 已提交
418 419 420 421
                    <argLine>${argline} ${jacocoArgLine}</argLine>
                    <systemProperties>
                        <!-- common shared -->
                    </systemProperties>
422 423
                </configuration>
            </plugin>
A
init  
agapple 已提交
424
            <!-- javadoc -->
425 426 427 428 429 430 431 432 433 434 435 436 437
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>2.9.1</version>
                <executions>
                    <execution>
                            <id>attach-javadocs</id>
                            <goals>
                                <goal>jar</goal>
                            </goals>
                        </execution>
                    </executions>
                <configuration>
A
agapple 已提交
438
                  <skip>${javadoc_skip}</skip>
439 440 441 442 443 444 445
                  <!-- workaround for https://bugs.openjdk.java.net/browse/JDK-8212233 -->
                  <javaApiLinks>
                     <property>
                         <name>foo</name>
                         <value>bar</value>
                     </property>
                  </javaApiLinks>
446 447 448 449 450
                  <encoding>${file_encoding}</encoding>
                  <charset>${file_encoding}</charset>
                  <additionalparam>-Xdoclint:none</additionalparam>
                </configuration>
            </plugin>
451
        </plugins>
452 453 454 455 456 457 458 459
        <pluginManagement>
            <plugins>
                <plugin>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>3.0.2</version>
                </plugin>
            </plugins>
        </pluginManagement>
460 461 462 463 464 465 466 467 468 469 470 471 472 473
    </build>

    <distributionManagement>
        <snapshotRepository>
            <id>sonatype-nexus-snapshots</id>
            <name>Sonatype Nexus Snapshots</name>
            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
        </snapshotRepository>
        <repository>
            <id>sonatype-nexus-staging</id>
            <name>Nexus Release Repository</name>
            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
    </distributionManagement>
A
init  
agapple 已提交
474
</project>