mirror of https://github.com/apache/maven.git
[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:
parent
c249a98408
commit
53b7d5e805
|
@ -33,6 +33,7 @@ import org.apache.maven.model.Build;
|
|||
import org.apache.maven.model.Model;
|
||||
import org.apache.maven.model.Plugin;
|
||||
import org.apache.maven.model.PluginContainer;
|
||||
import org.apache.maven.model.PluginExecution;
|
||||
import org.apache.maven.model.PluginManagement;
|
||||
import org.apache.maven.model.building.ModelBuildingRequest;
|
||||
import org.apache.maven.model.building.ModelProblemCollector;
|
||||
|
@ -180,6 +181,16 @@ public class DefaultLifecycleBindingsInjector
|
|||
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() ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue