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

Make it possible to run the announcement goals only once for a multi-module project

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.3
    • announcement
    • None
    • maven 2.0.9
      JDK 1.6.011
      WinXP

    Description

      If the pom.xml is containing some sub-modules, the goal changes:announcement-mail is trying to send it for each module, and fail because it could not find the template.
      Announcement template C:\Dev\MyProject\SubmoduleA\target\announcement\announcement.vm not found...

      Should be possible to configure the pom to send only the email for the root project.
      Working with "mvn --non-recursive" option, but we need to be able to configure this behaviour into the pom.xml

      The same issue for the changes:announcement-generate, but it's only a warning and the build can finish successfully.

      Should include something like:
      /**

      • @parameter expression="${project}"
        **/
        private MavenProject mavenProject;

      /**

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

      public void execute() {
      if (!mavenProject.isExecutionRoot() && aggregate)

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

      ..................
      }

      Attachments

        1. MCHANGES-145-CORRECT.patch
          4 kB
          Gabriele Columbro
        2. MCHANGES-145.patch
          3 kB
          Gabriele Columbro

        Issue Links

          Activity

            People

              dennisl@apache.org Dennis Lundberg
              jguigui Jean-Paul GUIGUI
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: