sub element 'email' of 'mailSender' is not able to read the system property
from command line '-Dusername=zhigang' or Darguments="-Dusername=pprun"
---------------------------------------------------------------------------------------------------------------------------------------------------
Key: MCHANGES-169
URL: http://jira.codehaus.org/browse/MCHANGES-169
Project: Maven 2.x Changes Plugin
Issue Type: Bug
Components: announcement
Affects Versions: 2.0
Environment: all enviornments
Reporter: Zhigang Pi
I have the follownig configuration:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changes-plugin</artifactId>
<version>2.1</version>
<configuration>
<xmlPath>${basedir}/build/changes.xml</xmlPath>
<smtpHost>pop.abc.com</smtpHost>
<sslMode>true</sslMode>
<subject>${project.name}
${project.version} Released</subject>
<toAddresses>
<toAddress
implementation="java.lang.String">[email protected]</toAddress>
</toAddresses>
<mailSender>
<name>Release Notification from
${mailusername}</name>
<email>${[email protected]</email>
</mailSender>
</configuration>
</plugin>
mvn release:clean release:prepare -Dmaven.test.skip=true -Dusername=zhigang
-Dtag=v01_00_00-b1
mvn release:perform -Dusername=zhigang -Darguments="-Dtag=1.0.0-b1"
or
mvn release:clean release:prepare -Dmaven.test.skip=true -Dusername=zhigang
-Dtag=v01_00_00-b1
mvn release:perform -Darguments="-Dmailusername=pprun -Dtag=1.0.0-b1"
or
mvn release:clean release:prepare -Dmaven.test.skip=true -Dusername=zhigang
-Dtag=v01_00_00-b1
mvn release:perform -Dusername=zhigang -Darguments="-Dmailusername=pprun
-Dtag=1.0.0-b1"
Actually, I want it uses the one for property '-Dmailusername' because by
default, -Dusername is for scm user.
But finally the announcement resolves it as '[email protected]', did not use the
passed in system property.
--
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