DynamoDB download error in Apache Maven 3.5

Asked 2 years ago, Updated 2 years ago, 474 views

The following error occurs when retrieving dependencies in Maven 3.5.2 in an EC2 environment:
Version 1.16.0 fails to download, but I do not know the problem.

Error Contents

[WARNING] The POM for com.amazonaws:DynamoDBBLocal:jar:1.16.0 is missing, no dependency information available 

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline (default-cli) on project service: org.eclipse.aether.resolution.DependencyResolutionException: Failure to find com.amazonaws:DynamoDBLocal:jar:1.16.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has been elapped or updated are forced->[Help1]

POM.XML

<dependency>
  <groupId>com.amazonaws</groupId>
  <artifactId>DynamoDBLocal</artifactId>
  <version>1.16.0</version>
  <scope>test</scope>
</dependency>

maven amazon-dynamodb

2022-09-30 21:58

1 Answers

It is not registered with Central Repository, so you need to specify the repository you want to reference.

pom.xml:

<repositions>
    <repository>
      <id>dynamodb-local-oregon</id>
      <name>DynamoDB Local Release Repository</name>
      <url>https://s3-us-west-2.amazonaws.com/dynamodb-local/release</url>
    </repository>
  </repositions>

Note:


2022-09-30 21:58

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.