maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Lundberg (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (MCHANGES-169) sub element 'email' of 'mailSender' is not able to read the system property from command line '-Dusername=zhigang' or Darguments="-Dusername=pprun"
Date Fri, 02 Oct 2009 09:03:56 GMT

     [ http://jira.codehaus.org/browse/MCHANGES-169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dennis Lundberg closed MCHANGES-169.
------------------------------------

    Resolution: Not A Bug

> 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">release@abc.com</toAddress>
> 			        </toAddresses>
> 			        <mailSender>
> 			            <name>Release Notification from ${mailusername}</name>
> 			            <email>${mailusername}@abc.com</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 'null@abc.com', 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

        

Mime
View raw message