| <?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"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache</groupId> |
| <artifactId>apache</artifactId> |
| <version>33</version> |
| </parent> |
| |
| <groupId>org.apache.parquet</groupId> |
| <artifactId>parquet-format</artifactId> |
| <version>2.11.0-SNAPSHOT</version> |
| <packaging>jar</packaging> |
| |
| <name>Apache Parquet Format</name> |
| <url>https://parquet.apache.org/</url> |
| <description>Parquet is a columnar storage format that supports nested data. This provides all generated metadata code.</description> |
| |
| <scm> |
| <connection>scm:git:git@github.com:apache/parquet-format.git</connection> |
| <url>scm:git:git@github.com:apache/parquet-format.git</url> |
| <developerConnection>scm:git:git@github.com:apache/parquet-format.git</developerConnection> |
| <tag>HEAD</tag> |
| </scm> |
| |
| <licenses> |
| <!-- This is also in the Apache parent POM, but adding it here includes it |
| in dependency-reduced-pom.xml so that it passes the rat check. --> |
| <license> |
| <name>The Apache Software License, Version 2.0</name> |
| <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| </license> |
| </licenses> |
| |
| <issueManagement> |
| <system>GitHub</system> |
| <url>https://github.com/apache/parquet-format/issues</url> |
| </issueManagement> |
| |
| <mailingLists> |
| <mailingList> |
| <name>Dev Mailing List</name> |
| <post>dev@parquet.apache.org</post> |
| <subscribe>dev-subscribe@parquet.apache.org</subscribe> |
| <unsubscribe>dev-unsubscribe@parquet.apache.org</unsubscribe> |
| </mailingList> |
| <mailingList> |
| <name>Commits Mailing List</name> |
| <post>commits@parquet.apache.org</post> |
| <subscribe>commits-subscribe@parquet.apache.org</subscribe> |
| <unsubscribe>commits-unsubscribe@parquet.apache.org</unsubscribe> |
| </mailingList> |
| </mailingLists> |
| |
| <properties> |
| <maven.compiler.source>1.8</maven.compiler.source> |
| <maven.compiler.target>1.8</maven.compiler.target> |
| <shade.prefix>shaded.parquet</shade.prefix> |
| <thrift.executable>thrift</thrift.executable> |
| <thrift.version>0.21.0</thrift.version> |
| <thrift-maven-plugin.version>0.10.0</thrift-maven-plugin.version> |
| </properties> |
| |
| <build> |
| <plugins> |
| <!-- thrift --> |
| <plugin> |
| <groupId>org.apache.thrift</groupId> |
| <artifactId>thrift-maven-plugin</artifactId> |
| <version>${thrift-maven-plugin.version}</version> |
| <configuration> |
| <thriftSourceRoot>src/main/thrift</thriftSourceRoot> |
| <thriftExecutable>${thrift.executable}</thriftExecutable> |
| </configuration> |
| <executions> |
| <execution> |
| <id>thrift-sources</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <!-- Disable the source artifact from ASF parent --> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>source-release-assembly</id> |
| <phase>none</phase> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <configuration> |
| <additionalparam>-Xdoclint:none</additionalparam> |
| <additionalOptions>-Xdoclint:none</additionalOptions> |
| <additionalJOption>-Xdoclint:none</additionalJOption> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>3.6.0</version> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <artifactSet> |
| <includes> |
| <include>org.apache.thrift:libthrift</include> |
| </includes> |
| </artifactSet> |
| <filters> |
| <filter> |
| <!-- Sigh. The Thrift jar contains its source --> |
| <artifact>org.apache.thrift:libthrift</artifact> |
| <excludes> |
| <exclude>**/*.java</exclude> |
| <exclude>META-INF/LICENSE.txt</exclude> |
| <exclude>META-INF/NOTICE.txt</exclude> |
| </excludes> |
| </filter> |
| </filters> |
| <relocations> |
| <relocation> |
| <pattern>org.apache.thrift</pattern> |
| <shadedPattern>${shade.prefix}.org.apache.thrift</shadedPattern> |
| </relocation> |
| </relocations> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <version>0.16.1</version> |
| <executions> |
| <execution> |
| <phase>test</phase> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <consoleOutput>true</consoleOutput> |
| <excludes> |
| <exclude>.github/PULL_REQUEST_TEMPLATE.md</exclude> |
| <exclude>**/*.avro</exclude> |
| <exclude>**/*.avsc</exclude> |
| <exclude>**/*.avdl</exclude> |
| <exclude>**/*.iml</exclude> |
| <exclude>**/*.log</exclude> |
| <exclude>**/*.md.vm</exclude> |
| <exclude>**/.classpath</exclude> |
| <exclude>**/.project</exclude> |
| <exclude>**/.settings/**</exclude> |
| <exclude>**/build/**</exclude> |
| <exclude>**/target/**</exclude> |
| <exclude>.git/**</exclude> |
| <exclude>.idea/**</exclude> |
| <exclude>*/jdiff/*.xml</exclude> |
| <exclude>licenses/**</exclude> |
| <exclude>thrift-${thrift.version}/**</exclude> |
| <exclude>thrift-${thrift.version}.tar.gz</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| <version>1.7.12</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.thrift</groupId> |
| <artifactId>libthrift</artifactId> |
| <version>${thrift.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>javax.annotation</groupId> |
| <artifactId>javax.annotation-api</artifactId> |
| <version>1.3.2</version> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.13.2</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <profiles> |
| <profile> |
| <id>jdk9+</id> |
| <activation> |
| <jdk>[9,)</jdk> |
| </activation> |
| <properties> |
| <!-- release takes precedence over source/target if java version is 9 or higher --> |
| <maven.compiler.release>8</maven.compiler.release> |
| </properties> |
| </profile> |
| <profile> |
| <activation> |
| <os> |
| <family>!windows</family> |
| </os> |
| </activation> |
| <id>UnixClassOS</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <version>3.5.0</version> |
| <executions> |
| <execution> |
| <id>check-thrift-version</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>exec</goal> |
| </goals> |
| <configuration> |
| <executable>sh</executable> |
| <workingDirectory>${basedir}</workingDirectory> |
| <arguments> |
| <argument>-c</argument> |
| <argument>${thrift.executable} -version | fgrep 'Thrift version ${thrift.version}' && exit 0; |
| echo "================================================================================="; |
| echo "========== [FATAL] Build is configured to require Thrift version ${thrift.version} =========="; |
| echo -n "========== Currently installed: "; |
| ${thrift.executable} -version; |
| echo "================================================================================="; |
| exit 1 |
| </argument> |
| </arguments> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |