[
https://jira.codehaus.org/browse/MRELEASE-320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte closed MRELEASE-320.
-----------------------------------
Resolution: Not A Bug
Assignee: Robert Scholte
This is intended. It must be possible for everybody to check out the code and
build the project without settings.xml and have exactly the same result. This
means that properties must be resolved during the release.
Your case refers to the username and password which you don't want to share of
course. That's why the prepare goal has the
[username|http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#username]
and
[password|http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#password]
parameters.
> Expressions are replaced with settings.xml values during release:prepare
> ------------------------------------------------------------------------
>
> Key: MRELEASE-320
> URL: https://jira.codehaus.org/browse/MRELEASE-320
> Project: Maven 2.x Release Plugin
> Issue Type: Bug
> Components: prepare
> Affects Versions: 2.0-beta-7
> Environment: win32, SVN
> Reporter: Lou S
> Assignee: Robert Scholte
>
> I've noticed that my expressions I have in my pom.xml are being overwritten
> with the actual values in my settings.xml. For instance, in the <scm> tag
> below I want to do a substitution for the svnAccount and password based on
> the user's setting.xml, which works fine. However, when I run
> release:prepare, it will replace these values with my systems values and
> check that into SVN. This is really bad because then my credentials are
> listed clear as day in the new pom.xml that was checked in.
> Expectation is expressions would be retained upon release.
> <scm>
> <connection>
>
> scm:svn:http://${svnAccount}:${svnPassword}@svnit/xxx/common/XXX/trunk/XXX
> </connection>
> <url>http://svnit/xxx/common/XXX/trunk/XXX</url>
> </scm>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira