What is the Maven dependency for the Java API Directory API Client Library?

My maven project uses the Directory API client library for Java, and I needed to include it as a dependency. But on the Directory API Client Library for Java page, under the heading “Add a library to your project”, when I select maven as the build environment that it always displayed,

"Add the following to your pom.xml file:

This library is in the process of downloading to the central Maven repository. Please check back in a few hours. "

in the last couple of weeks.

Since I used Google Drive addiction in another project as follows,

    <dependency>
        <groupId>com.google.apis</groupId>
        <artifactId>google-api-services-drive</artifactId>
        <version>v2-rev60-1.13.2-beta</version>
    </dependency>

I tried the same way, including,

    <dependency>
        <groupId>com.google.apis</groupId>
        <artifactId>google-api-services-directory</artifactId>
        <version>v1-rev28-1.17.0-rc</version>
    </dependency>

but it didn’t work.

pom, ,

    <repository>
        <id>google-api-services</id>
        <url>http://google-api-client-libraries.appspot.com/mavenrepo</url>
    </repository>

maven Directory API Client Library Java.

+5
2

, ,

, Maven.

API- API Java. pom, , .

    <dependency>
        <groupId>com.google.apis</groupId>
        <artifactId>google-api-services-admin</artifactId>
        <version>directory_v1-rev22-1.16.0-rc</version>
    </dependency>

, , .

    <dependency>
        <groupId>com.google.apis</groupId>
        <artifactId>google-api-services-admin</artifactId>
        <version>directory_v1-rev28-1.17.0-rc</version>
    </dependency>
+2

:

https://search.maven.org/artifact/com.google.apis/google-api-services-admin/reports_v1-rev26-1.16.0-rc/jar

"" Apache Maven , , pom.xml. :

    <dependency>
      <groupId>com.google.apis</groupId>
      <artifactId>google-api-services-admin</artifactId>
      <version>reports_v1-rev26-1.16.0-rc</version>
    </dependency>

, API API Java " , Maven, " " , .

0

Source: https://habr.com/ru/post/1529522/


All Articles