Repository navigation
Conversation
Align the docs with apache/maven#14173: settings model 1.4.0 adds token and tokenHeader on <server> (Maven 3.10.3 and 4.0.0).
1 task done
cstamas
commented
Nov 29, 2026
| </settings> | ||
| ``` | ||
|
|
||
| Since Maven 3.10.3 and 4.0.0, a repository that expects a token, such as a bearer token or a GitLab |
Member
Author
There was a problem hiding this comment.
note: 4.0.0 ONLY if it waits for new resolver, otherwise it will be 4.0.1 or so
1 task done
Follows apache/maven#14173 and #14179: <token> is a bearer token only, and any number of other token headers go in <tokenHeaders><tokenHeader><name/><value/></tokenHeader></tokenHeaders> (GitLab Private-Token, Cloudflare Access client id and secret, ...). Token header values can be encrypted like a password, and the documented errors now include Proxy-* and Sec-* names and duplicate headers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents the server
tokenandtokenHeaderssettings added by apache/maven#14173 (3.10.x) and apache/maven#14179 (4.0.x), settings model 1.4.0.settings.md: new "Server Tokens" section. It covers:token(Authorization: Bearer <token>);tokenHeaderslist (nameandvalue), for example GitLabPrivate-Token/Job-Token/Deploy-Token, or Cloudflare AccessCF-Access-Client-IdplusCF-Access-Client-Secret;Host,Proxy-*andSec-*;httpHeaders.guide-encryption.md:<token>and token header values can be encrypted like a password.guide-deployment-security-settings.md: link to Server Tokens.guide-http-settings.md: don't put auth tokens inhttpHeaders; usetokenortokenHeaders.Notes:
maven-3.10.x(now at3.10.3-SNAPSHOT), and 4.0.0. Settings model 1.3.0 already shipped in 3.10.0. Merge this only after [maven-3.10.x] Support token authentication (bearer and custom token headers) for settings servers maven#14173 is merged, and fix the version if it lands in a later release.<tokenHeader>of the first version of this PR is gone; it followed the Maven PRs to the<tokenHeaders>list.xsd/settings-1.4.0.xsdis not added here. The new example links to it, and it must be published with the release.