in src/main/java/org/apache/maven/buildcache/xml/CacheConfigImpl.java [421:446]
private boolean executionMatches(MojoExecution execution, Executables executablesType) {
final List<PluginSet> pluginConfigs = executablesType.getPlugins();
for (PluginSet pluginConfig : pluginConfigs) {
if (isPluginMatch(execution.getPlugin(), pluginConfig)) {
return true;
}
}
final List<ExecutionIdsList> executionIds = executablesType.getExecutions();
for (ExecutionIdsList executionConfig : executionIds) {
if (isPluginMatch(execution.getPlugin(), executionConfig)
&& executionConfig.getExecIds().contains(execution.getExecutionId())) {
return true;
}
}
final List<GoalsList> pluginsGoalsList = executablesType.getGoalsLists();
for (GoalsList pluginGoals : pluginsGoalsList) {
if (isPluginMatch(execution.getPlugin(), pluginGoals)
&& pluginGoals.getGoals().contains(execution.getGoal())) {
return true;
}
}
return false;
}