Google API Client Library v1.21.0

105 views
Skip to first unread message

Colin Ng

unread,
Sep 14, 2015, 7:41:18 PM9/14/15
to google-api-java-client
Hi all,

I am encountering google-api-java-client build problem in v1.21.0 (the latest version from https://github.com/google/google-api-java-client). The error message I received  is as follows:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (generate-sources) on project google-api-client: An Ant BuildException has occured: Execute failed: java.io.IOException: Cannot run program "protoc": Create Process error=2, The system cannot find the file specified

 As the maven repository pointed to doesn't have maven-antrun-plugin-1.6.jar, I have linked the maven-antrun-plugin-1.6.jar manually. Just wonder what when wrong. And someone can show me some light.

Thanks.

Colin

Eric Anderson

unread,
Sep 14, 2015, 7:45:24 PM9/14/15
to google-api-...@googlegroups.com
You have to have protoc version 2.4.1 in your PATH (yes, that is a pain). Some info for building 2.4.1 can be found on the google-http-java-client contributing documentation.

--
You received this message because you are subscribed to the Google Groups "google-api-java-client" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-api-java-c...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages