Package org.apache.maven.model

Examples of org.apache.maven.model.BuildBase.addPlugin()


        pExec.setConfiguration( pConfig );

        pPlugin.addExecution( pExec );

        BuildBase pBuild = new BuildBase();
        pBuild.addPlugin( pPlugin );

        Profile profile = new Profile();
        profile.setId( "testId" );

        profile.setBuild( pBuild );
View Full Code Here


        PluginExecution exec2 = new PluginExecution();
        exec2.setId( "y" );
        profilePlugin.addExecution( exec2 );

        BuildBase buildBase = new BuildBase();
        buildBase.addPlugin( profilePlugin );

        Profile profile = new Profile();
        profile.setBuild( buildBase );

        Plugin modelPlugin = new Plugin();
View Full Code Here

      surefirePlugin.setArtifactId("maven-surefire-plugin");
      surefirePlugin.setConfiguration(buildConfiguration(container.getId()));
      surefirePlugin.setVersion("2.14.1");

      BuildBase buildBase = new BuildBase();
      buildBase.addPlugin(surefirePlugin);

      profile.setBuild(buildBase);

      for (Dependency dependency : dependencies)
      {
View Full Code Here

      if (build == null)
      {
         build = new BuildBase();
      }

      build.addPlugin(new MavenPluginAdapter(pluginBuilder));
      containerProfile.setBuild(build);
      pom.removeProfile(containerProfile);
      pom.addProfile(containerProfile);

      mavenCoreFacet.setPOM(pom);
View Full Code Here

            // Do not assume that the existing list is mutable.
            BuildBase build = getBuild( model, profileId );
            List<Plugin> existingPlugins = build.getPlugins();
            List<Plugin> mutablePlugins = new ArrayList<Plugin>(existingPlugins);
            build.setPlugins(mutablePlugins);
            build.addPlugin(plugin);
           
            plugins.put( profileId, plugin );
        }
        return plugin;
    }
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.