You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael Meyer <mi...@netcetera.ch> on 2007/07/23 12:22:06 UTC

[m2] release:prepare writes my password into the pom

Hi
In my pom.xml file I have the following scm url:

scm:cvs:pserver:${cvs.username}:${cvs.password}@localhost:/cvs/:project

The properties cvs.username and cvs.password are defined in my 
settings.xml file. After executing mvn release:prepare my scm url looks 
like this:

scm:cvs:pserver:my-username:my-password@localhost:/cvs/:project

Note that ${cvs.username} has been replaces with 'my-username' and 
${cvs.password} with 'my-password'.

Is there an other way to make the username and password configurable?

Cheers, michael





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m2] release:prepare writes my password into the pom

Posted by Michael Meyer <mi...@netcetera.ch>.
Hi Antonio,
works great. Thanks a lot. Like this I can even use my properties in the 
maven-release-plugin configuration section.

Cheers, michael

Antonio Petrelli wrote:
> 2007/7/23, Michael Meyer <mi...@netcetera.ch>:
>>
>> Hi
>> In my pom.xml file I have the following scm url:
>>
>> scm:cvs:pserver:${cvs.username}:${cvs.password}@localhost:/cvs/:project
>>
>> The properties cvs.username and cvs.password are defined in my
>> settings.xml file. After executing mvn release:prepare my scm url looks
>> like this:
>>
>> scm:cvs:pserver:my-username:my-password@localhost:/cvs/:project
>>
>> Note that ${cvs.username} has been replaces with 'my-username' and
>> ${cvs.password} with 'my-password'.
>>
>> Is there an other way to make the username and password configurable?
> 
> 
> 
> Sure! Use:
> mvn release:prepare -Dusername=my_user -Dpassword=my_password
> but remember to remove the username and the password from the scm URL.
> 
> HTH
> Antonio
> 

-- 
Michael Meyer | michael.meyer@netcetera.ch
phone +41-44-247 79 12 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m2] release:prepare writes my password into the pom

Posted by Antonio Petrelli <an...@gmail.com>.
2007/7/23, Michael Meyer <mi...@netcetera.ch>:
>
> Hi
> In my pom.xml file I have the following scm url:
>
> scm:cvs:pserver:${cvs.username}:${cvs.password}@localhost:/cvs/:project
>
> The properties cvs.username and cvs.password are defined in my
> settings.xml file. After executing mvn release:prepare my scm url looks
> like this:
>
> scm:cvs:pserver:my-username:my-password@localhost:/cvs/:project
>
> Note that ${cvs.username} has been replaces with 'my-username' and
> ${cvs.password} with 'my-password'.
>
> Is there an other way to make the username and password configurable?



Sure! Use:
mvn release:prepare -Dusername=my_user -Dpassword=my_password
but remember to remove the username and the password from the scm URL.

HTH
Antonio