Shared Libraries
Architecture
Section titled “Architecture”Services
Section titled “Services”| Service | FQN |
|---|---|
| Core Library | sharedLibraries.coreLibrary |
| Test Support Library | sharedLibraries.testSupportLibrary |
Architecture Decisions
Section titled “Architecture Decisions”None
High-Level Designs
Section titled “High-Level Designs”None
Application Architecture
Section titled “Application Architecture”The Shared Libraries application groups the cross-cutting Java/Spring Boot foundational libraries defined in the Decoupled Maven Multi-Repo Architecture (ADR 0005). Every AirCommerce microservice that inherits from one.aircommerce.pom:boot-base-super-pom automatically receives:
- Core Library (
core-library) atcompilescope: standardizing OAuth2 JWT resource-server security, OAuth2 token exchange for downstream Feign calls, OpenTelemetry trace propagation, global exception handling (GlobalExceptionHandler), and theServiceException/BaseResponsecontract. - Test Support Library (
test-support-library) attestscope: providingBaseControllerTest,@WithMockUsersecurity contexts, WireMock Spring Boot integration, and Testcontainers without leaking test dependencies into production fat-JARs.