I've got some developers who are unhappy about storing their LDAP username/passwords in settings.xml in order to access Nexus. Their unhappiness is partly FUD, but also the inconvenience of having to re-encrypt the password whenever their LDAP password expires (which is relatively frequent here).
Is there any way at all to get Maven to use SSO / LDAP instead? The artifact repository we're using is Nexus, and the web front-end of that does use SSO already.
Tip: If you need to create user-specific settings from scratch, it's easiest to copy the global settings from your Maven installation to your ${user. home}/. m2 directory. Maven's default settings.
A Maven settings. xml file defines values that configure Maven execution in various ways. Most commonly, it is used to define a local repository location, alternate remote repository servers, and authentication information for private repositories.
The Maven settings file, settings. xml , is usually kept in the . m2 directory inside your home directory.
Navigate to path {M2_HOME}\conf\ where M2_HOME is maven installation folder. Open file settings. xml in edit mode in some text editor. Update the desired path in value of this tag.
You can enable encryption in the settings.xml file so that it's not sitting there in plain text as well.
http://maven.apache.org/guides/mini/guide-encryption.html#How_to_encrypt_server_passwords
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With