@Override protected void mergePluginExecution( PluginExecution target, PluginExecution source, boolean sourceDominant, Map<Object, Object> context ) { super.mergePluginExecution( target, source, sourceDominant, context ); target.setPriority( Math.min( target.getPriority(), source.getPriority() ) ); }
addMojoExecution( phaseBindings, mojoExecution, execution.getPriority() ); addMojoExecution( phaseBindings, mojoExecution, execution.getPriority() );
private PluginExecution clone(PluginExecution execution) { PluginExecution clonedExecution = new PluginExecution(); clonedExecution.setId(execution.getId() + "-snapshot"); clonedExecution.setGoals(execution.getGoals()); clonedExecution.setPhase(execution.getPhase()); clonedExecution.setPriority(execution.getPriority()); return clonedExecution; }
ex.setConfiguration(Xpp3Dom.mergeXpp3Dom((Xpp3Dom) oldEx.getConfiguration(), (Xpp3Dom) ex.getConfiguration())); ex.setInherited(oldEx.getInherited()); ex.setPriority(oldEx.getPriority());