mirror of
https://github.com/apache/sqoop.git
synced 2025-05-25 13:43:41 +08:00
281 lines
7.6 KiB
XML
281 lines
7.6 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
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 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>org.apache</groupId>
|
|
<artifactId>sqoop</artifactId>
|
|
<version>2.0.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<groupId>org.apache.sqoop</groupId>
|
|
<artifactId>test</artifactId>
|
|
<name>Sqoop Integration Tests</name>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.sqoop</groupId>
|
|
<artifactId>sqoop-core</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.sqoop</groupId>
|
|
<artifactId>sqoop-client</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.sqoop.execution</groupId>
|
|
<artifactId>sqoop-execution-mapreduce</artifactId>
|
|
<classifier>hadoop${hadoop.profile}</classifier>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.sqoop.submission</groupId>
|
|
<artifactId>sqoop-submission-mapreduce</artifactId>
|
|
<classifier>hadoop${hadoop.profile}</classifier>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.sqoop.repository</groupId>
|
|
<artifactId>sqoop-repository-derby</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.sqoop.connector</groupId>
|
|
<artifactId>sqoop-connector-generic-jdbc</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.codehaus.cargo</groupId>
|
|
<artifactId>cargo-core-container-tomcat</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.derby</groupId>
|
|
<artifactId>derbynet</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.derby</groupId>
|
|
<artifactId>derbyclient</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>mysql</groupId>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>postgresql</groupId>
|
|
<artifactId>postgresql</artifactId>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<!-- Add classifier name to the JAR name -->
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>2.4</version>
|
|
<configuration>
|
|
<classifier>hadoop${hadoop.profile}</classifier>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!--
|
|
Exclude all integration tests on normal execution
|
|
Run "mvn integration-test" to execute integration tests
|
|
-->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>**/integration/**</exclude>
|
|
</excludes>
|
|
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>integration-test</id>
|
|
<goals>
|
|
<goal>test</goal>
|
|
</goals>
|
|
<phase>integration-test</phase>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>none</exclude>
|
|
</excludes>
|
|
<includes>
|
|
<include>**/integration/**</include>
|
|
</includes>
|
|
<systemPropertyVariables>
|
|
<sqoop.integration.tmpdir>${project.build.directory}</sqoop.integration.tmpdir>
|
|
</systemPropertyVariables>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
|
|
<!-- Profiles for various supported Hadoop distributions -->
|
|
<profiles>
|
|
|
|
<!-- Hadoop 1.x -->
|
|
<profile>
|
|
<id>hadoop100</id>
|
|
|
|
<activation>
|
|
<property>
|
|
<name>hadoop.profile</name>
|
|
<value>100</value>
|
|
</property>
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
<groupId>commons-io</groupId>
|
|
<artifactId>commons-io</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.google.guava</groupId>
|
|
<artifactId>guava</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.hadoop</groupId>
|
|
<artifactId>hadoop-core</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.hadoop</groupId>
|
|
<artifactId>hadoop-test</artifactId>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
</profile>
|
|
|
|
<!-- Hadoop 2.x (active by default) -->
|
|
<profile>
|
|
<id>hadoop200</id>
|
|
|
|
<activation>
|
|
<activeByDefault>true</activeByDefault>
|
|
<property>
|
|
<name>hadoop.profile</name>
|
|
<value>200</value>
|
|
</property>
|
|
</activation>
|
|
|
|
<properties>
|
|
<hadoop.profile>200</hadoop.profile>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.hadoop</groupId>
|
|
<artifactId>hadoop-common</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.hadoop</groupId>
|
|
<artifactId>hadoop-mapreduce-client-core</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.hadoop</groupId>
|
|
<artifactId>hadoop-mapreduce-client-jobclient</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.hadoop</groupId>
|
|
<artifactId>hadoop-minicluster</artifactId>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</profile>
|
|
|
|
<!-- Special JDBC Drivers -->
|
|
|
|
<!--
|
|
Oracle JDBC Driver
|
|
Install: mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=11.2.0.3 -Dpackaging=jar -Dfile=/path/to/the/jar/ojdbc6.jar
|
|
Usage: mvn integration-test -Djdbc.oracle
|
|
-->
|
|
<profile>
|
|
<id>jdbc-oracle</id>
|
|
|
|
<activation>
|
|
<property>
|
|
<name>jdbc.oracle</name>
|
|
</property>
|
|
</activation>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.oracle</groupId>
|
|
<artifactId>ojdbc14</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
</profile>
|
|
|
|
<!--
|
|
Microsoft SQL Server JDBC Driver
|
|
Install: mvn install:install-file -DgroupId=com.microsoft -DartifactId=sqljdbc4 -Dversion=4.0 -Dpackaging=jar -Dfile=/path/to/the/jar/sqljdbc4.jar
|
|
Usage: mvn integration-test -Djdbc.sqlserver
|
|
-->
|
|
<profile>
|
|
<id>jdbc-sqlserver</id>
|
|
|
|
<activation>
|
|
<property>
|
|
<name>jdbc.sqlserver</name>
|
|
</property>
|
|
</activation>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.microsoft</groupId>
|
|
<artifactId>sqljdbc4</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
</project>
|