You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Asmann, Roland" <Ro...@adesso.at> on 2011/03/15 14:44:11 UTC
help:effective-settings
Hi all,
I had this feeling that my Maven was using the wrong settings.xml file
and when running help:effective-settings, it indeed shows me the wrong
configuration.
Now, I looked in all the normal places where settings.xml files are
looked for, but I can't seem to find where Maven is seeing this file! Is
there some way to have Maven report back on where the settings.xml files
where found?
Thanks,
--
Roland Asmann
Senior Software Engineer
adesso Austria GmbH
Floridotower 26. Stock T +43 1 2198790-27
Floridsdorfer Hauptstr. 1 F +43 1 2198790-927
A-1210 Wien M +43 664 88657566
E roland.asmann@adesso.at
W www.adesso.at
-------------------------------------------------------------
>>> business. people. technology. <<<
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: help:effective-settings
Posted by Alexis Morelle <Al...@alcatel-lucent.com>.
If you don't happen to have a "-s" option in your command line, then the
settings is either in your ".m2" home directory or in your maven
installation.
I don't know if there's a way to find the location of the settings file
but there are few things you may want to look for.
First be sure of which user is executing maven. For example if you're
executing maven within Jenkins or Hudson, may be the user launching it
isn't the one you think so you have to look for the home directory of
that user.
The second thing you have to know is that the effective pom is a merge
of your personal settings file and the one located in the "conf"
directory of your maven installation. May be the information you're
looking for is there.
Alexis.
Le 15/03/2011 14:44, Asmann, Roland a écrit :
> Hi all,
>
> I had this feeling that my Maven was using the wrong settings.xml file
> and when running help:effective-settings, it indeed shows me the wrong
> configuration.
>
> Now, I looked in all the normal places where settings.xml files are
> looked for, but I can't seem to find where Maven is seeing this file! Is
> there some way to have Maven report back on where the settings.xml files
> where found?
>
> Thanks,
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: help:effective-settings
Posted by Marc Rohlfs <po...@googlemail.com>.
Add the '-X' option to Your command line statement and check the output
- with Maven 3.0.3, the interesting output is somewhere within the first
15 lines.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: help:effective-settings
Posted by Benjamin Bentmann <be...@udo.edu>.
Asmann, Roland wrote:
> Is
> there some way to have Maven report back on where the settings.xml files
> where found?
Debug logging of Maven 3.x, i.e. mvn -X spits out the paths at the
beginning of the log.
Benjamin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org