in src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojo.java [400:414]
private List<File> copySiteToScmDirectory() throws MojoExecutionException {
if (!siteDirectory.exists()) {
getLog().error("\"mvn site\" was not run before this goal, or a siteDirectory did not exist.");
throw new MojoExecutionException(
"\"mvn site\" was not run before this goal, or a siteDirectory did not exist."
);
}
final File siteInScm = new File(distRcVersionDirectory, "site");
try {
FileUtils.copyDirectory(siteDirectory, siteInScm);
} catch (final IOException e) {
throw new MojoExecutionException("Site copying failed", e);
}
return new ArrayList<>(FileUtils.listFiles(siteInScm, null, true));
}