Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Piggott2011-04-12 15:51:35 +0000
committerMatthew Piggott2011-04-12 16:38:58 +0000
commit62c0596af8dcbe241df2fc371bb4816ba1a159bb (patch)
treea1c6d9f1ed51db4c8d5fedd5bef6ef5d711ab0f2 /org.eclipse.m2e.core
parent581cffd70ba4c351dec1175d2f0cf6092c0e8642 (diff)
downloadm2e-core-62c0596af8dcbe241df2fc371bb4816ba1a159bb.tar.gz
m2e-core-62c0596af8dcbe241df2fc371bb4816ba1a159bb.tar.xz
m2e-core-62c0596af8dcbe241df2fc371bb4816ba1a159bb.zip
bug 339527 - Fix force snapshot update on pom refresh
Diffstat (limited to 'org.eclipse.m2e.core')
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryManager.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryManager.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryManager.java
index 18a033a0..ec7e6240 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryManager.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryManager.java
@@ -24,25 +24,20 @@ import java.util.Map;
import java.util.Properties;
import java.util.Set;
-import org.osgi.service.prefs.BackingStoreException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ProjectScope;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.SubMonitor;
import org.eclipse.core.runtime.jobs.ISchedulingRule;
import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.core.runtime.preferences.IEclipsePreferences;
-import org.eclipse.core.runtime.preferences.IScopeContext;
import org.eclipse.osgi.util.NLS;
import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
@@ -512,7 +507,7 @@ public class ProjectRegistryManager {
configureExecutionRequest(mavenRequest, state, pom, resolverConfiguration);
getMaven().populateDefaults(mavenRequest);
mavenRequest.setOffline(context.getRequest().isOffline());
- mavenRequest.setUpdateSnapshots(context.isForce(pom));
+ mavenRequest.setUpdateSnapshots(context.isForce(pom) && context.getRequest().isUpdateSnapshots());
return mavenRequest;
}

Back to the top