From 721607c246e6be8cfc1d8fad057ea46d8e2ad512 Mon Sep 17 00:00:00 2001 From: "Zimin A.N." Date: Tue, 5 May 2026 20:58:44 +0300 Subject: [PATCH] =?UTF-8?q?fix(auth):=20explicit=20nimbus-jose-jwt=20?= =?UTF-8?q?=D0=B2=20ordinis-auth=20=E2=80=94=20production=20crashloop?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Найден production-bug на staging: ordinis-app в CrashLoopBackOff с NoClassDefFoundError: com/nimbusds/jose/RemoteKeySourceException. Причина: в Phase 2c e2e тестах я добавил nimbus-jose-jwt 9.37.3 как test-scope direct dependency в ordinis-app/pom.xml. Maven scope resolution: direct test-scope побеждает transitive compile-scope, nimbus исключился из Spring Boot fat jar. На runtime JwtDecoders.fromIssuerLocation() (использует Nimbus internally) падал. Fix: - ordinis-auth/pom.xml: explicit compile-scope dep на nimbus-jose-jwt (раньше тянулся транзитивно через oauth2-resource-server starter) - ordinis-app/pom.xml: убрал test-scope direct decl, JwtTestSupport использует nimbus с compile classpath. Verified: BOOT-INF/lib/nimbus-jose-jwt-9.37.3.jar в fat jar после rebuild. e2e AuthE2ETest всё ещё зелёный (12/12). --- ordinis-app/pom.xml | 10 ++++------ ordinis-auth/pom.xml | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/ordinis-app/pom.xml b/ordinis-app/pom.xml index 2b5d1a0..3f918ae 100644 --- a/ordinis-app/pom.xml +++ b/ordinis-app/pom.xml @@ -96,12 +96,10 @@ awaitility test - - com.nimbusds - nimbus-jose-jwt - 9.37.3 - test - + + org.liquibase liquibase-core diff --git a/ordinis-auth/pom.xml b/ordinis-auth/pom.xml index e1d50ba..359dcbc 100644 --- a/ordinis-auth/pom.xml +++ b/ordinis-auth/pom.xml @@ -31,5 +31,19 @@ org.springframework.boot spring-boot-starter-web + + + com.nimbusds + nimbus-jose-jwt + 9.37.3 +