[ http://jira.codehaus.org/browse/MCHANGES-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Schwartz updated MCHANGES-79: --------------------------------------- Attachment: MCHANGES-79-patch.txt Created patch following the idea of Dennis. The patch adds an optional property {{fromDeveloperId}} to {{AnnouncementMailMojo}}. This property should match the id of one of the developers in the pom. If a matching developer is found it will be used as the sending developer of the announcement mail. If there is no such developer the mojo fails with an exception. If the property {{fromDeveloperId}} is not given the first developer in the list is chosen. No other files than {{AnnouncementMailMojo.java}} are effected by the patch. > Allow for overriding the announcement email from address > -------------------------------------------------------- > > Key: MCHANGES-79 > URL: http://jira.codehaus.org/browse/MCHANGES-79 > Project: Maven 2.x Changes Plugin > Issue Type: New Feature > Components: announcement > Reporter: Alexander Schwartz > Attachments: MCHANGES-79-patch.txt > > > Currently the goal {{changes:announcement-mail}} uses the email address of > the first developer found in the pom as the from address of the announcement > email. Very often a project is released by a developer that is not the first > on in the list of developers in the pom -- which results is an announcement > email with awron, confusing from address. (Of course one can change the list > of developers for each release, or add a dummy developer "buildmaster" as the > first one in the developer list, but this is not my preferred option). > The maven1 announcement plugin has a parameter {{from}} which allows to > specify a different from address. > I suggest to add an optional parameter {{fromAdress}} to the goal > {{changes:announcement-mail}} of the {{maven-changes-plugin}} such that one > can specify the sender as follows: > {noformat} > <project> > ... > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-changes-plugin</artifactId> > <configuration> > <fromAddress> > [EMAIL PROTECTED] > </fromAddress> > </configuration> > </plugin> > </plugins> > </build> > ... > </project> > {noformat} > If the paremter {{fromAdress}} is given its content is taken as the the > sender address of the announcement mail. If the option is not specified, the > fallback is the email address of the first developer in the POM. -- 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