Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-2099

Allow to define HTTP headers to Maven extension repositories


    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.10
    • Fix Version/s: 13.0
    • Component/s: Extension
    • Labels:
    • Difficulty:
    • Pull Request Status:
      Awaiting Committer feedback
    • Similar issues:


      When configuring a Maven repository, it is usually possible to set specific HTTP headers used when communicating with these repositories. Below is an example of configuration :


      These headers can be used to authenticate against the repository as a replacement to the more standard HTTP Basic authentication used by default for Maven repositories. Even though the use of basic authentication seems still widespread, some other actors seem to start providing alternative ways to authenticate through repositories. Sending a custom HTTP header is one of these alternative ways, and it's especially used in GitLab, when trying to access the artifact registry associated with a specific project [1].

      As XWiki is already capable of fetching and installing some extensions once it has access to a Maven repository, it would be nice to actually add support for that mechanism (that is, configuring custom HTTP headers on a specific repository), so that XWiki could potentially connect to GitLab-managed Maven repositories, or maybe any other repository that is secured using a similar authentication mechanism.

      The proposal would then be to provide a configuration like this one :


      … that should then be forwarded to the RepositorySystemSession upon creation of the repository.

      [1] See https://docs.gitlab.com/ee/user/packages/maven_repository/index.html for more information


          Issue Links



              • Assignee:
                caubin Clément Aubin
                caubin Clément Aubin
              • Votes:
                0 Vote for this issue
                1 Start watching this issue


                • Created: