You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Niranjan Rao <nh...@gmail.com> on 2012/08/21 18:30:40 UTC
Repository passwords
Hi Folks,
I know we can store the repository passwords in settings.xml in ~/.m2
directory.
In our case, this is turning out to be bit difficult. Our settings.xml
has some interesting configuration and rather than asking every
developer to duplicate it in his/her machine, we commit one file and use
"maven -s" flag to point to right file.
I am wondering where can we save the repository passwords in this case?
Can we use global settings file or any environment variable?
Thanks,
Niranjan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Repository passwords
Posted by Wayne Fay <wa...@gmail.com>.
> I am wondering where can we save the repository passwords in this case?
> Can we use global settings file or any environment variable?
Does this bit of documentation [1] help solve your problem?
There are two locations where a settings.xml file may live:
The Maven install: $M2_HOME/conf/settings.xml
A user's install: ${user.home}/.m2/settings.xml
The former settings.xml are also called global settings, the latter
settings.xml are referred to as user settings. If both files exists,
their contents gets merged, with the user-specific settings.xml being
dominant.
[1] http://maven.apache.org/settings.html
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org