## In replies all text above this line is added to the ticket ##
Request received: Re: How to setup location of settings.xml NOT by cmdline?
(ticket #21935)
Your request (#21935) has been received, and is being reviewed by our support
staff.
To review the status of the request and add
Thank you.
One more last question:
Assume I use such an external Maven installation from Eclipse (= not the
internal, embedded Maven from Eclipse).
Does Eclipse pay attention to the preferences (e.g. the location of the
Repository) in these settings.xmls
as well?
--
View this message in cont
M2_HOME/conf/settings.xml is the GLOBAL settings. They are always
read, first. The the user's settings come in on top.
On Sun, Dec 26, 2010 at 11:44 AM, benxs wrote:
>
>> Looks like you just want put your settings inside M2_HOME/conf/settings.xml
>
> Thank you. That sounds interesting!
>
> Does
On Sun, Dec 26, 2010 at 4:44 PM, benxs wrote:
> ? Does Maven read both or only the first file it finds?
> Which one has priority?
Based on org.apache.maven.settings.building.DefaultSettingsBuilder
implementation, maven read both and merge them on runtime.
/.m2/settings.xml taken priority.
> Wher
> Looks like you just want put your settings inside M2_HOME/conf/settings.xml
Thank you. That sounds interesting!
Does that mean that Maven reads automatically every time it starts
the file
M2_HOME/conf/settings.xml
before the file
/.m2/settings.xml
? Does Maven read both or only the first
On Sun, Dec 26, 2010 at 9:09 AM, Guo Du wrote:
>> I prefer to have Maven auto-detect the settings.xml in its own installation
>> directory.
> Looks like you just want put your settings inside M2_HOME/conf/settings.xml
>
Or.. mvn is a shell script (or batch file)
You could just modify that scrip
> I prefer to have Maven auto-detect the settings.xml in its own installation
> directory.
Looks like you just want put your settings inside M2_HOME/conf/settings.xml
Happy holiday!
-Guo
-
To unsubscribe, e-mail: users-unsubscr
I want to move the location of the settings.xml away from the users home
directory into another (.e.g. the Maven installation directory).
How can I achieve this for the cmdline usage (=NOT Eclipse) ?
Yes, I know I can pass an additional parameter like
mvn -s "D:\maven\settings.xml" install
but