Search in sources :

Example 1 with MavenProjectBuilder

use of com.liferay.ide.maven.core.MavenProjectBuilder in project liferay-ide by liferay.

the class BuildServiceGoalAction method updateProject.

@Override
protected void updateProject(IProject p, IProgressMonitor monitor) {
    MavenProjectBuilder builder = new MavenProjectBuilder(p);
    try {
        IMavenProjectFacade projectFacade = MavenUtil.getProjectFacade(p, monitor);
        builder.refreshSiblingProject(projectFacade, monitor);
    } catch (CoreException ce) {
        LiferayMavenUI.logError("Unable to refresh sibling project", ce);
    }
}
Also used : MavenProjectBuilder(com.liferay.ide.maven.core.MavenProjectBuilder) CoreException(org.eclipse.core.runtime.CoreException) IMavenProjectFacade(org.eclipse.m2e.core.project.IMavenProjectFacade)

Aggregations

MavenProjectBuilder (com.liferay.ide.maven.core.MavenProjectBuilder)1 CoreException (org.eclipse.core.runtime.CoreException)1 IMavenProjectFacade (org.eclipse.m2e.core.project.IMavenProjectFacade)1