首页 > 解决方案 > com.amazonaws.services.textract 的 Maven 依赖项是什么?

问题描述

AWS 最近发布了(2018 年 11 月 28 日)一些新的 API。Textract 就是其中之一,但仍然找不到合适的文档来解释它。参考AWS 文档。对于 JAVA,有一些与 textract 相关的依赖项。搜索 jars 和 maven 依赖项,但找不到任何东西。对此有任何想法吗?

进口 com.amazonaws.services.textract.*

标签: javaamazon-web-servicesmaven

解决方案


这个pom.xml将帮助您获取 AWS 文本。

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>aws.example.textract</groupId>
  <artifactId>aws-textract-examples</artifactId>
  <packaging>jar</packaging>
  <version>1.0</version>
  <name>Amazon Textract Examples</name>
  <url>http://maven.apache.org</url>
  <properties>
     <maven.compiler.source>1.7</maven.compiler.source>
     <maven.compiler.target>1.7</maven.compiler.target>
  </properties>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>com.amazonaws</groupId>
        <artifactId>aws-java-sdk-bom</artifactId>
        <version>1.11.534</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>com.amazonaws</groupId>
      <artifactId>aws-java-sdk-textract</artifactId>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.amazonaws</groupId>
      <artifactId>aws-java-sdk-s3</artifactId>
    </dependency>
  </dependencies>
</project>

推荐阅读