changes:announcement-mail

Full name:

org.apache.maven.plugins:maven-changes-plugin:2.0:announcement-mail

Description:

Goal which sends an announcement through email.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Invokes the execution of this plugin's goal announcement-generate prior to executing itself.

Required Parameters

Name Type Since Description
smtpHost String - Smtp Server.
smtpPort int - Port. Default value is: 25.
subject String - Subject for the email. Default value is: [ANNOUNCEMENT] - ${project.name} ${project.version} released.
template String - The Velocity template used to format the announcement. Default value is: announcement.vm.
templateOutputDirectory File - Directory which contains the template for announcement email.
toAddresses List - Recipient email address.

Optional Parameters

Name Type Since Description
fromDeveloperId String - The id of the developer sending the announcement mail. Only used if the mailSender attribute is not set. In this case, this should match the id of one of the developers in the pom. If a matching developer is not found, then the first developer in the pom will be used.
mailSender MailSender - Defines the sender of the announcement if the list of developer is empty or if the sender is not a member of the development team.
password String - The password used to send the email.
sslMode boolean - If the email should be sent in SSL mode. Default value is: false.
username String - The username used to send the email.

Parameter Details

fromDeveloperId :

The id of the developer sending the announcement mail. Only used if the mailSender attribute is not set. In this case, this should match the id of one of the developers in the pom. If a matching developer is not found, then the first developer in the pom will be used.

  • Type: java.lang.String
  • Required: No
  • Expression: ${changes.fromDeveloperId}

mailSender :

Defines the sender of the announcement if the list of developer is empty or if the sender is not a member of the development team.

  • Type: org.apache.maven.plugin.announcement.MailSender
  • Required: No

password :

The password used to send the email.

  • Type: java.lang.String
  • Required: No

smtpHost :

Smtp Server.

  • Type: java.lang.String
  • Required: Yes

smtpPort :

Port.

  • Type: int
  • Required: Yes
  • Default: 25

sslMode :

If the email should be sent in SSL mode.

  • Type: boolean
  • Required: No
  • Default: false

subject :

Subject for the email.

  • Type: java.lang.String
  • Required: Yes
  • Default: [ANNOUNCEMENT] - ${project.name} ${project.version} released

template :

The Velocity template used to format the announcement.

  • Type: java.lang.String
  • Required: Yes
  • Default: announcement.vm

templateOutputDirectory :

Directory which contains the template for announcement email.

  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.directory}/announcement

toAddresses :

Recipient email address.

  • Type: java.util.List
  • Required: Yes

username :

The username used to send the email.

  • Type: java.lang.String
  • Required: No