Skip to content

Conversation

@dfcoffin
Copy link
Contributor

Summary

Removes redundant TestContainers BOM declaration from openespi-common/pom.xml. Spring Boot 3.5's dependency management already includes TestContainers BOM, making the explicit version declaration unnecessary.

Changes

  • Removed testcontainers.version property (1.20.1)
  • Removed dependencyManagement section with TestContainers BOM import
  • Total: 15 lines removed

Testing

All integration tests pass:

  • MySQL TestContainers integration tests: 21/21 passed
  • PostgreSQL TestContainers integration tests: 21/21 passed

Impact

  • Low risk: Configuration change only, no code modifications
  • No breaking changes: Spring Boot 3.5 manages TestContainers v1.21.0 automatically
  • Benefits: Simpler dependency management, leverages Spring Boot's built-in BOM

Verification

Tested with:

  • Docker Desktop 28.5.1
  • TestContainers 1.21.0 (managed by Spring Boot 3.5)
  • MySQL 8.0 container
  • PostgreSQL 15-alpine container

🤖 Generated with Claude Code

  Spring Boot 3.5 dependency management already includes TestContainers BOM,
  making the explicit version declaration redundant.

  Verified with MySQL and PostgreSQL integration tests - all 21 tests pass.

  🤖 Generated with [Claude Code](https://claude.com/claude-code)

  Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
  The sonar-maven-plugin was only defined in <pluginManagement> but not
  in the active <plugins> section, causing CI/CD failures when running
  mvn sonar:sonar.

  Maven requires plugins to be in the active <plugins> section to be
  executable via the prefix:goal syntax.

  Fixes SonarCloud Analysis and SonarCloud PR Analysis CI/CD failures.

  🤖 Generated with [Claude Code](https://claude.com/claude-code)

  Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
  Maven's plugin prefix resolver doesn't recognize 'sonar' prefix by default.
  Changed from 'mvn sonar:sonar' to 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar'
  in both CI/CD and PR checks workflows.

  This ensures the plugin can be resolved without requiring additional Maven
  settings.xml configuration for plugin groups.

  Fixes "No plugin found for prefix 'sonar'" CI/CD error.

  🤖 Generated with [Claude Code](https://claude.com/claude-code)

  Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@dfcoffin dfcoffin merged commit 1449aa1 into main Dec 24, 2025
5 checks passed
@dfcoffin dfcoffin deleted the fix/testcontainers-docker-compatibility branch December 24, 2025 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants