Add used-but-undeclared dependency on google-http-client

Prior to this change, running

    $ mvn dependency:analyze -pl sdk

yields

    [WARNING] Used undeclared dependencies found:
    [WARNING]    com.google.code.findbugs:jsr305:jar:3.0.1:compile
    [WARNING]    javax.xml.stream:stax-api:jar:1.0-2:compile
    [WARNING]    com.google.http-client:google-http-client:jar:1.21.0:compile
    [WARNING] Unused declared dependencies found:
    [WARNING]    org.codehaus.woodstox:woodstox-core-asl:jar:4.1.2:compile
    [WARNING]    org.tukaani:xz:jar:1.5:compile

This is accurate. Many classes depend on com.google.api.client.util from
the google-http-client package.

----Release Notes----

[]
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=115303825


Project: http://git-wip-us.apache.org/repos/asf/incubator-beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam/commit/6b372ecb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam/tree/6b372ecb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam/diff/6b372ecb

Branch: refs/heads/master
Commit: 6b372ecb3dee573569dfbce415f45265eb3f6f67
Parents: 13a042a
Author: klk <[email protected]>
Authored: Mon Feb 22 21:42:17 2016 -0800
Committer: Davor Bonaci <[email protected]>
Committed: Thu Feb 25 23:58:26 2016 -0800

----------------------------------------------------------------------
 sdk/pom.xml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/6b372ecb/sdk/pom.xml
----------------------------------------------------------------------
diff --git a/sdk/pom.xml b/sdk/pom.xml
index e3744fd..bdbdd5f 100644
--- a/sdk/pom.xml
+++ b/sdk/pom.xml
@@ -519,6 +519,20 @@
 
     <dependency>
       <groupId>com.google.http-client</groupId>
+      <artifactId>google-http-client</artifactId>
+      <version>${google-clients.version}</version>
+      <exclusions>
+        <!-- Exclude an old version of guava that is being pulled
+             in by a transitive dependency of google-api-client -->
+        <exclusion>
+          <groupId>com.google.guava</groupId>
+          <artifactId>guava-jdk5</artifactId>
+        </exclusion>
+      </exclusions>
+    </dependency>
+
+    <dependency>
+      <groupId>com.google.http-client</groupId>
       <artifactId>google-http-client-jackson2</artifactId>
       <version>${google-clients.version}</version>
       <exclusions>

Reply via email to