Search in sources :

Example 1 with MavenUIProjectBuilder

use of com.liferay.ide.maven.ui.MavenUIProjectBuilder in project liferay-ide by liferay.

the class MavenGoalAction method _runMavenGoal.

private void _runMavenGoal(IFile pomFile, String goal, IProgressMonitor monitor) throws CoreException {
    IMavenProjectRegistry projectManager = MavenPlugin.getMavenProjectRegistry();
    IMavenProjectFacade projectFacade = projectManager.create(pomFile, false, new NullProgressMonitor());
    MavenUIProjectBuilder builder = new MavenUIProjectBuilder(pomFile.getProject());
    builder.runMavenGoal(projectFacade, goal, "run", monitor);
}
Also used : NullProgressMonitor(org.eclipse.core.runtime.NullProgressMonitor) IMavenProjectRegistry(org.eclipse.m2e.core.project.IMavenProjectRegistry) IMavenProjectFacade(org.eclipse.m2e.core.project.IMavenProjectFacade) MavenUIProjectBuilder(com.liferay.ide.maven.ui.MavenUIProjectBuilder)

Aggregations

MavenUIProjectBuilder (com.liferay.ide.maven.ui.MavenUIProjectBuilder)1 NullProgressMonitor (org.eclipse.core.runtime.NullProgressMonitor)1 IMavenProjectFacade (org.eclipse.m2e.core.project.IMavenProjectFacade)1 IMavenProjectRegistry (org.eclipse.m2e.core.project.IMavenProjectRegistry)1