| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <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/maven-v4_0_0.xsd"> |
| |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>com.alibaba.blink</groupId> |
| <artifactId>flink-connectors</artifactId> |
| <version>1.5.1</version> |
| <relativePath>..</relativePath> |
| </parent> |
| |
| <artifactId>flink-connector-rabbitmq_${scala.binary.version}</artifactId> |
| <name>flink-connector-rabbitmq</name> |
| |
| <packaging>jar</packaging> |
| |
| <!-- Allow users to pass custom connector versions --> |
| <properties> |
| <rabbitmq.version>4.2.0</rabbitmq.version> |
| </properties> |
| |
| <dependencies> |
| |
| <dependency> |
| <groupId>com.alibaba.blink</groupId> |
| <artifactId>flink-table_${scala.binary.version}</artifactId> |
| <version>${project.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.alibaba.blink</groupId> |
| <artifactId>flink-streaming-java_${scala.binary.version}</artifactId> |
| <version>${project.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.alibaba.blink</groupId> |
| <artifactId>flink-streaming-scala_${scala.binary.version}</artifactId> |
| <version>${project.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.rabbitmq</groupId> |
| <artifactId>amqp-client</artifactId> |
| <version>${rabbitmq.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.alibaba.blink</groupId> |
| <artifactId>flink-streaming-java_${scala.binary.version}</artifactId> |
| <version>${project.version}</version> |
| <scope>test</scope> |
| <type>test-jar</type> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.alibaba.blink</groupId> |
| <artifactId>flink-runtime_${scala.binary.version}</artifactId> |
| <version>${project.version}</version> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>shade-flink</id> |
| <configuration> |
| <createDependencyReducedPom>false</createDependencyReducedPom> |
| <shadedArtifactAttached>true</shadedArtifactAttached> |
| <shadedClassifierName>jar-with-dependencies</shadedClassifierName> |
| <filters> |
| <filter> |
| <artifact>*:*</artifact> |
| <excludes> |
| <exclude>META-INF/*.SF</exclude> |
| <exclude>META-INF/*.DSA</exclude> |
| <exclude>META-INF/*.RSA</exclude> |
| </excludes> |
| </filter> |
| </filters> |
| <artifactSet combine.self="override"> |
| <excludes> |
| <!-- log4j --> |
| <exclude>org.slf4j:slf4j-log4j12</exclude> |
| <exclude>log4j:log4j</exclude> |
| <!-- jars imported by parent --> |
| <exclude>org.slf4j:slf4j-api</exclude> |
| <exclude>com.google.code.findbugs:jsr305</exclude> |
| <!-- flink shaded jars --> |
| <exclude>com.alibaba.blink:flink-shaded-*</exclude> |
| <exclude>org.apache.flink:flink-shaded-*</exclude> |
| <exclude>com.google.guava:guava</exclude> |
| <exclude>com.fasterxml.jackson.*:*</exclude> |
| <exclude>tv.cntt:*</exclude> |
| <exclude>io.netty:*</exclude> |
| <exclude>org.ow2.asm:*</exclude> |
| <!-- other third-party jars we must use --> |
| <exclude>commons-logging:commons-logging</exclude> |
| <exclude>commons-codec:commons-codec</exclude> |
| <exclude>commons-collections:commons-collections</exclude> |
| <exclude>org.apache.commons:commons-lang3</exclude> |
| </excludes> |
| </artifactSet> |
| <relocations> |
| <relocation> |
| <pattern>com.google.common</pattern> |
| <shadedPattern>org.apache.flink.shaded.guava18.com.google.common</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.fasterxml.jackson</pattern> |
| <shadedPattern>org.apache.flink.shaded.jackson2.com.fasterxml.jackson |
| </shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>io.netty</pattern> |
| <shadedPattern>org.apache.flink.shaded.netty4.io.netty</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>jauter</pattern> |
| <shadedPattern>org.apache.flink.shaded.netty4.jauter</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.objectweb</pattern> |
| <shadedPattern>org.apache.flink.shaded.asm5.org.objectweb</shadedPattern> |
| </relocation> |
| </relocations> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |