[MNG-4345] [regression] Plugin executions contributed by default lifecycle mapping execute after other plugin executions bound to the same phase

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@812480 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-09-08 12:23:24 +00:00
parent c249a98408
commit 53b7d5e805
1 changed files with 11 additions and 0 deletions

View File

@ -33,6 +33,7 @@ import org.apache.maven.model.Build;
import org.apache.maven.model.Model; import org.apache.maven.model.Model;
import org.apache.maven.model.Plugin; import org.apache.maven.model.Plugin;
import org.apache.maven.model.PluginContainer; import org.apache.maven.model.PluginContainer;
import org.apache.maven.model.PluginExecution;
import org.apache.maven.model.PluginManagement; import org.apache.maven.model.PluginManagement;
import org.apache.maven.model.building.ModelBuildingRequest; import org.apache.maven.model.building.ModelBuildingRequest;
import org.apache.maven.model.building.ModelProblemCollector; import org.apache.maven.model.building.ModelProblemCollector;
@ -180,6 +181,16 @@ public class DefaultLifecycleBindingsInjector
target.setPlugins( result ); target.setPlugins( result );
} }
} }
@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() ) );
}
} }
} }