}
protected File extractResources(final Collection<Resource> resources, final Map<String, Object> parameters) throws MojoExecutionException {
try {
final File outputDir = new File(project.getBuild().getDirectory(), WORKING_DIRECTORY_NAME);
new ResourceExtractor(parameters, log).extractResources(resources, outputDir);
return outputDir;
}
catch (IOException e) {
throw new MojoExecutionException("Failed to extract resources", e);
}