You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by David Hoffer <dh...@gmail.com> on 2009/05/01 21:47:09 UTC

How to specify SCM username/password for release plugin?

How can I specify the username/password to be used by the release plugin in
the settings.xml file (or other system approach)?  Normally this is set in
the settings.xml and refereed to elsewhere by it's id but how is this
refereed by the SCM?

-Dave

Re: How to specify SCM username/password for release plugin?

Posted by David Hoffer <dh...@gmail.com>.
How is either server id tied to the SCM?  We too have server id/s but these
are used for artifact deployment login not SCM login.  How can I use these
for SCM login?

-Dave

On Mon, May 4, 2009 at 6:22 AM, Gordon Cody <gc...@zafinlabs.com> wrote:

> (with appropriate substitutions of course) In our topmost pom for the
> project we use:
>
>  <scm>
>    <developerConnection>scm:svn:https://svnhost/svnrepo/trunk
> </developerConnection>
>  </scm>
>
> and in the settings.xml (of those allowed to do releases) we put both
> server entries:
>
>  <servers>
>    <server>
>        <id>libs-releases</id>
>        <username>thereleaseuser</username>
>        <password>thereleasepassword</password>
>    </server>
>    <server>
>        <id>libs-snapshots</id>
>        <username>thedeveloperuser</username>
>        <password>thedeveloperpassword</password>
>    </server>
>  </servers>
>
> Regards,
> Gord Cody
>
> On Mon, May 4, 2009 at 5:46 AM, Baptiste MATHUS <ml...@batmat.net> wrote:
> > Hi,
> >
> > In the documentation of the mojo (btw, you didn't say which goal you were
> > speaking) of the release:prepare for example:
> >
> > http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html
> >
> > username/password.
> >
> > Cheers.
> >
> > 2009/5/1 David Hoffer <dh...@gmail.com>
> >
> >> How can I specify the username/password to be used by the release plugin
> in
> >> the settings.xml file (or other system approach)?  Normally this is set
> in
> >> the settings.xml and refereed to elsewhere by it's id but how is this
> >> refereed by the SCM?
> >>
> >> -Dave
> >>
> >
> >
> >
> > --
> > Baptiste <Batmat> MATHUS - http://batmat.net
> > Sauvez un arbre,
> > Mangez un castor !
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: How to specify SCM username/password for release plugin?

Posted by Gordon Cody <gc...@zafinlabs.com>.
(with appropriate substitutions of course) In our topmost pom for the
project we use:

  <scm>
    <developerConnection>scm:svn:https://svnhost/svnrepo/trunk</developerConnection>
  </scm>

and in the settings.xml (of those allowed to do releases) we put both
server entries:

  <servers>
    <server>
        <id>libs-releases</id>
        <username>thereleaseuser</username>
        <password>thereleasepassword</password>
    </server>
    <server>
        <id>libs-snapshots</id>
        <username>thedeveloperuser</username>
        <password>thedeveloperpassword</password>
    </server>
  </servers>

Regards,
Gord Cody

On Mon, May 4, 2009 at 5:46 AM, Baptiste MATHUS <ml...@batmat.net> wrote:
> Hi,
>
> In the documentation of the mojo (btw, you didn't say which goal you were
> speaking) of the release:prepare for example:
>
> http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html
>
> username/password.
>
> Cheers.
>
> 2009/5/1 David Hoffer <dh...@gmail.com>
>
>> How can I specify the username/password to be used by the release plugin in
>> the settings.xml file (or other system approach)?  Normally this is set in
>> the settings.xml and refereed to elsewhere by it's id but how is this
>> refereed by the SCM?
>>
>> -Dave
>>
>
>
>
> --
> Baptiste <Batmat> MATHUS - http://batmat.net
> Sauvez un arbre,
> Mangez un castor !
>

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


Re: How to specify SCM username/password for release plugin?

Posted by Baptiste MATHUS <ml...@batmat.net>.
You want to have a look at this:
http://maven.apache.org/guides/mini/guide-encryption.html
However, this is only available since 2.1.

Btw, we use user/password. Settings.xml is shared by everybody, we just use
something like ${env.m2DeployUser}/${env.m2DeployPwd} and then ask the
developers who have deployment account to specify value for the
corresponding environment variable with their own account credentials. This
way, they're the only one to know their user/pwd. The Settings.xml doesn't
convey any.

Cheers.

2009/5/4 David Hoffer <dh...@gmail.com>

> Does this support encryption?  We don't want passwords in plan text.  We
> really don't want names/passwords in the pom as those are global values, we
> really want server names/passwords encrypted and in the settings.xml or
> other system location.
>
> we run release:prepare followed by release:perform
>
> -Dave
>
> On Mon, May 4, 2009 at 3:46 AM, Baptiste MATHUS <ml...@batmat.net> wrote:
>
> > Hi,
> >
> > In the documentation of the mojo (btw, you didn't say which goal you were
> > speaking) of the release:prepare for example:
> >
> > http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html
> >
> > username/password.
> >
> > Cheers.
> >
> > 2009/5/1 David Hoffer <dh...@gmail.com>
> >
> > > How can I specify the username/password to be used by the release
> plugin
> > in
> > > the settings.xml file (or other system approach)?  Normally this is set
> > in
> > > the settings.xml and refereed to elsewhere by it's id but how is this
> > > refereed by the SCM?
> > >
> > > -Dave
> > >
> >
> >
> >
> > --
> > Baptiste <Batmat> MATHUS - http://batmat.net
> > Sauvez un arbre,
> > Mangez un castor !
> >
>



-- 
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

Re: How to specify SCM username/password for release plugin?

Posted by David Hoffer <dh...@gmail.com>.
Does this support encryption?  We don't want passwords in plan text.  We
really don't want names/passwords in the pom as those are global values, we
really want server names/passwords encrypted and in the settings.xml or
other system location.

we run release:prepare followed by release:perform

-Dave

On Mon, May 4, 2009 at 3:46 AM, Baptiste MATHUS <ml...@batmat.net> wrote:

> Hi,
>
> In the documentation of the mojo (btw, you didn't say which goal you were
> speaking) of the release:prepare for example:
>
> http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html
>
> username/password.
>
> Cheers.
>
> 2009/5/1 David Hoffer <dh...@gmail.com>
>
> > How can I specify the username/password to be used by the release plugin
> in
> > the settings.xml file (or other system approach)?  Normally this is set
> in
> > the settings.xml and refereed to elsewhere by it's id but how is this
> > refereed by the SCM?
> >
> > -Dave
> >
>
>
>
> --
> Baptiste <Batmat> MATHUS - http://batmat.net
> Sauvez un arbre,
> Mangez un castor !
>

Re: How to specify SCM username/password for release plugin?

Posted by Baptiste MATHUS <ml...@batmat.net>.
Hi,

In the documentation of the mojo (btw, you didn't say which goal you were
speaking) of the release:prepare for example:

http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html

username/password.

Cheers.

2009/5/1 David Hoffer <dh...@gmail.com>

> How can I specify the username/password to be used by the release plugin in
> the settings.xml file (or other system approach)?  Normally this is set in
> the settings.xml and refereed to elsewhere by it's id but how is this
> refereed by the SCM?
>
> -Dave
>



-- 
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !