diff options
Diffstat (limited to 'sql/hive/pom.xml')
-rw-r--r-- | sql/hive/pom.xml | 37 |
1 files changed, 31 insertions, 6 deletions
diff --git a/sql/hive/pom.xml b/sql/hive/pom.xml index 9d7a02bf7b..db01363b4d 100644 --- a/sql/hive/pom.xml +++ b/sql/hive/pom.xml @@ -37,11 +37,6 @@ <dependencies> <dependency> - <groupId>com.twitter</groupId> - <artifactId>parquet-hive-bundle</artifactId> - <version>1.5.0</version> - </dependency> - <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-core_${scala.binary.version}</artifactId> <version>${project.version}</version> @@ -116,7 +111,6 @@ <scope>test</scope> </dependency> </dependencies> - <profiles> <profile> <id>hive</id> @@ -144,6 +138,19 @@ </plugins> </build> </profile> + <profile> + <id>hive-0.12.0</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <dependencies> + <dependency> + <groupId>com.twitter</groupId> + <artifactId>parquet-hive-bundle</artifactId> + <version>1.5.0</version> + </dependency> + </dependencies> + </profile> </profiles> <build> @@ -154,6 +161,24 @@ <groupId>org.scalatest</groupId> <artifactId>scalatest-maven-plugin</artifactId> </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <execution> + <id>add-default-sources</id> + <phase>generate-sources</phase> + <goals> + <goal>add-source</goal> + </goals> + <configuration> + <sources> + <source>v${hive.version.short}/src/main/scala</source> + </sources> + </configuration> + </execution> + </executions> + </plugin> <!-- Deploy datanucleus jars to the spark/lib_managed/jars directory --> <plugin> |