Skip to content
Permalink
Browse files
Adding aggregator = true to mojos
  • Loading branch information
chtompki committed Feb 20, 2018
1 parent d2c28a5 commit 034a25ab725c5c08a9a2070376ac2039af255592
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
@@ -44,7 +44,10 @@
* @author chtompki
* @since 1.0
*/
@Mojo(name = "detach-distributions", defaultPhase = LifecyclePhase.VERIFY, threadSafe = true)
@Mojo(name = "detach-distributions",
defaultPhase = LifecyclePhase.VERIFY,
threadSafe = true,
aggregator = true)
public class CommonsDistributionDetachmentMojo extends AbstractMojo {

/**
@@ -49,7 +49,10 @@
* @author chtompki
* @since 1.0
*/
@Mojo(name = "stage-distributions", defaultPhase = LifecyclePhase.DEPLOY, threadSafe = true)
@Mojo(name = "stage-distributions",
defaultPhase = LifecyclePhase.VERIFY,
threadSafe = true,
aggregator = true)
public class CommonsDistributionStagingMojo extends AbstractMojo {

/**
@@ -131,8 +134,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {
provider.checkOut(repository, scmFileSet);
copyReleaseNotesToWorkingDirectory();
List<File> filesToCommit = copyDistributionsIntoScmDirectoryStructure();
ScmFileSet scmFileSetToCommit = new ScmFileSet(distCheckoutDirectory, filesToCommit);
if (!dryRun) {
ScmFileSet scmFileSetToCommit = new ScmFileSet(distCheckoutDirectory, filesToCommit);
AddScmResult addResult = provider.add(
repository,
scmFileSetToCommit,
@@ -42,7 +42,10 @@
* @author chtompki
* @since 1.0
*/
@Mojo(name = "compress-site", defaultPhase = LifecyclePhase.POST_SITE, threadSafe = true)
@Mojo(name = "compress-site",
defaultPhase = LifecyclePhase.VERIFY,
threadSafe = true,
aggregator = true)
public class CommonsSiteCompressionMojo extends AbstractMojo {

/**

0 comments on commit 034a25a

Please sign in to comment.