Skip to content

TEDEFO-5381: Log in to the repositories of settings.xml when downloading the SDK - #78

Merged
rousso merged 1 commit into
developfrom
feature/TEDEFO-5381-repository-credentials
Nov 21, 2026
Merged

rousso merged 1 commit into
developfrom
feature/TEDEFO-5381-repository-credentials

Conversation

@rousso

@rousso rousso commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Ticket: https://citnet.tech.ec.europa.eu/CITnet/jira/browse/TEDEFO-5381

What was wrong

The SDK downloader reads the repositories of the user's settings.xml, but it did not send the login of the matching <server> entries. A repository that needs a login, such as the DIGIT nexus, answered 401 to every request, and the downloader went on to the next repository. Proxy passwords were used as written, so an encrypted proxy password was sent in its encrypted form.

What changes

  • The settings are decrypted as the Maven command line does. The master password comes from ~/.m2/settings-security.xml, or from the file named by the system property settings.security.
  • Each repository, Maven Central included, logs in with the <server> entry that has the same id.
  • plexus-cipher and plexus-sec-dispatcher are declared in the pom, at the versions that maven-settings-builder already uses.

Tests

  • 137 tests pass, 4 of them new: a repository with a login and one without, Maven Central with a login, encrypted server and proxy passwords, and the location of settings-security.xml.
  • A real SDK download, on a machine with the DIGIT nexus in settings.xml, now reads the nexus without a 401, also when settings.xml is in another folder.

ecl-2 may need the same fix.

@rousso rousso self-assigned this Nov 21, 2026
@rousso
rousso merged commit 7542e7a into develop Nov 21, 2026
6 checks passed
@rousso
rousso deleted the feature/TEDEFO-5381-repository-credentials branch November 21, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant