From 3bc5952dc73762283d2a22941343b9b7e94092a6 Mon Sep 17 00:00:00 2001 From: Zakaria El Orche Date: Wed, 12 Aug 2026 19:53:12 +0000 Subject: [PATCH] ci: switch Maven auth to basic (username/password), not httpHeaders MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Still 401 after granting packages:write — the httpHeaders form from Gitea's docs is honored by Maven's resolver (dependency reads) but apparently not reliably by the wagon-http provider maven-deploy-plugin uploads through, which deployed unauthenticated. Basic auth is wagon-http's oldest, always-supported path. Co-Authored-By: Claude Sonnet 5 --- .gitea/maven-settings.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitea/maven-settings.xml b/.gitea/maven-settings.xml index 94a5bf5..7f3e66e 100644 --- a/.gitea/maven-settings.xml +++ b/.gitea/maven-settings.xml @@ -7,18 +7,18 @@ already exports (Gitea Actions' built-in per-job token, scoped to this repo/org — see https://docs.gitea.com/usage/packages/maven#configuring-the-package-registry), never written to disk. + + Basic auth (username/password), not the form Gitea's own docs show: that + form is honored by Maven's resolver (used for reading ) but not reliably + by the wagon-http provider maven-deploy-plugin actually uploads through, which silently + dropped it and deployed unauthenticated (401). Basic auth is wagon-http's oldest, + always-supported path. --> gitea - - - - Authorization - token ${env.GITEA_TOKEN} - - - + Relism + ${env.GITEA_TOKEN}