in src/main/java/org/apache/maven/plugins/site/render/SiteJarMojo.java [122:142]
public void execute() throws MojoExecutionException, MojoFailureException {
if (skip) {
getLog().info("maven.site.skip = true: Skipping jar generation");
return;
}
super.execute();
try {
File outputFile =
createArchive(outputDirectory, finalName + "-" + getClassifier() + "." + getArtifactType());
if (attach) {
projectHelper.attachArtifact(project, getArtifactType(), getClassifier(), outputFile);
} else {
getLog().info("NOT adding site jar to the list of attached artifacts.");
}
} catch (ArchiverException | IOException | ManifestException | DependencyResolutionRequiredException e) {
throw new MojoExecutionException("Error while creating archive", e);
}
}