List<Resource> (List<MavenResource> resources) { List<Resource> result = new ArrayList<Resource>(resources.size()); for (MavenResource each : resources) { Resource r = new Resource(); r.setDirectory(each.getDirectory()); r.setTargetPath(each.getTargetPath()); r.setFiltering(each.isFiltered()); r.setIncludes(each.getIncludes()); r.setExcludes(each.getExcludes()); result.add(r); } return result; }