in src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java [524:545]
protected void checkinFiles() throws MojoExecutionException {
if (skipCheckin) {
return;
}
ScmFileSet updatedFileSet = new ScmFileSet(checkoutDirectory);
try {
long start = System.currentTimeMillis();
CheckInScmResult checkinResult = checkScmResult(
scmProvider.checkIn(scmRepository, updatedFileSet, new ScmBranch(scmBranch), checkinComment),
"check-in files to SCM");
logInfo(
"Checked in %d file(s) to revision %s in %s",
checkinResult.getCheckedInFiles().size(),
checkinResult.getScmRevision(),
DurationFormatUtils.formatPeriod(start, System.currentTimeMillis(), "H' h 'm' m 's' s'"));
} catch (ScmException e) {
throw new MojoExecutionException("Failed to perform SCM checkin", e);
}
}