Author: snjeza
Date: 2009-06-23 18:10:17 -0400 (Tue, 23 Jun 2009)
New Revision: 16165
Modified:
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/MavenSeamActivator.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3874 Maven integration
Modified:
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/MavenSeamActivator.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/MavenSeamActivator.java 2009-06-23
21:31:34 UTC (rev 16164)
+++
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/MavenSeamActivator.java 2009-06-23
22:10:17 UTC (rev 16165)
@@ -52,6 +52,8 @@
import org.maven.ide.eclipse.MavenPlugin;
import org.maven.ide.eclipse.core.IMavenConstants;
import org.maven.ide.eclipse.embedder.MavenModelManager;
+import org.maven.ide.eclipse.project.MavenProjectManager;
+import org.maven.ide.eclipse.project.ResolverConfiguration;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
@@ -770,6 +772,12 @@
}
MavenCoreActivator.createMavenProject(parentProjectName, null, model, false);
+ // disable workspace resolution
+ MavenProjectManager projectManager =
MavenPlugin.getDefault().getMavenProjectManager();
+ IProject project =
ResourcesPlugin.getWorkspace().getRoot().getProject(parentProjectName);
+ ResolverConfiguration configuration =
projectManager.getResolverConfiguration(project);
+ configuration.setResolveWorkspaceProjects(false);
+ projectManager.setResolverConfiguration(project, configuration);
} catch (Exception e) {
log(e);
}