ResolverConfiguration configuration = new ResolverConfiguration();
configuration.setResolveWorkspaceProjects(true);
configuration.setActiveProfiles("");
IProjectConfigurationManager configurationManager = MavenPlugin.getProjectConfigurationManager();
configurationManager.enableMavenNature(project, configuration, new NullProgressMonitor());
configurationManager.updateProjectConfiguration(project, new NullProgressMonitor());
}
catch (CoreException e) {
RooCoreActivator.log(e);