5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-04 01:19:38 +08:00

SQOOP-2109: Sqoop2: Shell module is including test dependencies when building binary artifact

(Jarek Jarcec Cecho via Abraham Elmahrek)
This commit is contained in:
Abraham Elmahrek 2015-02-17 12:13:55 -08:00
parent 37480a82cc
commit da542488f4
4 changed files with 28 additions and 0 deletions

View File

@ -35,6 +35,7 @@ limitations under the License.
<dependency> <dependency>
<groupId>org.apache.sqoop</groupId> <groupId>org.apache.sqoop</groupId>
<artifactId>sqoop-common-test</artifactId> <artifactId>sqoop-common-test</artifactId>
<scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>

13
pom.xml
View File

@ -123,13 +123,21 @@ limitations under the License.
<jackson.databind.version>2.2.2</jackson.databind.version> <jackson.databind.version>2.2.2</jackson.databind.version>
<jackson.annotations.version>2.2.2</jackson.annotations.version> <jackson.annotations.version>2.2.2</jackson.annotations.version>
<avro.version>1.7.7</avro.version> <avro.version>1.7.7</avro.version>
<jcommander.version>1.27</jcommander.version>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>log4j</groupId> <groupId>log4j</groupId>
<artifactId>log4j</artifactId> <artifactId>log4j</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<!-- Profiles for various supported Hadoop distributions --> <!-- Profiles for various supported Hadoop distributions -->
@ -468,6 +476,11 @@ limitations under the License.
<artifactId>postgresql</artifactId> <artifactId>postgresql</artifactId>
<version>${jdbc.postgresql.version}</version> <version>${jdbc.postgresql.version}</version>
</dependency> </dependency>
<dependency>
<groupId>com.beust</groupId>
<artifactId>jcommander</artifactId>
<version>${jcommander.version}</version>
</dependency>
<dependency> <dependency>
<groupId>com.oracle</groupId> <groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId> <artifactId>ojdbc14</artifactId>

View File

@ -39,5 +39,11 @@ limitations under the License.
<artifactId>hadoop-common</artifactId> <artifactId>hadoop-common</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency>
<groupId>com.beust</groupId>
<artifactId>jcommander</artifactId>
</dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -59,6 +59,12 @@ limitations under the License.
<groupId>jline</groupId> <groupId>jline</groupId>
<artifactId>jline</artifactId> <artifactId>jline</artifactId>
<version>0.9.94</version> <version>0.9.94</version>
<exclusions>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
</exclusions>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.fusesource.jansi</groupId> <groupId>org.fusesource.jansi</groupId>
@ -90,6 +96,8 @@ limitations under the License.
<goal>copy-dependencies</goal> <goal>copy-dependencies</goal>
</goals> </goals>
<configuration> <configuration>
<includeScope>runtime</includeScope>
<excludeScope>test</excludeScope>
<outputDirectory>${project.build.directory}/lib</outputDirectory> <outputDirectory>${project.build.directory}/lib</outputDirectory>
</configuration> </configuration>
</execution> </execution>