1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 ~ Licensed to the Apache Software Foundation (ASF) under one or more 4 ~ contributor license agreements. See the NOTICE file distributed with 5 ~ this work for additional information regarding copyright ownership. 6 ~ The ASF licenses this file to You under the Apache License, Version 2.0 7 ~ (the "License"); you may not use this file except in compliance with 8 ~ 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, software 13 ~ distributed under the License is distributed on an "AS IS" BASIS, 14 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 ~ See the License for the specific language governing permissions and 16 ~ limitations under the License. 17 --> 18 19<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 20 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 21 <modelVersion>4.0.0</modelVersion> 22 <parent> 23 <groupId>org.apache.spark</groupId> 24 <artifactId>spark-parent_2.11</artifactId> 25 <version>2.1.1</version> 26 <relativePath>../../pom.xml</relativePath> 27 </parent> 28 29 <artifactId>spark-sql_2.11</artifactId> 30 <packaging>jar</packaging> 31 <name>Spark Project SQL</name> 32 <url>http://spark.apache.org/</url> 33 <properties> 34 <sbt.project.name>sql</sbt.project.name> 35 </properties> 36 37 <dependencies> 38 <dependency> 39 <groupId>com.univocity</groupId> 40 <artifactId>univocity-parsers</artifactId> 41 <version>2.2.1</version> 42 <type>jar</type> 43 </dependency> 44 <dependency> 45 <groupId>org.apache.spark</groupId> 46 <artifactId>spark-sketch_${scala.binary.version}</artifactId> 47 <version>${project.version}</version> 48 </dependency> 49 <dependency> 50 <groupId>org.apache.spark</groupId> 51 <artifactId>spark-core_${scala.binary.version}</artifactId> 52 <version>${project.version}</version> 53 </dependency> 54 <dependency> 55 <groupId>org.apache.spark</groupId> 56 <artifactId>spark-core_${scala.binary.version}</artifactId> 57 <version>${project.version}</version> 58 <type>test-jar</type> 59 <scope>test</scope> 60 </dependency> 61 <dependency> 62 <groupId>org.apache.spark</groupId> 63 <artifactId>spark-catalyst_${scala.binary.version}</artifactId> 64 <version>${project.version}</version> 65 </dependency> 66 <dependency> 67 <groupId>org.apache.spark</groupId> 68 <artifactId>spark-catalyst_${scala.binary.version}</artifactId> 69 <version>${project.version}</version> 70 <type>test-jar</type> 71 <scope>test</scope> 72 </dependency> 73 <dependency> 74 <groupId>org.apache.spark</groupId> 75 <artifactId>spark-tags_${scala.binary.version}</artifactId> 76 </dependency> 77 78 <!-- 79 This spark-tags test-dep is needed even though it isn't used in this module, otherwise testing-cmds that exclude 80 them will yield errors. 81 --> 82 <dependency> 83 <groupId>org.apache.spark</groupId> 84 <artifactId>spark-tags_${scala.binary.version}</artifactId> 85 <type>test-jar</type> 86 <scope>test</scope> 87 </dependency> 88 89 <dependency> 90 <groupId>org.apache.parquet</groupId> 91 <artifactId>parquet-column</artifactId> 92 </dependency> 93 <dependency> 94 <groupId>org.apache.parquet</groupId> 95 <artifactId>parquet-hadoop</artifactId> 96 </dependency> 97 <dependency> 98 <groupId>org.eclipse.jetty</groupId> 99 <artifactId>jetty-servlet</artifactId> 100 </dependency> 101 <dependency> 102 <groupId>com.fasterxml.jackson.core</groupId> 103 <artifactId>jackson-databind</artifactId> 104 <version>${fasterxml.jackson.version}</version> 105 </dependency> 106 <dependency> 107 <groupId>org.apache.xbean</groupId> 108 <artifactId>xbean-asm5-shaded</artifactId> 109 </dependency> 110 <dependency> 111 <groupId>org.scalacheck</groupId> 112 <artifactId>scalacheck_${scala.binary.version}</artifactId> 113 <scope>test</scope> 114 </dependency> 115 <dependency> 116 <groupId>com.h2database</groupId> 117 <artifactId>h2</artifactId> 118 <version>1.4.183</version> 119 <scope>test</scope> 120 </dependency> 121 <dependency> 122 <groupId>mysql</groupId> 123 <artifactId>mysql-connector-java</artifactId> 124 <scope>test</scope> 125 </dependency> 126 <dependency> 127 <groupId>org.postgresql</groupId> 128 <artifactId>postgresql</artifactId> 129 <scope>test</scope> 130 </dependency> 131 <dependency> 132 <groupId>org.apache.parquet</groupId> 133 <artifactId>parquet-avro</artifactId> 134 <scope>test</scope> 135 </dependency> 136 <dependency> 137 <groupId>org.mockito</groupId> 138 <artifactId>mockito-core</artifactId> 139 <scope>test</scope> 140 </dependency> 141 </dependencies> 142 <build> 143 <outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory> 144 <testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory> 145 <plugins> 146 <!-- 147 This plugin forces the generation of jar containing sql test classes, 148 so that the tests classes of external modules can use them. The two execution profiles 149 are necessary - first one for 'mvn package', second one for 'mvn test-compile'. Ideally, 150 'mvn compile' should not compile test classes and therefore should not need this. 151 However, an open Maven bug (http://jira.codehaus.org/browse/MNG-3559) 152 causes the compilation to fail if catalyst test-jar is not generated. Hence, the 153 second execution profile for 'mvn test-compile'. 154 --> 155 <plugin> 156 <groupId>org.apache.maven.plugins</groupId> 157 <artifactId>maven-jar-plugin</artifactId> 158 <executions> 159 <execution> 160 <goals> 161 <goal>test-jar</goal> 162 </goals> 163 </execution> 164 <execution> 165 <id>test-jar-on-test-compile</id> 166 <phase>test-compile</phase> 167 <goals> 168 <goal>test-jar</goal> 169 </goals> 170 </execution> 171 </executions> 172 </plugin> 173 <plugin> 174 <groupId>org.codehaus.mojo</groupId> 175 <artifactId>build-helper-maven-plugin</artifactId> 176 <executions> 177 <execution> 178 <id>add-scala-test-sources</id> 179 <phase>generate-test-sources</phase> 180 <goals> 181 <goal>add-test-source</goal> 182 </goals> 183 <configuration> 184 <sources> 185 <source>src/test/gen-java</source> 186 </sources> 187 </configuration> 188 </execution> 189 </executions> 190 </plugin> 191 </plugins> 192 </build> 193</project> 194