Maven settings through SSO?

I have some developers who are unhappy with storing LDAP username / passwords in settings.xml in order to access Nexus. Their misfortune is partly due to FUD, but also the inconvenience of having to re-encrypt the password every time their LDAP password expires (which is quite common here).

Is there any way to force Maven to use SSO / LDAP? The artifact repository we use is Nexus, and its web interface already uses SSO.

+6
source share
2 answers

You can enable encryption in the settings.xml file so that it does not sit there in plain text.

http://maven.apache.org/guides/mini/guide-encryption.html#How_to_encrypt_server_passwords

+1
source

The latest version of Nexus includes a new security token feature to solve this problem. I have not used it yet, but it is documented here:

0
source

Source: https://habr.com/ru/post/928046/


All Articles