maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Paul GUIGUI (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MCHANGES-153) For multi-module project, sending the email once for the project, not one email for each sub-module
Date Tue, 17 Mar 2009 02:06:12 GMT
For multi-module project, sending the email once for the project, not one email for each sub-module
---------------------------------------------------------------------------------------------------

                 Key: MCHANGES-153
                 URL: http://jira.codehaus.org/browse/MCHANGES-153
             Project: Maven 2.x Changes Plugin
          Issue Type: New Feature
          Components: announcement
    Affects Versions: 2.1
         Environment: Maven 2.0.9
Java 6
WinXp
            Reporter: Jean-Paul GUIGUI


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;
		}

 ....



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message