com.google.api.client.json.jackson.JacksonFactory; missing in Google Drive example

eclipse picture eclipse · Jun 21, 2013 · Viewed 27.1k times · Source

I tried running the quickstart-sample, and this dependency:

<dependency>
      <groupId>com.google.apis</groupId>
      <artifactId>google-api-services-drive</artifactId>
<version>v2-rev78-1.15.0-rc</version>
</dependency>

from Drive wiki API page

Yet when I try to compile the code com.google.api.client.json.jackson.JacksonFactory; is missing.
To verify this you just need to do Step 2 & 3! Where can I find this class or how can I replace it in the sample?

Answer

Arseniy picture Arseniy · Jul 7, 2013

Jackson library can be found at http://repo2.maven.org/maven2/com/google/http-client/google-http-client-jackson/

For July 7, last version can be obtained by Maven

<dependency>
    <groupId>com.google.http-client</groupId>
    <artifactId>google-http-client-jackson</artifactId>
    <version>1.15.0-rc</version>
</dependency>

You may also need

<dependency>
    <groupId>com.google.oauth-client</groupId>
    <artifactId>google-oauth-client-java6</artifactId>
    <version>1.15.0-rc</version>
</dependency>