|
| 1 | +<!-- |
| 2 | + ~ Licensed to the Apache Software Foundation (ASF) under one |
| 3 | + ~ or more contributor license agreements. See the NOTICE file |
| 4 | + ~ distributed with this work for additional information |
| 5 | + ~ regarding copyright ownership. The ASF licenses this file |
| 6 | + ~ to you under the Apache License, Version 2.0 (the |
| 7 | + ~ "License"); you may not use this file except in compliance |
| 8 | + ~ with the License. You may obtain a copy of the License at |
| 9 | + ~ |
| 10 | + ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + ~ |
| 12 | + ~ Unless required by applicable law or agreed to in writing, |
| 13 | + ~ software distributed under the License is distributed on an |
| 14 | + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | + ~ KIND, either express or implied. See the License for the |
| 16 | + ~ specific language governing permissions and limitations |
| 17 | + ~ under the License. |
| 18 | + --> |
| 19 | +<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"> |
| 20 | + <parent> |
| 21 | + <groupId>org.apache.parquet</groupId> |
| 22 | + <artifactId>parquet</artifactId> |
| 23 | + <relativePath>../pom.xml</relativePath> |
| 24 | + <version>1.13.1</version> |
| 25 | + </parent> |
| 26 | + |
| 27 | + <modelVersion>4.0.0</modelVersion> |
| 28 | + |
| 29 | + <artifactId>parquet-avro</artifactId> |
| 30 | + <packaging>jar</packaging> |
| 31 | + |
| 32 | + <name>Apache Parquet Avro</name> |
| 33 | + <url>https://parquet.apache.org</url> |
| 34 | + |
| 35 | + <dependencies> |
| 36 | + <dependency> |
| 37 | + <groupId>org.apache.parquet</groupId> |
| 38 | + <artifactId>parquet-column</artifactId> |
| 39 | + <version>${project.version}</version> |
| 40 | + </dependency> |
| 41 | + <dependency> |
| 42 | + <groupId>org.apache.parquet</groupId> |
| 43 | + <artifactId>parquet-hadoop</artifactId> |
| 44 | + <version>${project.version}</version> |
| 45 | + </dependency> |
| 46 | + <dependency> |
| 47 | + <groupId>org.apache.parquet</groupId> |
| 48 | + <artifactId>parquet-common</artifactId> |
| 49 | + <version>${project.version}</version> |
| 50 | + </dependency> |
| 51 | + <dependency> |
| 52 | + <groupId>org.apache.avro</groupId> |
| 53 | + <artifactId>avro</artifactId> |
| 54 | + <version>${avro.version}</version> |
| 55 | + </dependency> |
| 56 | + <dependency> |
| 57 | + <groupId>org.slf4j</groupId> |
| 58 | + <artifactId>slf4j-api</artifactId> |
| 59 | + <version>${slf4j.version}</version> |
| 60 | + </dependency> |
| 61 | + <dependency> |
| 62 | + <groupId>it.unimi.dsi</groupId> |
| 63 | + <artifactId>fastutil</artifactId> |
| 64 | + <version>${fastutil.version}</version> |
| 65 | + </dependency> |
| 66 | + <dependency> |
| 67 | + <groupId>org.apache.hadoop</groupId> |
| 68 | + <artifactId>hadoop-client</artifactId> |
| 69 | + <scope>provided</scope> |
| 70 | + </dependency> |
| 71 | + <dependency> |
| 72 | + <groupId>org.apache.hadoop</groupId> |
| 73 | + <artifactId>hadoop-mapreduce-client-core</artifactId> |
| 74 | + <scope>provided</scope> |
| 75 | + </dependency> |
| 76 | + <dependency> |
| 77 | + <groupId>org.apache.hadoop</groupId> |
| 78 | + <artifactId>hadoop-common</artifactId> |
| 79 | + <scope>provided</scope> |
| 80 | + </dependency> |
| 81 | + <dependency> |
| 82 | + <groupId>com.google.guava</groupId> |
| 83 | + <artifactId>guava</artifactId> |
| 84 | + <version>${guava.version}</version> |
| 85 | + <scope>test</scope> |
| 86 | + </dependency> |
| 87 | + <dependency> |
| 88 | + <groupId>org.apache.parquet</groupId> |
| 89 | + <artifactId>parquet-column</artifactId> |
| 90 | + <version>${project.version}</version> |
| 91 | + <type>test-jar</type> |
| 92 | + <scope>test</scope> |
| 93 | + </dependency> |
| 94 | + <dependency> |
| 95 | + <groupId>org.slf4j</groupId> |
| 96 | + <artifactId>slf4j-simple</artifactId> |
| 97 | + <version>${slf4j.version}</version> |
| 98 | + <scope>test</scope> |
| 99 | + </dependency> |
| 100 | + <dependency> |
| 101 | + <groupId>org.apache.parquet</groupId> |
| 102 | + <artifactId>parquet-hadoop</artifactId> |
| 103 | + <version>${project.version}</version> |
| 104 | + <type>test-jar</type> |
| 105 | + <scope>test</scope> |
| 106 | + </dependency> |
| 107 | + <dependency> |
| 108 | + <groupId>org.mockito</groupId> |
| 109 | + <artifactId>mockito-core</artifactId> |
| 110 | + <version>2.23.0</version> |
| 111 | + <scope>test</scope> |
| 112 | + </dependency> |
| 113 | + <dependency> |
| 114 | + <groupId>org.powermock</groupId> |
| 115 | + <artifactId>powermock-module-junit4</artifactId> |
| 116 | + <version>${powermock.version}</version> |
| 117 | + <scope>test</scope> |
| 118 | + </dependency> |
| 119 | + <dependency> |
| 120 | + <groupId>org.powermock</groupId> |
| 121 | + <artifactId>powermock-core</artifactId> |
| 122 | + <version>${powermock.version}</version> |
| 123 | + <scope>test</scope> |
| 124 | + </dependency> |
| 125 | + <dependency> |
| 126 | + <groupId>org.powermock</groupId> |
| 127 | + <artifactId>powermock-api-mockito2</artifactId> |
| 128 | + <version>${powermock.version}</version> |
| 129 | + <scope>test</scope> |
| 130 | + </dependency> |
| 131 | + </dependencies> |
| 132 | + |
| 133 | + <build> |
| 134 | + <resources> |
| 135 | + <resource> |
| 136 | + <directory>src/test/avro</directory> |
| 137 | + </resource> |
| 138 | + <resource> |
| 139 | + <directory>src/main/resources</directory> |
| 140 | + </resource> |
| 141 | + </resources> |
| 142 | + <plugins> |
| 143 | + <plugin> |
| 144 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 145 | + </plugin> |
| 146 | + <plugin> |
| 147 | + <groupId>org.apache.maven.plugins</groupId> |
| 148 | + <artifactId>maven-jar-plugin</artifactId> |
| 149 | + </plugin> |
| 150 | + <plugin> |
| 151 | + <groupId>org.apache.avro</groupId> |
| 152 | + <artifactId>avro-maven-plugin</artifactId> |
| 153 | + <version>${avro.version}</version> |
| 154 | + <executions> |
| 155 | + <execution> |
| 156 | + <id>compile-avsc</id> |
| 157 | + <phase>generate-test-sources</phase> |
| 158 | + <goals> |
| 159 | + <goal>schema</goal> |
| 160 | + </goals> |
| 161 | + </execution> |
| 162 | + <execution> |
| 163 | + <id>compile-idl</id> |
| 164 | + <phase>generate-test-sources</phase> |
| 165 | + <goals> |
| 166 | + <goal>idl-protocol</goal> |
| 167 | + </goals> |
| 168 | + <configuration> |
| 169 | + <sourceDirectory>${project.basedir}/src/test/resources</sourceDirectory> |
| 170 | + <outputDirectory>${project.build.directory}/generated-test-sources</outputDirectory> |
| 171 | + <stringType>String</stringType> |
| 172 | + </configuration> |
| 173 | + </execution> |
| 174 | + </executions> |
| 175 | + </plugin> |
| 176 | + <plugin> |
| 177 | + <!-- Ensure that the specific classes are available during test compile but not included in jar --> |
| 178 | + <groupId>org.codehaus.mojo</groupId> |
| 179 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 180 | + <version>1.8</version> |
| 181 | + <executions> |
| 182 | + <execution> |
| 183 | + <id>add-test-sources</id> |
| 184 | + <phase>generate-test-sources</phase> |
| 185 | + <goals> |
| 186 | + <goal>add-test-source</goal> |
| 187 | + </goals> |
| 188 | + <configuration> |
| 189 | + <sources> |
| 190 | + <source>${project.build.directory}/generated-test-sources</source> |
| 191 | + </sources> |
| 192 | + </configuration> |
| 193 | + </execution> |
| 194 | + </executions> |
| 195 | + </plugin> |
| 196 | + |
| 197 | + <!-- Configuration to shade fastutil only instead of using the default configuration which shades jackson as well. --> |
| 198 | + <!-- We shall not shade jackson here otherwise we may corrupt Avro API calls. (Avro API contains jackson classes.) --> |
| 199 | + <plugin> |
| 200 | + <groupId>org.apache.maven.plugins</groupId> |
| 201 | + <artifactId>maven-shade-plugin</artifactId> |
| 202 | + <executions> |
| 203 | + <execution> |
| 204 | + <configuration combine.self="override"> |
| 205 | + <minimizeJar>true</minimizeJar> |
| 206 | + <artifactSet> |
| 207 | + <includes> |
| 208 | + <include>it.unimi.dsi:fastutil</include> |
| 209 | + </includes> |
| 210 | + </artifactSet> |
| 211 | + <relocations> |
| 212 | + <relocation> |
| 213 | + <pattern>it.unimi.dsi</pattern> |
| 214 | + <shadedPattern>${shade.prefix}.it.unimi.dsi</shadedPattern> |
| 215 | + </relocation> |
| 216 | + </relocations> |
| 217 | + </configuration> |
| 218 | + </execution> |
| 219 | + </executions> |
| 220 | + </plugin> |
| 221 | + |
| 222 | + </plugins> |
| 223 | + </build> |
| 224 | + |
| 225 | +</project> |
0 commit comments