Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
122 changes: 122 additions & 0 deletions chunjun-catalog/chunjun-catalog-iceberg/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>com.dtstack.chunjun</groupId>
<artifactId>chunjun-catalog</artifactId>
<version>${revision}</version>
</parent>

<modelVersion>4.0.0</modelVersion>

<artifactId>chunjun-catalog-iceberg</artifactId>
<name>ChunJun : Catalog : Iceberg</name>

<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<description>iceberg</description>

<dependencies>
<!-- https://mvnrepository.com/artifact/org.apache.iceberg/iceberg-core -->
<dependency>
<groupId>org.apache.iceberg</groupId>
<artifactId>iceberg-core</artifactId>
<version>1.10.0</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
<filter>
<artifact>org.apache.iceberg:iceberg-flink-runtime-1.16</artifact>
<excludes>
<exclude>META-INF/versions/17/*/**</exclude>
<exclude>META-INF/versions/19/*/**</exclude>
</excludes>
</filter>
</filters>
<relocations>
<relocation>
<pattern>com.google.common</pattern>
<shadedPattern>shade.core.com.google.common</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.flink.configuration.AkkaOptions</pattern>
<shadedPattern>shade.core.com.google.common</shadedPattern>
</relocation>
<!--<relocation>-->
<!-- <pattern>org.apache.hadoop.hive.</pattern>-->
<!-- <shadedPattern>shade.iceberg.catalog.org.apache.hadoop.hive.</shadedPattern>-->
<!--</relocation>-->
<!-- In order to get the HiveVersion correctly -->
<relocation>
<pattern>org.apache.hive.common.HiveVersionAnnotation</pattern>
<shadedPattern>shade.iceberg.catalog.org.apache.hive.common.HiveVersionAnnotation
</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.hive.common.package-info</pattern>
<shadedPattern>shade.iceberg.catalog.org.apache.hive.common.package-info
</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<!-- here the phase you need -->
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<copy todir="${basedir}/../../${dist.dir}/catalog/iceberg"
file="${basedir}/target/${project.artifactId}-${project.version}.jar"/>
<!--suppress UnresolvedMavenProperty -->
<move file="${basedir}/../../${dist.dir}/catalog/iceberg/${project.artifactId}-${project.version}.jar"
tofile="${basedir}/../../${dist.dir}/catalog/iceberg/${project.artifactId}.jar"/>
<delete>
<!--suppress UnresolvedMavenProperty -->
<fileset dir="${basedir}/../../${dist.dir}/catalog/iceberg/"
includes="${project.artifactId}-*.jar"
excludes="${project.artifactId}.jar"/>
</delete>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
99 changes: 99 additions & 0 deletions chunjun-catalog/chunjun-catalog-paimon/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>com.dtstack.chunjun</groupId>
<artifactId>chunjun-catalog</artifactId>
<version>${revision}</version>
</parent>

<modelVersion>4.0.0</modelVersion>

<artifactId>chunjun-catalog-paimon</artifactId>
<name>ChunJun : Catalog : Paimon</name>

<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<paimon.version>1.3.0</paimon.version>
</properties>

<description>paimon</description>

<dependencies>
<!-- https://mvnrepository.com/artifact/org.apache.paimon/paimon-flink-1.16 -->
<dependency>
<groupId>org.apache.paimon</groupId>
<artifactId>paimon-flink-1.16</artifactId>
<version>${paimon.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.4.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<exclude>META-INF/versions/**</exclude>
</excludes>
</filter>
</filters>
<relocations>
<relocation>
<pattern>com.google.common</pattern>
<shadedPattern>com.dtstack.chunjun.connector.shaded.hudi.com.google.common</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<!-- here the phase you need -->
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<copy todir="${basedir}/../../${dist.dir}/catalog/paimon"
file="${basedir}/target/${project.artifactId}-${project.version}.jar"/>
<!--suppress UnresolvedMavenProperty -->
<move file="${basedir}/../../${dist.dir}/catalog/paimon/${project.artifactId}-${project.version}.jar"
tofile="${basedir}/../../${dist.dir}/catalog/paimon/${project.artifactId}.jar"/>
<delete>
<!--suppress UnresolvedMavenProperty -->
<fileset dir="${basedir}/../../${dist.dir}/catalog/paimon/"
includes="${project.artifactId}-*.jar"
excludes="${project.artifactId}.jar"/>
</delete>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
89 changes: 89 additions & 0 deletions chunjun-catalog/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>chunjun</artifactId>
<groupId>com.dtstack.chunjun</groupId>
<version>${revision}</version>
</parent>

<modelVersion>4.0.0</modelVersion>

<artifactId>chunjun-catalog</artifactId>
<name>ChunJun : Catalog</name>
<packaging>pom</packaging>

<modules>
<module>chunjun-catalog-iceberg</module>
<module>chunjun-catalog-paimon</module>
</modules>

<properties>
<catalog.base.dir>catalog</catalog.base.dir>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<slf4j.version>1.7.30</slf4j.version>
<shading.prefix>chunjun.catalog.shaded</shading.prefix>
<dist.dir>chunjun-dist</dist.dir>
</properties>

<dependencies>
<dependency>
<groupId>com.dtstack.chunjun</groupId>
<artifactId>chunjun-core</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>1.20</version>
</dependency>
</dependencies>
<dependencyManagement>
</dependencyManagement>

<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<!-- here the phase you need -->
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<copy todir="${basedir}/../../${dist.dir}/${catalog.base.dir}/${catalog.dir}/"
file="${basedir}/target/${project.artifactId}-${project.version}.jar"/>
<move file="${basedir}/../../${dist.dir}/${catalog.base.dir}/${catalog.dir}/${project.artifactId}-${project.version}.jar"
tofile="${basedir}/../../${dist.dir}/${catalog.base.dir}/${catalog.dir}/${project.artifactId}.jar"/>
<delete>
<fileset dir="${basedir}/../../${dist.dir}/${catalog.base.dir}/${catalog.dir}/"
includes="${project.artifactId}-*.jar"
excludes="${project.artifactId}.jar"/>
</delete>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>

</project>
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<name>ChunJun</name>

<modules>
<module>chunjun-catalog</module>
<module>chunjun-core</module>
<module>chunjun-connectors</module>
<module>chunjun-clients</module>
Expand Down