Uploaded image for project: 'Maven Changes Plugin'
  1. Maven Changes Plugin
  2. MCHANGES-153

For multi-module project, sending the email once for the project, not one email for each sub-module

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.1
    • None
    • announcement
    • None
    • Maven 2.0.9
      Java 6
      WinXp

    Description

      When running the announcement plugin on multi-module projects, it is sending one mail by submodule.
      Should be able to configure this behaviour. We would like just one email for the whole project

      Hereunder a suggestion of working patch I have test locally:
      Into AnnouncementMailMojo.java:

      /**

      • If true, will generate the changes only for the root module in case of project with sub-modules.
        *
      • @parameter expression="${plugin.aggregate}" default-value = "true"
        */
        private boolean aggregate;

      ...

      public void execute()
      throws MojoExecutionException
      {
      if (!project.isExecutionRoot() && aggregate)

      { // Execute only for the main module in case of project with sub-modules return; }

      ....

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jguigui Jean-Paul GUIGUI
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: