Skip to content

Commit

Permalink
Cleanup dependencies and plugins for underfs modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsimsa committed Feb 14, 2017
1 parent fccbd23 commit 1f2432c
Show file tree
Hide file tree
Showing 10 changed files with 122 additions and 92 deletions.
44 changes: 42 additions & 2 deletions pom.xml
Expand Up @@ -183,6 +183,16 @@
<dependencyManagement>
<dependencies>
<!-- Compile scope -->
<dependency>
<groupId>com.aliyun.oss</groupId>
<artifactId>aliyun-sdk-oss</artifactId>
<version>2.0.7</version>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-s3</artifactId>
<version>${aws.amazonaws.version}</version>
</dependency>
<dependency>
<groupId>com.beust</groupId>
<artifactId>jcommander</artifactId>
Expand Down Expand Up @@ -224,6 +234,11 @@
<artifactId>protobuf-java</artifactId>
<version>${protobuf.version}</version>
</dependency>
<dependency>
<groupId>com.jamesmurty.utils</groupId>
<artifactId>java-xmlbuilder</artifactId>
<version>0.4</version>
</dependency>
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
Expand All @@ -234,6 +249,11 @@
<artifactId>commons-codec</artifactId>
<version>1.10</version>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
Expand All @@ -244,6 +264,11 @@
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
Expand All @@ -254,12 +279,17 @@
<artifactId>javax.ws.rs-api</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>net.java.dev.jets3t</groupId>
<artifactId>jets3t</artifactId>
<version>0.8.1</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.4</version>
</dependency>
<dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version>${hadoop.version}</version>
Expand Down Expand Up @@ -297,7 +327,12 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4</version>
</dependency>
<dependency>
<groupId>org.apache.mesos</groupId>
<artifactId>mesos</artifactId>
<version>0.23.0</version>
Expand Down Expand Up @@ -329,6 +364,11 @@
<artifactId>jackson-mapper-asl</artifactId>
<version>1.9.13</version>
</dependency>
<dependency>
<groupId>org.javaswift</groupId>
<artifactId>joss</artifactId>
<version>0.9.10</version>
</dependency>
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
Expand Down
43 changes: 20 additions & 23 deletions underfs/gcs/pom.xml
Expand Up @@ -30,47 +30,45 @@
</properties>

<dependencies>
<!-- External dependencies -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.alluxio</groupId>
<artifactId>alluxio-core-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>net.java.dev.jets3t</groupId>
<artifactId>jets3t</artifactId>
</dependency>

<!-- The following are jets3t dependencies
(see http://mvnrepository.com/artifact/net.java.dev.jets3t/jets3t/0.9.4).
We need to explicitly include them, because jets3t is shaded. -->
<!-- TODO(jsimsa): Investigate whether the same outcome can be achieved
using the promoteTransitiveDependencies option of the maven shade plugin. -->
<dependency>
<!-- jets3t dependency that needs to included explicitly, because jets3t is shaded. -->
<groupId>com.jamesmurty.utils</groupId>
<artifactId>java-xmlbuilder</artifactId>
<version>0.4</version>
</dependency>
<dependency>
<!-- jets3t dependency that needs to included explicitly, because jets3t is shaded. -->
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
</dependency>
<dependency>
<!-- jets3t dependency that needs to included explicitly, because jets3t is shaded. -->
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<!-- jets3t dependency that needs to included explicitly, because jets3t is shaded. -->
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>net.java.dev.jets3t</groupId>
<artifactId>jets3t</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>

<!-- Internal dependencies -->
<dependency>
<groupId>org.alluxio</groupId>
<artifactId>alluxio-core-common</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>

Expand All @@ -79,7 +77,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<id>shade-jets3t</id>
Expand Down
3 changes: 3 additions & 0 deletions underfs/glusterfs/pom.xml
Expand Up @@ -30,6 +30,7 @@
</properties>

<dependencies>
<!-- External dependencies -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
Expand Down Expand Up @@ -67,6 +68,8 @@
</exclusion>
</exclusions>
</dependency>

<!-- Internal dependencies -->
<dependency>
<groupId>org.alluxio</groupId>
<artifactId>alluxio-core-common</artifactId>
Expand Down
5 changes: 4 additions & 1 deletion underfs/hdfs/pom.xml
Expand Up @@ -30,6 +30,7 @@
</properties>

<dependencies>
<!-- External dependencies -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
Expand All @@ -46,13 +47,15 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>

<!-- Internal dependencies -->
<dependency>
<groupId>org.alluxio</groupId>
<artifactId>alluxio-core-common</artifactId>
<version>${project.version}</version>
</dependency>

<!-- Other projects' test-jars -->
<!-- Internal test dependencies -->
<dependency>
<groupId>org.alluxio</groupId>
<artifactId>alluxio-core-common</artifactId>
Expand Down
3 changes: 3 additions & 0 deletions underfs/local/pom.xml
Expand Up @@ -30,6 +30,7 @@
</properties>

<dependencies>
<!-- External dependencies -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
Expand All @@ -38,6 +39,8 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>

<!-- Internal dependencies -->
<dependency>
<groupId>org.alluxio</groupId>
<artifactId>alluxio-core-common</artifactId>
Expand Down
23 changes: 11 additions & 12 deletions underfs/oss/pom.xml
Expand Up @@ -30,26 +30,25 @@
</properties>

<dependencies>
<!-- External dependencies -->
<dependency>
<groupId>com.aliyun.oss</groupId>
<artifactId>aliyun-sdk-oss</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
</dependency>

<!-- Internal dependencies -->
<dependency>
<groupId>org.alluxio</groupId>
<artifactId>alluxio-core-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.aliyun.oss</groupId>
<artifactId>aliyun-sdk-oss</artifactId>
<version>2.0.7</version>
</dependency>
<!-- This dependency here is because the oss sdk need it to
contact the OSS service in the runtime -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4</version>
</dependency>
</dependencies>
</project>
24 changes: 4 additions & 20 deletions underfs/pom.xml
Expand Up @@ -23,32 +23,16 @@
<description>Parent POM for different implementations of Alluxio under file system</description>

<modules>
<module>local</module>
<module>hdfs</module>
<module>gcs</module>
<module>glusterfs</module>
<module>hdfs</module>
<module>local</module>
<module>oss</module>
<module>swift</module>
<module>s3</module>
<module>s3a</module>
<module>gcs</module>
<module>swift</module>
</modules>


<dependencyManagement>
<dependencies>
<dependency>
<groupId>net.java.dev.jets3t</groupId>
<artifactId>jets3t</artifactId>
<version>0.8.1</version>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-s3</artifactId>
<version>${aws.amazonaws.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

<properties>
<!-- These need to be defined here as well as in the parent pom so that mvn can run
properly from sub-project directories -->
Expand Down
43 changes: 20 additions & 23 deletions underfs/s3/pom.xml
Expand Up @@ -30,47 +30,45 @@
</properties>

<dependencies>
<!-- External dependencies -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.alluxio</groupId>
<artifactId>alluxio-core-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>net.java.dev.jets3t</groupId>
<artifactId>jets3t</artifactId>
</dependency>

<!-- The following are jets3t dependencies
(see http://mvnrepository.com/artifact/net.java.dev.jets3t/jets3t/0.9.4).
We need to explicitly include them, because jets3t is shaded. -->
<!-- TODO(jsimsa): Investigate whether the same outcome can be achieved
using the promoteTransitiveDependencies option of the maven shade plugin. -->
<dependency>
<!-- jets3t dependency that needs to included explicitly, because jets3t is shaded. -->
<groupId>com.jamesmurty.utils</groupId>
<artifactId>java-xmlbuilder</artifactId>
<version>0.4</version>
</dependency>
<dependency>
<!-- jets3t dependency that needs to included explicitly, because jets3t is shaded. -->
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
</dependency>
<dependency>
<!-- jets3t dependency that needs to included explicitly, because jets3t is shaded. -->
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<!-- jets3t dependency that needs to included explicitly, because jets3t is shaded. -->
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>net.java.dev.jets3t</groupId>
<artifactId>jets3t</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>

<!-- Internal dependencies -->
<dependency>
<groupId>org.alluxio</groupId>
<artifactId>alluxio-core-common</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>

Expand All @@ -79,7 +77,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<id>shade-jets3t</id>
Expand Down

0 comments on commit 1f2432c

Please sign in to comment.