public PluginBuilder executions(PluginExecutionBuilder... builders) { if (builders != null) { for (PluginExecutionBuilder executionBuilder : Arrays.asList(builders)) { if (plugin.getExecutions() == null) { plugin.setExecutions(new ArrayList<>()); } plugin.addExecution((executionBuilder.get())); } } return this; }
public void addExecution(PluginExecution pluginExecution) { plugin.addExecution(pluginExecution); }
plugin.addExecution(execution);
@Override public void afterProjectsRead(MavenSession session) throws MavenExecutionException { // TODO installSnapshotEnabled if (stamper.isEnabled()) { for (MavenProject project : session.getAllProjects()) { for (Plugin plugin : project.getBuild().getPlugins()) { List<PluginExecution> pluginExecutionClones = new LinkedList<PluginExecution>(); for (PluginExecution execution : plugin.getExecutions()) { if (executionToBeCloned(plugin, execution.getId())) { PluginExecution pluginExecutionClone = clone(execution); pluginExecutionClones.add(pluginExecutionClone); } } for (PluginExecution pluginExecutionClone : pluginExecutionClones) { plugin.addExecution(pluginExecutionClone); logger.info("Added cloned pluginExecution :" + pluginExecutionClone.getId() + ":" + pluginExecutionClone.getPhase() + ":" + pluginExecutionClone.getGoals()); } } } } ExecutionListener originalExecutionListener = session.getRequest().getExecutionListener(); session.getRequest().setExecutionListener(new TeeExecutionListener(originalExecutionListener, new SnapshotExecutionListener(logger, stamper))); logger.info("[FreezeExtension]: " + SnapshotExecutionListener.class.getSimpleName() + " added"); }
pluginExec.addGoal("package"); pluginExec.setId("vmp"); vertxMavenPlugin.addExecution(pluginExec);
exec = new PluginExecution(); exec.setId("nb"); //NOI18N assPlugin.addExecution(exec);
execution.addGoal("war"); execution.setConfiguration(generateCustomWarGoalConfiguration(manifestEntries)); mavenHPIPlugin.addExecution(execution);
config.addChild(child); plugin.addExecution(execution);
execution.addGoal("custom-war"); execution.setConfiguration(generateCustomWarGoalConfiguration()); mavenHPIPlugin.addExecution(execution);
PluginExecution execution = new PluginExecution(); execution.addGoal("java"); plugin.addExecution(execution);