Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryRefreshJob.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryRefreshJob.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryRefreshJob.java
index faa0704b..bd85432d 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryRefreshJob.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryRefreshJob.java
@@ -166,7 +166,9 @@ public class ProjectRegistryRefreshJob extends Job implements IResourceChangeLis
if(!isMavenProject(project)) {
continue;
}
- if((projectDelta.getFlags() & IResourceDelta.OPEN) != 0) {
+
+ //Bug 436679: queue update request only for reopened projects. For imported projects, delta.getKind() == IResourceDelta.ADDED
+ if((projectDelta.getKind() == IResourceDelta.CHANGED && (projectDelta.getFlags() & IResourceDelta.OPEN) != 0)) {
queue(new MavenUpdateRequest(project, offline, forceDependencyUpdate));
} else if(!autobuilding && projectChanged(projectDelta)) {
IMavenProjectFacade facade = manager.getProject(project);

Back to the top