Examples of MavenUpdateRequest


Examples of org.eclipse.m2e.core.project.MavenUpdateRequest

        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

Examples of org.eclipse.m2e.core.project.MavenUpdateRequest

          project.setDescription(projectDescription, monitor);
         
          IProjectConfigurationManager configurationManager = MavenPlugin.getProjectConfigurationManager();
            @SuppressWarnings("unused")
          IMavenProjectRegistry projectRegistry = MavenPlugin.getMavenProjectRegistry();
          MavenUpdateRequest request = new MavenUpdateRequest(false, true);
          request.addPomFile(project.getFile("pom.xml"));
          configurationManager.updateProjectConfiguration(request, monitor);
        } catch (CoreException ex) {
          Activator.getLogger().error(ex);
        }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.