Skip to content

Conversation

phipag
Copy link
Contributor

@phipag phipag commented Sep 9, 2025

Summary

This PR address a small issue where a circular dependency in Maven phases caused build issues for the idempotency utility when attempting to start dynamodb-local before unit tests on an initial mvn -B test command.

The issue is:

  • Maven tries to copy all artifacts to ${project.build.directory}/dynamodb-local before running unit tests.
  • However, at this time the production dependencies are not yet built (powertools-idempotency-core)
  • Maven cannot copy the artifacts of non-built powertools-idempotency-core and fails

Solution:

  • powertools-idempotency-core is not needed for DynamoDB local which is treated as an external process. Removing it solves the circular dependency.

Example failure: https://github.com/aws-powertools/powertools-lambda-java/actions/runs/17577454233/job/49925991193

Changes

Issue number: #2128


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 9, 2025

@phipag phipag merged commit a2eecae into main Sep 9, 2025
15 checks passed
@phipag phipag deleted the phipag/fix-dynamodb-local-maven-phases branch September 9, 2025 10:18
@github-project-automation github-project-automation bot moved this from Pending review to Coming soon in Powertools for AWS Lambda (Java) Sep 9, 2025
@phipag phipag linked an issue Sep 9, 2025 that may be closed by this pull request
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Coming soon

Development

Successfully merging this pull request may close these issues.

Maintenance: Fix quality checks in release workflow

3 participants