| <!-- | |
| ~ 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> | |
| <groupId>org.apache.parquet</groupId> | |
| <artifactId>parquet</artifactId> | |
| <relativePath>../pom.xml</relativePath> | |
| <version>1.19.0-SNAPSHOT</version> | |
| </parent> | |
| <modelVersion>4.0.0</modelVersion> | |
| <artifactId>parquet-cli</artifactId> | |
| <packaging>jar</packaging> | |
| <name>Apache Parquet Command-line</name> | |
| <url>https://parquet.apache.org</url> | |
| <properties> | |
| <deps.scope>provided</deps.scope> | |
| </properties> | |
| <profiles> | |
| <!-- Profile to build a standalone uber jar that can be used with "java -jar" without a Hadoop environment --> | |
| <profile> | |
| <id>local</id> | |
| <properties> | |
| <deps.scope>compile</deps.scope> | |
| </properties> | |
| <build> | |
| <!-- Required to skip some checking plugins to work. The generated jar will not be part of the distribution anyway. --> | |
| <plugins> | |
| <plugin> | |
| <artifactId>maven-enforcer-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>enforce-banned-dependencies</id> | |
| <goals> | |
| <goal>enforce</goal> | |
| </goals> | |
| <configuration> | |
| <skip>true</skip> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-dependency-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <goals> | |
| <goal>analyze-only</goal> | |
| </goals> | |
| <configuration> | |
| <skip>true</skip> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| </profiles> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.apache.parquet</groupId> | |
| <artifactId>parquet-avro</artifactId> | |
| <version>${project.version}</version> | |
| </dependency> | |
| <!-- Protobuf dependencies for CLI Tests --> | |
| <dependency> | |
| <groupId>org.apache.parquet</groupId> | |
| <artifactId>parquet-protobuf</artifactId> | |
| <version>${project.version}</version> | |
| <classifier>tests</classifier> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.google.protobuf</groupId> | |
| <artifactId>protobuf-java</artifactId> | |
| <version>4.35.1</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.parquet</groupId> | |
| <artifactId>parquet-protobuf</artifactId> | |
| <version>${project.version}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.parquet</groupId> | |
| <artifactId>parquet-format-structures</artifactId> | |
| <version>${project.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.parquet</groupId> | |
| <artifactId>parquet-common</artifactId> | |
| <version>${project.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.parquet</groupId> | |
| <artifactId>parquet-column</artifactId> | |
| <version>${project.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.parquet</groupId> | |
| <artifactId>parquet-hadoop</artifactId> | |
| <version>${project.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.avro</groupId> | |
| <artifactId>avro</artifactId> | |
| <version>${avro.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.tukaani</groupId> | |
| <artifactId>xz</artifactId> | |
| <version>${tukaani.version}</version> | |
| <scope>runtime</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.github.luben</groupId> | |
| <artifactId>zstd-jni</artifactId> | |
| <version>${zstd-jni.version}</version> | |
| <scope>runtime</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>slf4j-api</artifactId> | |
| <version>${slf4j.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>net.sf.opencsv</groupId> | |
| <artifactId>opencsv</artifactId> | |
| <version>${opencsv.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.commons</groupId> | |
| <artifactId>commons-text</artifactId> | |
| <version>${commons-text.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.parquet</groupId> | |
| <artifactId>parquet-jackson</artifactId> | |
| <version>${project.version}</version> | |
| <scope>runtime</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>${jackson.groupId}</groupId> | |
| <artifactId>jackson-databind</artifactId> | |
| <version>${jackson-databind.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>${jackson.groupId}</groupId> | |
| <artifactId>jackson-core</artifactId> | |
| <version>${jackson.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>${jackson.groupId}</groupId> | |
| <artifactId>jackson-annotations</artifactId> | |
| <version>${jackson-annotations.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>${jackson.datatype.groupId}</groupId> | |
| <artifactId>jackson-datatype-jsr310</artifactId> | |
| <version>${jackson.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.beust</groupId> | |
| <artifactId>jcommander</artifactId> | |
| <version>${jcommander.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>slf4j-log4j12</artifactId> | |
| <version>${slf4j.version}</version> | |
| <scope>${deps.scope}</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.google.guava</groupId> | |
| <artifactId>guava</artifactId> | |
| <version>${guava.version}</version> | |
| <scope>${deps.scope}</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.hadoop</groupId> | |
| <artifactId>hadoop-client</artifactId> | |
| <scope>${deps.scope}</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.hadoop</groupId> | |
| <artifactId>hadoop-common</artifactId> | |
| <scope>${deps.scope}</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.thrift</groupId> | |
| <artifactId>libthrift</artifactId> | |
| <version>${format.thrift.version}</version> | |
| <scope>${deps.scope}</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.google.code.findbugs</groupId> | |
| <artifactId>jsr305</artifactId> | |
| <version>${jsr305.version}</version> | |
| <scope>${deps.scope}</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>log4j</groupId> | |
| <artifactId>log4j</artifactId> | |
| <version>1.2.17</version> | |
| <scope>${deps.scope}</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>commons-io</groupId> | |
| <artifactId>commons-io</artifactId> | |
| <version>2.22.0</version> | |
| <scope>${deps.scope}</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>commons-logging</groupId> | |
| <artifactId>commons-logging</artifactId> | |
| <version>1.4.0</version> | |
| <scope>${deps.scope}</scope> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-jar-plugin</artifactId> | |
| <configuration> | |
| <archive> | |
| <manifest> | |
| <mainClass>org.apache.parquet.cli.Main</mainClass> | |
| </manifest> | |
| </archive> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-shade-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <phase>package</phase> | |
| <goals> | |
| <goal>shade</goal> | |
| </goals> | |
| <configuration> | |
| <createDependencyReducedPom>false</createDependencyReducedPom> | |
| <shadedArtifactAttached>true</shadedArtifactAttached> | |
| <shadedClassifierName>runtime</shadedClassifierName> | |
| <minimizeJar>false</minimizeJar> | |
| <filters> | |
| <filter> | |
| <artifact>org.xerial.snappy:*</artifact> | |
| <excludes> | |
| <exclude>**/LICENSE</exclude> | |
| </excludes> | |
| </filter> | |
| <filter> | |
| <artifact>*:*</artifact> | |
| <excludes> | |
| <exclude>META-INF/LICENSE.txt</exclude> | |
| <exclude>META-INF/NOTICE.txt</exclude> | |
| </excludes> | |
| </filter> | |
| </filters> | |
| <artifactSet> | |
| <includes> | |
| <include>*</include> | |
| </includes> | |
| </artifactSet> | |
| <relocations> | |
| <relocation> | |
| <!-- relocate Avro in the runtime jar to avoid conflicts with | |
| on-cluster Avro versions. --> | |
| <pattern>org.apache.avro</pattern> | |
| <shadedPattern>${shade.prefix}.org.apache.avro</shadedPattern> | |
| </relocation> | |
| </relocations> | |
| <transformers> | |
| <!-- Needs to merge Hadoop's FileSystem plugin manifest --> | |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> | |
| </transformers> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </project> |