addNonPartialsToResources(getTopDirectory(),resourceNonGenerated);
} catch (CodeGenException e) {
throw new MojoExecutionException("Couldn't add non partial specifications to resources");
}
if (resourceNonGenerated.getIncludes().isEmpty()) {
resourceNonGenerated.addExclude("**/*");
}
Resource resourceGenerated = new Resource();
final File specificationOutputDir = getSpecificationOutput();
resourceGenerated.setDirectory(specificationOutputDir.getPath());
resourceGenerated.addInclude("**/*.json");