Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Maven Integration (M2E) » global Maven settings.xml
global Maven settings.xml [message #9467] Fri, 23 May 2008 18:20
Eugene Kuleshov is currently offline Eugene KuleshovFriend
Messages: 504
Registered: July 2009
Senior Member
m2eclipse is currently allow to specify both user and global
settings.xml. When using Maven from the command line:

- user settings is located at ~/.m2/settings.xml by default and can be
changed in the command line using -s option
- global settings.xml is taken from <maven install>/conf/settings.xml
and can't be changed in the command line

When we are using Maven embedder in Eclipse to resolve dependencies we
can specify location for both local and global settings.xml. However,
when we launch Maven build in Eclipse, we can only specify location of
user settings. Also note that if external Maven instance is used to
launch Maven (it can be configured from Window / Preferences... / Maven
/ Installations), then it will use global settings.xml from that
installation and not one specified in the IDE, which lead to some confusion.

In order to address this issue we would like to refactor Maven
settings handling and remove configuration option for global setting
from "Window / Preferences... / Maven". Instead, it would respect
settings from the default Maven instance selected on "Maven /
Installations", so if there is an external Maven install selected it
would use its settings. The only case when global settings won't be used
is when Embedded Maven instance is selected in the "Maven /
Installations" preferences.

Please comment on the bug report if you have any objections
http://jira.codehaus.org/browse/MNGECLIPSE-522

Thanks

Eugene
Previous Topic:=?iso-8859-2?q?Adding_Luk=E1=B9_K=F8e=E8an_as_a_committer_on?= =?iso-8859-2?q?_m=32eclipse?=
Next Topic:m2eclipse will require Java 5 to run
Goto Forum:
  


Current Time: Thu Mar 28 18:05:21 GMT 2024

Powered by FUDForum. Page generated in 0.02427 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top