Package org.eclipse.m2e.core.internal.project

Examples of org.eclipse.m2e.core.internal.project.ProjectConfigurationManager


        IProject[] projects = new IProject[] { facade.getProject() };

        waitForJobsToComplete();
        workspace.build( IncrementalProjectBuilder.FULL_BUILD, monitor );

        ProjectConfigurationManager configurationManager =
            (ProjectConfigurationManager) MavenPlugin.getProjectConfigurationManager();
        MavenUpdateRequest request = new MavenUpdateRequest( projects, false, true );
        configurationManager.updateProjectConfiguration( request, true, true, true, monitor );

        waitForJobsToComplete();

        WorkspaceHelpers.assertErrorMarker( IMavenConstants.MARKER_LIFECYCLEMAPPING_ID,
                                            "Duplicate bundle executions found. Please remove any explicitly defined bundle executions in your pom.xml.",
                                            null, "pom.xml", facade.getProject() );

        // update the pom and recheck that markers are gone
        copyContent( facade.getProject(), new File( "projects/maven-bundle-plugin/multiple-executions/validpom.xml" ),
                     "pom.xml" );

        request = new MavenUpdateRequest( projects, false, true );
        configurationManager.updateProjectConfiguration( request, true, true, true, monitor );

        waitForJobsToComplete();
        assertNoErrors( projects[0] );
    }
View Full Code Here

TOP

Related Classes of org.eclipse.m2e.core.internal.project.ProjectConfigurationManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.