

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# side-by-side使用適用於 Java 的 開發套件 1.x 和 2.x
<a name="migration-side-by-side"></a>

您可以在專案 適用於 Java 的 AWS SDK 中使用 的兩個版本。

以下顯示 Amazon S3 使用 1.x 版和 1.x 版 的 專案`pom.xml`檔案範例 ，以及 DynamoDB 使用 的 版本 - 2.27.21 1.2 版 - 的 。

**Example 範例 POM**  
此範例顯示同時使用 SDK 1.x 和 2.x 版本的專案`pom.xml`的檔案項目。  

```
<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>com.amazonaws</groupId>
            <artifactId>aws-java-sdk-bom</artifactId>
            <version>1.12.1</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
        <dependency>
          <groupId>software.amazon.awssdk</groupId>
          <artifactId>bom</artifactId>
          <version>2.27.21</version>
          <type>pom</type>
          <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

<dependencies>
    <dependency>
      <groupId>com.amazonaws</groupId>
      <artifactId>aws-java-sdk-s3</artifactId>
    </dependency>
    <dependency>
      <groupId>software.amazon.awssdk</groupId>
      <artifactId>dynamodb</artifactId>
    </dependency>
</dependencies>
```