ci: switch Maven auth to basic (username/password), not httpHeaders
Publish Maven packages / publish (push) Failing after 27s
Publish Maven packages / publish (push) Failing after 27s
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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
9d19de50cb
commit
3bc5952dc7
@@ -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 <httpHeaders> form Gitea's own docs show: that
|
||||
form is honored by Maven's resolver (used for reading <repositories>) 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.
|
||||
-->
|
||||
<servers>
|
||||
<server>
|
||||
<id>gitea</id>
|
||||
<configuration>
|
||||
<httpHeaders>
|
||||
<property>
|
||||
<name>Authorization</name>
|
||||
<value>token ${env.GITEA_TOKEN}</value>
|
||||
</property>
|
||||
</httpHeaders>
|
||||
</configuration>
|
||||
<username>Relism</username>
|
||||
<password>${env.GITEA_TOKEN}</password>
|
||||
</server>
|
||||
</servers>
|
||||
</settings>
|
||||
|
||||
Reference in New Issue
Block a user