You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dennis Lundberg (JIRA)" <ji...@codehaus.org> on 2007/07/08 00:34:13 UTC

[jira] Commented: (MCHANGES-79) Allow for overriding the announcement email from address

    [ http://jira.codehaus.org/browse/MCHANGES-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_101604 ] 

Dennis Lundberg commented on MCHANGES-79:
-----------------------------------------

I would like to propose a different approach to this. How about adding a {{fromDeveloperId}} parameter. This should match the {{id}} of one of the {{developers}} in the pom. If a matching developer is found it will be used instead of the first developer in the list.

> 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
>
> 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>
>                  buildmaster@mycoolproject.org
>            </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