| <?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/xsd/maven-4.0.0.xsd"> |
| <parent> |
| <artifactId>hudi</artifactId> |
| <groupId>org.apache.hudi</groupId> |
| <version>0.13.1</version> |
| <relativePath>../../pom.xml</relativePath> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| <artifactId>hudi-cli-bundle_${scala.binary.version}</artifactId> |
| <packaging>jar</packaging> |
| |
| <properties> |
| <checkstyle.skip>true</checkstyle.skip> |
| <main.basedir>${project.parent.basedir}</main.basedir> |
| <skipTests>true</skipTests> |
| <!-- jakarta and jline version chosen based on hibernate validator https://mvnrepository.com/artifact/org.hibernate.validator/hibernate-validator/6.2.4.Final --> |
| <jakarta.el.version>3.0.3</jakarta.el.version> |
| <jakarta.validation.version>2.0.2</jakarta.validation.version> |
| <jline.version>3.21.0</jline.version> |
| <hudi.cli.gson.version>2.6.2</hudi.cli.gson.version> |
| <commons-configuration-2.version>2.8.0</commons-configuration-2.version> |
| </properties> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>${maven-shade-plugin.version}</version> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <createSourcesJar>${shadeSources}</createSourcesJar> |
| <dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml |
| </dependencyReducedPomLocation> |
| <transformers> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer"/> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer"> |
| <addHeader>true</addHeader> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> |
| <resource>META-INF/LICENSE</resource> |
| <file>target/classes/META-INF/LICENSE</file> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| <resource>META-INF/spring.handlers</resource> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| <resource>META-INF/spring.schemas</resource> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| <resource>META-INF/spring.factories</resource> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| <mainClass>org.apache.hudi.cli.Main</mainClass> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| <resource>META-INF/spring/org.springframework.boot.actuate.autoconfigure.web.ManagementContextConfiguration.imports</resource> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| <resource>META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports</resource> |
| </transformer> |
| </transformers> |
| <artifactSet> |
| <includes combine.children="append"> |
| <!-- hudi --> |
| <include>org.apache.hudi:hudi-cli</include> |
| <include>org.apache.hudi:hudi-utilities_${scala.binary.version}</include> |
| |
| <!-- Kryo --> |
| <include>com.esotericsoftware:kryo-shaded</include> |
| <include>com.esotericsoftware:minlog</include> |
| <include>org.objenesis:objenesis</include> |
| |
| <!-- cli related dependencies --> |
| <include>com.fasterxml:classmate</include> |
| <include>com.fasterxml.woodstox:woodstox-core</include> |
| <include>com.google.code.gson:gson</include> |
| <include>com.google.re2j:re2j</include> |
| <include>com.jakewharton.fliptables:fliptables</include> |
| |
| <include>jakarta.el:jakarta.el-api</include> |
| <include>jakarta.validation:jakarta.validation-api</include> |
| <include>net.java.dev.jna:jna</include> |
| |
| <include>org.apache.commons:commons-configuration2</include> |
| <include>org.apache.httpcomponents:httpclient</include> |
| <include>org.apache.httpcomponents:httpcore</include> |
| <include>org.apache.httpcomponents:fluent-hc</include> |
| <include>org.apache.logging.log4j:log4j-1.2-api</include> |
| <include>org.apache.logging.log4j:log4j-api</include> |
| <include>org.apache.logging.log4j:log4j-core</include> |
| |
| <include>org.codehaus.woodstox:stax2-api</include> |
| <include>org.fusesource.jansi:jansi</include> |
| <include>org.glassfish:jakarta.el</include> |
| <include>org.hibernate.validator:hibernate-validator</include> |
| <include>org.jboss.logging:jboss-logging</include> |
| <include>org.jline:*</include> |
| <include>org.springframework*:*</include> |
| <include>org.springframework.boot:*</include> |
| <include>org.yaml:*</include> |
| </includes> |
| </artifactSet> |
| <relocations> |
| <!-- Kryo --> |
| <relocation> |
| <pattern>com.esotericsoftware.kryo.</pattern> |
| <shadedPattern>org.apache.hudi.com.esotericsoftware.kryo.</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.esotericsoftware.reflectasm.</pattern> |
| <shadedPattern>org.apache.hudi.com.esotericsoftware.reflectasm.</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.esotericsoftware.minlog.</pattern> |
| <shadedPattern>org.apache.hudi.com.esotericsoftware.minlog.</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.objenesis.</pattern> |
| <shadedPattern>org.apache.hudi.org.objenesis.</shadedPattern> |
| </relocation> |
| |
| <relocation> |
| <pattern>com.google.code.gson.</pattern> |
| <shadedPattern>org.apache.hudi.com.google.code.gson.</shadedPattern> |
| </relocation> |
| </relocations> |
| <filters> |
| <filter> |
| <artifact>*:*</artifact> |
| <excludes> |
| <exclude>META-INF/*.SF</exclude> |
| <exclude>META-INF/*.DSA</exclude> |
| <exclude>META-INF/*.RSA</exclude> |
| <exclude>**/*.proto</exclude> |
| <exclude>**/Log4j2Plugins.dat</exclude> |
| </excludes> |
| </filter> |
| </filters> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| <resources> |
| <resource> |
| <directory>hudi-cli/src/main/resources</directory> |
| </resource> |
| </resources> |
| </build> |
| |
| <dependencies> |
| <!-- Hoodie --> |
| <dependency> |
| <groupId>org.apache.hudi</groupId> |
| <artifactId>hudi-cli</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hudi</groupId> |
| <artifactId>hudi-utilities_${scala.binary.version}</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <!-- Kryo --> |
| <dependency> |
| <groupId>com.esotericsoftware</groupId> |
| <artifactId>kryo-shaded</artifactId> |
| <version>${kryo.shaded.version}</version> |
| <scope>compile</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-common</artifactId> |
| <version>${hadoop.version}</version> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-validation</artifactId> |
| <version>${springboot.version}</version> |
| <scope>compile</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-logging</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>logback-classic</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.shell</groupId> |
| <artifactId>spring-shell-starter</artifactId> |
| <version>${spring.shell.version}</version> |
| <scope>compile</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>logback-classic</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>com.google.code.gson</groupId> |
| <artifactId>gson</artifactId> |
| <version>${hudi.cli.gson.version}</version> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.glassfish</groupId> |
| <artifactId>jakarta.el</artifactId> |
| <version>${jakarta.el.version}</version> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>jakarta.el</groupId> |
| <artifactId>jakarta.el-api</artifactId> |
| <version>${jakarta.el.version}</version> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>jakarta.validation</groupId> |
| <artifactId>jakarta.validation-api</artifactId> |
| <version>${jakarta.validation.version}</version> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>fluent-hc</artifactId> |
| <version>${http.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpcore</artifactId> |
| <version>${http.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpclient</artifactId> |
| <version>${http.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-configuration2</artifactId> |
| <version>${commons-configuration-2.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-1.2-api</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-api</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-core</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| </dependencies> |
| </project> |