in src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java [499:531]
public void execute() throws MojoExecutionException, MojoFailureException {
if (skipDeployment || skipDeployement) {
getLog().info("scmpublish.skipDeploy = true: Skipping site deployment");
return;
}
// setup the scm plugin with help from release plugin utilities
try {
setupScm();
} catch (ScmRepositoryException | NoSuchScmProviderException e) {
throw new MojoExecutionException(e.getMessage(), e);
}
boolean tmpCheckout = false;
if (checkoutDirectory.getPath().contains("${project.")) {
try {
tmpCheckout = true;
checkoutDirectory = Files.createTempDirectory("maven-scm-publish" + ".checkout")
.toFile();
} catch (IOException ioe) {
throw new MojoExecutionException(ioe.getMessage(), ioe);
}
}
try {
scmPublishExecute();
} finally {
if (tmpCheckout) {
FileUtils.deleteQuietly(checkoutDirectory);
}
}
}