Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Bricon2014-05-22 08:03:46 -0400
committerFred Bricon2014-05-22 08:03:46 -0400
commit89936fcafdea238984a96f81e60ffde241590f7d (patch)
tree1971aab7113bdafb9d12f8935ed17fd160da6bb7
parentc5951dc9ab286644319b68528152a86fd18fc2c8 (diff)
downloadm2e-core-89936fcafdea238984a96f81e60ffde241590f7d.tar.gz
m2e-core-89936fcafdea238984a96f81e60ffde241590f7d.tar.xz
m2e-core-89936fcafdea238984a96f81e60ffde241590f7d.zip
412157 : update local repo text when updating settings
Change-Id: Ibbcc668b6d3d94fe6afad37bcd7b9987e4e0785c Signed-off-by: Fred Bricon <fbricon@gmail.com>
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenSettingsPreferencePage.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenSettingsPreferencePage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenSettingsPreferencePage.java
index 7a297379..15659faf 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenSettingsPreferencePage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenSettingsPreferencePage.java
@@ -116,11 +116,15 @@ public class MavenSettingsPreferencePage extends PreferencePage implements IWork
}
protected void updateSettings(final boolean updateMavenDependencies) {
+ //Force reevaluation of local repository, in case the settings were modified externally
+ updateLocalRepository();
+
final String userSettings = getUserSettings();
final String globalSettings = getGlobalSettings();
String currentGlobalSettings = mavenConfiguration.getGlobalSettingsFile();
String currentUserSettings = mavenConfiguration.getUserSettingsFile();
+
if(StringUtils.equals(globalSettings, currentGlobalSettings)
&& StringUtils.equals(currentUserSettings, userSettings)) {
return;

Back to the top