Java Code Examples for org.eclipse.m2e.core.MavenPlugin#getMavenProjectRegistry()
The following examples show how to use
org.eclipse.m2e.core.MavenPlugin#getMavenProjectRegistry() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FlexMavenPackagedProjectStagingDelegate.java From google-cloud-eclipse with Apache License 2.0 | 5 votes |
private static IPath getFinalArtifactPath(IProject project) throws CoreException { IMavenProjectRegistry projectManager = MavenPlugin.getMavenProjectRegistry(); IMavenProjectFacade projectFacade = projectManager.create(project, new NullProgressMonitor()); MavenProject mavenProject = projectFacade.getMavenProject(new NullProgressMonitor()); String buildDirectory = mavenProject.getBuild().getDirectory(); String finalName = mavenProject.getBuild().getFinalName(); String finalArtifactPath = buildDirectory + "/" + finalName + "." + mavenProject.getPackaging(); return new Path(finalArtifactPath); }
Example 2
Source File: MavenBuildSupport.java From eclipse.jdt.ls with Eclipse Public License 2.0 | 5 votes |
public MavenBuildSupport() { this.configurationManager = MavenPlugin.getProjectConfigurationManager(); this.projectManager = MavenPluginActivator.getDefault().getMavenProjectManagerImpl(); this.digestStore = JavaLanguageServerPlugin.getDigestStore(); this.registry = MavenPlugin.getMavenProjectRegistry(); this.shouldCollectProjects = true; }
Example 3
Source File: DataflowMavenModel.java From google-cloud-eclipse with Apache License 2.0 | 4 votes |
public DataflowMavenModelFactory() { this(DataflowDependencyManager.create(), MavenPlugin.getMavenProjectRegistry()); }