title: Error while generating Open API for my API
body: <p>Im having an App engine project that having an Api class to be deployed in Google app engine, 
  when I execute these lines to create a JSON file for open API it gives me the following build error: </p>
  
  <p>mvn clean package<br>
  mvn endpoints-framework:openApiDocs</p>
  
  <blockquote>
    <p>[ERROR] Failed to execute goal
    com.google.cloud.tools:endpoints-framework-maven-plugin:1.0.2:openApiDocs
    (default-cli) on project Harmonica-API: Execution default-cli of goal
    com.google.cloud.tools:endpoints-framework-maven-plugin:1.0.2:openApiDocs
    failed: An API incompatibility was encountered while executing
    com.google.cloud.tools:endpoints-framework-maven-plugin:1.0.2:openApiDocs:
    java.lang.NoSuchMethodError:
    com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient$Builder.setBatchPath(Ljava/lang/String;)Lcom/google/api/client/googleapis/services/AbstractGoogleClient$Builder;</p>
  </blockquote>
  
  <p>find below is my dependencies in the POM.xml file </p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;com.google.endpoints&lt;/groupId&gt;
          &lt;artifactId&gt;endpoints-framework&lt;/artifactId&gt;
          &lt;version&gt;2.2.1&lt;/version&gt;
      &lt;/dependency&gt;
  
  
      &lt;dependency&gt;
          &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
          &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
          &lt;version&gt;3.1.0&lt;/version&gt;
          &lt;type&gt;jar&lt;/type&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;jstl&lt;/groupId&gt;
          &lt;artifactId&gt;jstl&lt;/artifactId&gt;
          &lt;version&gt;1.2&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;javax.inject&lt;/groupId&gt;
          &lt;artifactId&gt;javax.inject&lt;/artifactId&gt;
          &lt;version&gt;1&lt;/version&gt;
      &lt;/dependency&gt;
  
  
      &lt;dependency&gt;
          &lt;groupId&gt;commons-codec&lt;/groupId&gt;
          &lt;artifactId&gt;commons-codec&lt;/artifactId&gt;
          &lt;version&gt;1.10&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;Harmonica-DAOs&lt;/groupId&gt;
          &lt;artifactId&gt;Harmonica-DAOs&lt;/artifactId&gt;
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
          &lt;scope&gt;compile&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.sendgrid&lt;/groupId&gt;
          &lt;artifactId&gt;sendgrid-java&lt;/artifactId&gt;
          &lt;version&gt;4.1.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;net.htmlparser.jericho&lt;/groupId&gt;
          &lt;artifactId&gt;jericho-html&lt;/artifactId&gt;
          &lt;version&gt;3.4&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
        &lt;groupId&gt;com.google.endpoints&lt;/groupId&gt;
        &lt;artifactId&gt;endpoints-management-control-appengine-all&lt;/artifactId&gt;
        &lt;version&gt;1.0.11&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>and find below is the POM of the DAO project:</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;com.restfb&lt;/groupId&gt;
          &lt;artifactId&gt;restfb&lt;/artifactId&gt;
          &lt;version&gt;2.12.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.nimbusds&lt;/groupId&gt;
          &lt;artifactId&gt;nimbus-jose-jwt&lt;/artifactId&gt;
          &lt;version&gt;4.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
          &lt;artifactId&gt;commons-lang3&lt;/artifactId&gt;
          &lt;version&gt;3.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.appengine&lt;/groupId&gt;
          &lt;artifactId&gt;appengine-api-1.0-sdk&lt;/artifactId&gt;
          &lt;version&gt;${appengine.target.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.eclipse.persistence&lt;/groupId&gt;
          &lt;artifactId&gt;org.eclipse.persistence.jpa&lt;/artifactId&gt;
          &lt;version&gt;2.7.0&lt;/version&gt;
          &lt;!-- &lt;exclusions&gt; --&gt;
          &lt;!-- &lt;exclusion&gt; --&gt;
          &lt;!-- &lt;groupId&gt;org.eclipse.persistence&lt;/groupId&gt; --&gt;
          &lt;!-- &lt;artifactId&gt;javax.persistence&lt;/artifactId&gt; --&gt;
          &lt;!-- &lt;/exclusion&gt; --&gt;
          &lt;!-- &lt;/exclusions&gt; --&gt;
  
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;javax.json&lt;/groupId&gt;
          &lt;artifactId&gt;javax.json-api&lt;/artifactId&gt;
          &lt;version&gt;1.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-mapper-asl&lt;/artifactId&gt;
          &lt;version&gt;1.9.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;net.minidev&lt;/groupId&gt;
          &lt;artifactId&gt;json-smart&lt;/artifactId&gt;
          &lt;version&gt;1.0.6.3&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.firebase&lt;/groupId&gt;
          &lt;artifactId&gt;firebase-admin&lt;/artifactId&gt;
          &lt;version&gt;5.8.0&lt;/version&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;com.google.http-client&lt;/groupId&gt;
                  &lt;artifactId&gt;google-http-client-gson&lt;/artifactId&gt;
              &lt;/exclusion&gt;
  
              &lt;exclusion&gt;
                  &lt;groupId&gt;com.google.api-client&lt;/groupId&gt;
                  &lt;artifactId&gt;google-api-client&lt;/artifactId&gt;
              &lt;/exclusion&gt;
  
              &lt;exclusion&gt;
                  &lt;groupId&gt;com.google.api-client&lt;/groupId&gt;
                  &lt;artifactId&gt;google-api-client-gson&lt;/artifactId&gt;
              &lt;/exclusion&gt;
  
  
              &lt;exclusion&gt;
                  &lt;groupId&gt;com.google.http-client&lt;/groupId&gt;
                  &lt;artifactId&gt;google-http-client&lt;/artifactId&gt;
              &lt;/exclusion&gt;
  
              &lt;exclusion&gt;
                  &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                  &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
              &lt;/exclusion&gt;
  
              &lt;exclusion&gt;
                  &lt;groupId&gt;io.netty&lt;/groupId&gt;
                  &lt;artifactId&gt;netty-codec-http&lt;/artifactId&gt;
              &lt;/exclusion&gt;
  
  
              &lt;exclusion&gt;
                  &lt;groupId&gt;io.netty&lt;/groupId&gt;
                  &lt;artifactId&gt;netty-handler&lt;/artifactId&gt;
              &lt;/exclusion&gt;
  
  
              &lt;exclusion&gt;
                  &lt;groupId&gt;io.netty&lt;/groupId&gt;
                  &lt;artifactId&gt;netty-transport&lt;/artifactId&gt;
              &lt;/exclusion&gt;
  
              &lt;exclusion&gt;
                  &lt;groupId&gt;com.google.cloud&lt;/groupId&gt;
                  &lt;artifactId&gt;google-cloud-storage&lt;/artifactId&gt;
              &lt;/exclusion&gt;
  
              &lt;!-- &lt;exclusion&gt; --&gt;
              &lt;!-- &lt;groupId&gt;io.grpc&lt;/groupId&gt; --&gt;
              &lt;!-- &lt;artifactId&gt;grpc-core&lt;/artifactId&gt; --&gt;
              &lt;!-- &lt;/exclusion&gt; --&gt;
  
          &lt;/exclusions&gt;
  
      &lt;/dependency&gt;
  
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
          &lt;artifactId&gt;gson&lt;/artifactId&gt;
          &lt;version&gt;2.8.2&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;mysql&lt;/groupId&gt;
          &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
          &lt;version&gt;8.0.12&lt;/version&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;com.google.protobuf&lt;/groupId&gt;
                  &lt;artifactId&gt;protobuf-java&lt;/artifactId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
  
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.cloud.sql&lt;/groupId&gt;
          &lt;artifactId&gt;mysql-socket-factory-connector-j-8&lt;/artifactId&gt;
          &lt;version&gt;1.0.11&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;google-cloud-storage&lt;/artifactId&gt;
          &lt;version&gt;1.77.0&lt;/version&gt;
      &lt;/dependency&gt;
  
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;google-cloud-bigquery&lt;/artifactId&gt;
          &lt;version&gt;0.34.0-beta&lt;/version&gt;
          &lt;!-- &lt;exclusions&gt; --&gt;
          &lt;!-- &lt;exclusion&gt; --&gt;
          &lt;!-- &lt;groupId&gt;com.google.api&lt;/groupId&gt; --&gt;
          &lt;!-- &lt;artifactId&gt;gax&lt;/artifactId&gt; --&gt;
          &lt;!-- &lt;/exclusion&gt; --&gt;
          &lt;!-- &lt;/exclusions&gt; --&gt;
  
  
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;google-cloud-logging&lt;/artifactId&gt;
          &lt;version&gt;1.16.0&lt;/version&gt;
  
          &lt;exclusions&gt;
  
              &lt;exclusion&gt;
                  &lt;groupId&gt;io.grpc&lt;/groupId&gt;
                  &lt;artifactId&gt;grpc-core&lt;/artifactId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
  
      &lt;/dependency&gt;
  
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
          &lt;artifactId&gt;slf4j-nop&lt;/artifactId&gt;
          &lt;version&gt;1.7.25&lt;/version&gt;
      &lt;/dependency&gt;
  
  
      &lt;dependency&gt;
          &lt;groupId&gt;commons-codec&lt;/groupId&gt;
          &lt;artifactId&gt;commons-codec&lt;/artifactId&gt;
          &lt;version&gt;1.10&lt;/version&gt;
      &lt;/dependency&gt;
  
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.owasp.encoder&lt;/groupId&gt;
          &lt;artifactId&gt;encoder&lt;/artifactId&gt;
          &lt;version&gt;1.2.2&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.twitter4j&lt;/groupId&gt;
          &lt;artifactId&gt;twitter4j-core&lt;/artifactId&gt;
          &lt;version&gt;4.0.6&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.opencsv&lt;/groupId&gt;
          &lt;artifactId&gt;opencsv&lt;/artifactId&gt;
          &lt;version&gt;3.3&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.mindrot&lt;/groupId&gt;
          &lt;artifactId&gt;jbcrypt&lt;/artifactId&gt;
          &lt;version&gt;0.4&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.sendgrid&lt;/groupId&gt;
          &lt;artifactId&gt;sendgrid-java&lt;/artifactId&gt;
          &lt;version&gt;4.1.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;google-cloud-datastore&lt;/artifactId&gt;
          &lt;version&gt;1.34.0&lt;/version&gt;
          &lt;exclusions&gt;
  
              &lt;exclusion&gt;
                  &lt;groupId&gt;io.grpc&lt;/groupId&gt;
                  &lt;artifactId&gt;grpc-core&lt;/artifactId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
  
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.amazonaws&lt;/groupId&gt;
          &lt;artifactId&gt;aws-java-sdk-sns&lt;/artifactId&gt;
          &lt;version&gt;1.11.235&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.stripe&lt;/groupId&gt;
          &lt;artifactId&gt;stripe-java&lt;/artifactId&gt;
          &lt;version&gt;7.24.0&lt;/version&gt;
      &lt;/dependency&gt;
  
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;google-cloud-kms&lt;/artifactId&gt;
          &lt;version&gt;1.0.0&lt;/version&gt;
          &lt;exclusions&gt;
  
              &lt;exclusion&gt;
                  &lt;groupId&gt;io.grpc&lt;/groupId&gt;
                  &lt;artifactId&gt;grpc-core&lt;/artifactId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
  
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.segment.analytics.java&lt;/groupId&gt;
          &lt;artifactId&gt;analytics&lt;/artifactId&gt;
          &lt;version&gt;2.1.1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.api&lt;/groupId&gt;
          &lt;artifactId&gt;gax-grpc&lt;/artifactId&gt;
          &lt;version&gt;1.42.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;net.imagej&lt;/groupId&gt;
          &lt;artifactId&gt;ij&lt;/artifactId&gt;
          &lt;version&gt;1.52p&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.twilio.sdk&lt;/groupId&gt;
          &lt;artifactId&gt;twilio&lt;/artifactId&gt;
          &lt;version&gt;7.42.0&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Can any one help me plz? given that The project is built and deployed successfully in App engine </p>