Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven settings via SSO?

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.

like image 292
RCross Avatar asked Oct 18 '12 16:10

RCross


People also ask

How do I set user specific settings in Maven?

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.

What settings xml is Maven using?

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.

Where is Maven settings?

The Maven settings file, settings. xml , is usually kept in the . m2 directory inside your home directory.

How do I change settings xml in Maven?

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.


1 Answers

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

like image 191
Michael Avatar answered Nov 08 '22 07:11

Michael