|
@@ -15,7 +15,93 @@
|
|
|
<groupId>com.alibaba.otter</groupId>
|
|
|
<artifactId>canal.protocol</artifactId>
|
|
|
<version>${project.version}</version>
|
|
|
+ <optional>true</optional>
|
|
|
</dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.google.protobuf</groupId>
|
|
|
+ <artifactId>protobuf-java</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- https://mvnrepository.com/artifact/io.netty/netty-all -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>io.netty</groupId>
|
|
|
+ <artifactId>netty-all</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!-- zk -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.zookeeper</groupId>
|
|
|
+ <artifactId>zookeeper</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.101tec</groupId>
|
|
|
+ <artifactId>zkclient</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!-- external -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>commons-io</groupId>
|
|
|
+ <artifactId>commons-io</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>commons-lang</groupId>
|
|
|
+ <artifactId>commons-lang</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>commons-codec</groupId>
|
|
|
+ <artifactId>commons-codec</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
+ <artifactId>fastjson</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.google.guava</groupId>
|
|
|
+ <artifactId>guava</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!-- log -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>ch.qos.logback</groupId>
|
|
|
+ <artifactId>logback-core</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>ch.qos.logback</groupId>
|
|
|
+ <artifactId>logback-classic</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.slf4j</groupId>
|
|
|
+ <artifactId>jcl-over-slf4j</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.slf4j</groupId>
|
|
|
+ <artifactId>slf4j-api</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
+ <artifactId>spring-core</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
+ <artifactId>spring-aop</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
+ <artifactId>spring-context</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
+ <artifactId>spring-jdbc</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
+ <artifactId>spring-orm</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
+ <artifactId>spring-test</artifactId>
|
|
|
+ <version>${spring_version}</version>
|
|
|
+ <scope>test</scope>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
<!-- 客户端要使用请单独引入kafka依赖 -->
|
|
|
<dependency>
|
|
|
<groupId>org.apache.kafka</groupId>
|
|
@@ -28,9 +114,76 @@
|
|
|
<dependency>
|
|
|
<groupId>junit</groupId>
|
|
|
<artifactId>junit</artifactId>
|
|
|
+ <scope>test</scope>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
-
|
|
|
+
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-shade-plugin</artifactId>
|
|
|
+ <version>2.4.1</version>
|
|
|
+ <configuration>
|
|
|
+ <createDependencyReducedPom>false</createDependencyReducedPom>
|
|
|
+ <artifactSet>
|
|
|
+ <excludes>
|
|
|
+ <exclude>org.apache.zookeeper:zookeeper</exclude>
|
|
|
+ <exclude>com.101tec:zkclient</exclude>
|
|
|
+ <exclude>commons-io:commons-io</exclude>
|
|
|
+ <exclude>commons-lang:commons-lang</exclude>
|
|
|
+ <exclude>commons-codec:commons-codec</exclude>
|
|
|
+ <exclude>com.alibaba:fastjson</exclude>
|
|
|
+ <exclude>ch.qos.logback:logback-core</exclude>
|
|
|
+ <exclude>ch.qos.logback:logback-classic</exclude>
|
|
|
+ <exclude>org.slf4j:jcl-over-slf4j</exclude>
|
|
|
+ <exclude>org.slf4j:slf4j-api</exclude>
|
|
|
+ <exclude>org.springframework:*</exclude>
|
|
|
+ <exclude>org.jboss.netty:netty</exclude>
|
|
|
+ <exclude>commons-logging:commons-logging</exclude>
|
|
|
+ <exclude>aopalliance:aopalliance</exclude>
|
|
|
+ <exclude>com.google.protobuf:protobuf-java</exclude>
|
|
|
+ <exclude>io.netty:*</exclude>
|
|
|
+ <exclude>junit:junit</exclude>
|
|
|
+ </excludes>
|
|
|
+ </artifactSet>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <phase>package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>shade</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <relocations>
|
|
|
+ <relocation>
|
|
|
+ <pattern>com.google.guava</pattern>
|
|
|
+ <shadedPattern>com.alibaba.google.guava</shadedPattern>
|
|
|
+ </relocation>
|
|
|
+ <relocation>
|
|
|
+ <pattern>org.joda</pattern>
|
|
|
+ <shadedPattern>com.alibaba.google.joda</shadedPattern>
|
|
|
+ </relocation>
|
|
|
+ <relocation>
|
|
|
+ <pattern>com.google.common</pattern>
|
|
|
+ <shadedPattern>com.alibaba.google.common</shadedPattern>
|
|
|
+ </relocation>
|
|
|
+ <relocation>
|
|
|
+ <pattern>com.google.thirdparty</pattern>
|
|
|
+ <shadedPattern>com.alibaba.google.thirdparty</shadedPattern>
|
|
|
+ </relocation>
|
|
|
+ </relocations>
|
|
|
+ <transformers>
|
|
|
+ <transformer
|
|
|
+ implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"/>
|
|
|
+ </transformers>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+
|
|
|
<profiles>
|
|
|
<profile>
|
|
|
<id>dev</id>
|
|
@@ -98,7 +251,7 @@
|
|
|
<content>${project.build.directory}/apidocs</content>
|
|
|
<skipDeletedFiles>true</skipDeletedFiles>
|
|
|
<pubScmUrl>scm:git:git@github.com:alibaba/canal.git</pubScmUrl>
|
|
|
- <scmBranch>gh-pages</scmBranch>
|
|
|
+ <scmBranch>gh-pages</scmBranch>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
</plugins>
|