MavenPlugin (boolean isDefault, Plugin plugin) { List<MavenPlugin.Execution> executions = new ArrayList<MavenPlugin.Execution>(plugin.getExecutions().size()); for (PluginExecution each : plugin.getExecutions()) { executions.add(convertExecution(each)); } List<MavenId> deps = new ArrayList<MavenId>(plugin.getDependencies().size()); for (Dependency each : plugin.getDependencies()) { deps.add(new MavenId(each.getGroupId(), each.getArtifactId(), each.getVersion())); } return new MavenPlugin(plugin.getGroupId(), plugin.getArtifactId(), plugin.getVersion(), isDefault, "true".equals(plugin.getExtensions()), convertConfiguration(plugin.getConfiguration()), executions, deps); }