/** * Adds information about plugin executions. * * @param mavenPluginDescriptor The descriptor for the plugin. * @param plugin The Plugin. * @param store The database. */ private void addPluginExecutions( MavenPluginDescriptor mavenPluginDescriptor, Plugin plugin, Store store) { List<PluginExecution> executions = plugin.getExecutions(); for (PluginExecution pluginExecution : executions) { MavenPluginExecutionDescriptor executionDescriptor = store.create(MavenPluginExecutionDescriptor.class); executionDescriptor.setId(pluginExecution.getId()); executionDescriptor.setPhase(pluginExecution.getPhase()); executionDescriptor.setInherited(pluginExecution.isInherited()); mavenPluginDescriptor.getExecutions().add(executionDescriptor); addExecutionGoals(executionDescriptor, pluginExecution, store); addConfiguration(executionDescriptor, (Xpp3Dom) pluginExecution.getConfiguration(), store); } }