You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Alejandro Nicolas Mascarell <an...@gmail.com> on 2006/02/01 08:37:52 UTC

SVN url password

Does anyone know where is the SCM user password provided when using SCM url?
As from the specification (and checked on svnScmProviderRepository class)
the password is not gathered for the URL, as in the case on CVS. I have
checked whether the password was taken from settings.xml file but it seems
it is not the case.

Thanks!

Alex

RE: [***SPAM*** Score/Req: 10.4/5.0] Re: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password

Posted by Maciej Mastalarczuk <ma...@eblib.com>.
Kind of, 

My Windows username and SVN username are the same, so I suspect SVN just
takes your Windows username and searches for cached credentials. I think you
could do the trick with specifying another username on the SVN's url, but
without the password. Providing that the password for this username is
cached by SVN it should work too.

Regards

Maciej

> -----Original Message-----
> From: Alejandro Nicolas Mascarell [mailto:anicola.lists@gmail.com]
> Sent: Wednesday, 1 February 2006 10:11 PM
> To: Maven Users List
> Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: [***SPAM*** Score/Req:
> 10.4/5.0] Re: SVN url password
> 
> Are you using the Windows username as the SVN username?
> 
> On 2/1/06, Maciej Mastalarczuk <ma...@eblib.com> wrote:
> > Hi Alejandro,
> >
> > The way I got it working is through connecting to SVN using command-line
> > tool under the user account that is later used for builds. The username
> and
> > password is then cached somewhere (???). On Windows box it goes into
> > something like that:
> >
> > C:\Documents and Settings\maven\Application Data\Subversion
> >
> > (sorry, in my previous post I wrote it went to home directory; my
> mistake).
> >
> > I've no idea where it would go on Linux, but I am sure it can cache it.
> >
> > After this SVN will just use cached passwords providing you use the same
> > user account (or do it for all accounts).
> >
> > There may be a better way of doing it, but I don't know it :-). This
> whole
> > SVN authentication could probably do with a couple of good howto's.
> >
> > Hope this helps
> >
> > Maciej
> >
> > > -----Original Message-----
> > > From: Alejandro Nicolas Mascarell [mailto:anicola.lists@gmail.com]
> > > Sent: Wednesday, 1 February 2006 5:04 PM
> > > To: Maven Users List
> > > Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
> > >
> > > I am speaking about the password to connect Subversion SCM, not the
> Maven
> > > organization repository. On the URL you can specify the user but not
> the
> > > password (and probably you won't like to do so), but on the
> > > settings.xmlfile as far as I know it is only possible to specify Maven
> > > component
> > > repository passwords.
> > >
> > > Alex
> > >
> > > On 2/1/06, Mark Struberg < struberg@yahoo.de> wrote:
> > > >
> > > > Hi Alejandro!
> > > >
> > > > I don't know if u ment this when u mentioned the
> > > > settings.xml
> > > > But i think u have to use a <server> section there.
> > > > This is mostly common for all username/password
> > > > thingies like tomcat:deploy and so on.
> > > >
> > > > Try to edit your ~/.m2/settings.xml and insert your
> > > > settings according to the following configuration for
> > > > tomcat. The svn configuration should be nearly the
> > > > same:
> > > >
> > > > <settings>
> > > > ...
> > > > <servers>
> > > >   <server>
> > > >    <id>tomcat</id>
> > > >    <username>myTomcatUser</username>
> > > >    <password>myTomcatPassword</password>
> > > >   </server>
> > > > </servers>
> > > > ...
> > > > </settings>
> > > >
> > > > you then have to reference the server-id in your
> > > > pom.xml:
> > > >     <plugins>
> > > > ...
> > > >
> > > >       <plugin>
> > > >
> > > >         <groupId>org.codehaus.mojo</groupId>
> > > >
> > > >         <artifactId>tomcat-maven-plugin</artifactId>
> > > >
> > > >         <version> 1.0-SNAPSHOT</version>
> > > >
> > > >         <configuration>
> > > >           <server>tomcat</server>
> > > >         </configuration>
> > > >
> > > >       </plugin>
> > > > ...
> > > >
> > > >     </plugins>
> > > >
> > > >
> > > > best regards,
> > > > strub
> > > >
> > > >
> > > > --- Alejandro Nicolas Mascarell
> > > > <an...@gmail.com> schrieb:
> > > >
> > > > > Does anyone know where is the SCM user password
> > > > > provided when using SCM url?
> > > > > As from the specification (and checked on
> > > > > svnScmProviderRepository class)
> > > > > the password is not gathered for the URL, as in the
> > > > > case on CVS. I have
> > > > > checked whether the password was taken from
> > > > > settings.xml file but it seems
> > > > > it is not the case.
> > > > >
> > > > > Thanks!
> > > > >
> > > > > Alex
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > ___________________________________________________________
> > > > Telefonate ohne weitere Kosten vom PC zum PC:
> http://messenger.yahoo.de
> > > >
> > > > --------------------------------------------------------------------
> -
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org




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


Re: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password

Posted by Alejandro Nicolas Mascarell <an...@gmail.com>.
Are you using the Windows username as the SVN username?

On 2/1/06, Maciej Mastalarczuk <ma...@eblib.com> wrote:
> Hi Alejandro,
>
> The way I got it working is through connecting to SVN using command-line
> tool under the user account that is later used for builds. The username and
> password is then cached somewhere (???). On Windows box it goes into
> something like that:
>
> C:\Documents and Settings\maven\Application Data\Subversion
>
> (sorry, in my previous post I wrote it went to home directory; my mistake).
>
> I've no idea where it would go on Linux, but I am sure it can cache it.
>
> After this SVN will just use cached passwords providing you use the same
> user account (or do it for all accounts).
>
> There may be a better way of doing it, but I don't know it :-). This whole
> SVN authentication could probably do with a couple of good howto's.
>
> Hope this helps
>
> Maciej
>
> > -----Original Message-----
> > From: Alejandro Nicolas Mascarell [mailto:anicola.lists@gmail.com]
> > Sent: Wednesday, 1 February 2006 5:04 PM
> > To: Maven Users List
> > Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
> >
> > I am speaking about the password to connect Subversion SCM, not the Maven
> > organization repository. On the URL you can specify the user but not the
> > password (and probably you won't like to do so), but on the
> > settings.xmlfile as far as I know it is only possible to specify Maven
> > component
> > repository passwords.
> >
> > Alex
> >
> > On 2/1/06, Mark Struberg < struberg@yahoo.de> wrote:
> > >
> > > Hi Alejandro!
> > >
> > > I don't know if u ment this when u mentioned the
> > > settings.xml
> > > But i think u have to use a <server> section there.
> > > This is mostly common for all username/password
> > > thingies like tomcat:deploy and so on.
> > >
> > > Try to edit your ~/.m2/settings.xml and insert your
> > > settings according to the following configuration for
> > > tomcat. The svn configuration should be nearly the
> > > same:
> > >
> > > <settings>
> > > ...
> > > <servers>
> > >   <server>
> > >    <id>tomcat</id>
> > >    <username>myTomcatUser</username>
> > >    <password>myTomcatPassword</password>
> > >   </server>
> > > </servers>
> > > ...
> > > </settings>
> > >
> > > you then have to reference the server-id in your
> > > pom.xml:
> > >     <plugins>
> > > ...
> > >
> > >       <plugin>
> > >
> > >         <groupId>org.codehaus.mojo</groupId>
> > >
> > >         <artifactId>tomcat-maven-plugin</artifactId>
> > >
> > >         <version> 1.0-SNAPSHOT</version>
> > >
> > >         <configuration>
> > >           <server>tomcat</server>
> > >         </configuration>
> > >
> > >       </plugin>
> > > ...
> > >
> > >     </plugins>
> > >
> > >
> > > best regards,
> > > strub
> > >
> > >
> > > --- Alejandro Nicolas Mascarell
> > > <an...@gmail.com> schrieb:
> > >
> > > > Does anyone know where is the SCM user password
> > > > provided when using SCM url?
> > > > As from the specification (and checked on
> > > > svnScmProviderRepository class)
> > > > the password is not gathered for the URL, as in the
> > > > case on CVS. I have
> > > > checked whether the password was taken from
> > > > settings.xml file but it seems
> > > > it is not the case.
> > > >
> > > > Thanks!
> > > >
> > > > Alex
> > > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > ___________________________________________________________
> > > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


Re: Re: SVN url password

Posted by Emmanuel Venisse <em...@venisse.net>.
we'll perhaps have a <scm> element in settings for 2.1, but not for maven 2.0.3

<server> isn't specific to repositories

Emmanuel

Alejandro Nicolas Mascarell a écrit :
> It think it would be more consistent to add an <id> element within the <scm>
> element, to link from, as in the case of Maven repositories, don't you? For
> repositories the <id> it is explicit but in this case it is not for <scm>.
> 
> On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
> 
>>if your scm url is : scm:provider:...scm_host:scm_port...
>>
>><server>
>>   <id>scm_host:scm_port</id>
>>   <username>your_username</username>
>>   <password>your_password</password>
>></server>
>>
>>if your scm url is : scm:provider:...scm_host...
>>
>><server>
>>   <id>scm_host</id>
>>   <username>your_username</username>
>>   <password>your_password</password>
>></server>
>>
>>
>><server> is generally used for artifact repositories uploads, but it can
>>be used for all features
>>that require a server.
>>
>>I think starteam scm provider is the only one that support it. We'll allow
>>it for all scm providers
>>
>>Emmanuel
>>
>>Alejandro Nicolas Mascarell a écrit :
>>
>>>Where on the settings.xml is it possible to define the user/pass for a
>>
>>SCM
>>
>>>provider? I know about the <server> section. But is it not this for
>>
>>Maven
>>
>>>artifacts repositories?  Is it not the <server><id> element used as the
>>>reference from <repositories><repository><id> element?
>>>
>>>I'm using maven-release-plugin. Is there a way to know MOJO's
>>
>>paramenters
>>
>>>without browsing source code?  Thanks for all! ;)
>>>
>>>On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
>>>
>>>
>>>>We don't allow password in scm svn url for security reason. It's allowed
>>>>in scm cvs url for backward
>>>>compatibility.
>>>>
>>>>What is the plugin you want to use with scm url?
>>>>Actually, some scm providers can read password from settings.xml, but
>>
>>not
>>
>>>>all. We need to
>>>>standardize it.
>>>>
>>>>If you can't define svn password by a mojo property (I'm pretty sure you
>>>>can), you must register it
>>>>by running a svn command from command line like this :
>>>>
>>>>svn --username your_username --password your_password command_to_execute
>>>>
>>>>Emmanuel
>>>>
>>>>Maciej Mastalarczuk a écrit :
>>>>
>>>>
>>>>>Hi Alejandro,
>>>>>
>>>>>The way I got it working is through connecting to SVN using
>>
>>command-line
>>
>>>>>tool under the user account that is later used for builds. The username
>>>>
>>>>and
>>>>
>>>>
>>>>>password is then cached somewhere (???). On Windows box it goes into
>>>>>something like that:
>>>>>
>>>>>C:\Documents and Settings\maven\Application Data\Subversion
>>>>>
>>>>>(sorry, in my previous post I wrote it went to home directory; my
>>>>
>>>>mistake).
>>>>
>>>>
>>>>>I've no idea where it would go on Linux, but I am sure it can cache it.
>>>>>
>>>>>After this SVN will just use cached passwords providing you use the
>>
>>same
>>
>>>>>user account (or do it for all accounts).
>>>>>
>>>>>There may be a better way of doing it, but I don't know it :-). This
>>>>
>>>>whole
>>>>
>>>>
>>>>>SVN authentication could probably do with a couple of good howto's.
>>>>>
>>>>>Hope this helps
>>>>>
>>>>>Maciej
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>-----Original Message-----
>>>>>>From: Alejandro Nicolas Mascarell [mailto:anicola.lists@gmail.com]
>>>>>>Sent: Wednesday, 1 February 2006 5:04 PM
>>>>>>To: Maven Users List
>>>>>>Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
>>>>>>
>>>>>>I am speaking about the password to connect Subversion SCM, not the
>>>>
>>>>Maven
>>>>
>>>>
>>>>>>organization repository. On the URL you can specify the user but not
>>
>>the
>>
>>>>>>password (and probably you won't like to do so), but on the
>>>>>>settings.xmlfile as far as I know it is only possible to specify Maven
>>>>>>component
>>>>>>repository passwords.
>>>>>>
>>>>>>Alex
>>>>>>
>>>>>>On 2/1/06, Mark Struberg < struberg@yahoo.de> wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Hi Alejandro!
>>>>>>>
>>>>>>>I don't know if u ment this when u mentioned the
>>>>>>>settings.xml
>>>>>>>But i think u have to use a <server> section there.
>>>>>>>This is mostly common for all username/password
>>>>>>>thingies like tomcat:deploy and so on.
>>>>>>>
>>>>>>>Try to edit your ~/.m2/settings.xml and insert your
>>>>>>>settings according to the following configuration for
>>>>>>>tomcat. The svn configuration should be nearly the
>>>>>>>same:
>>>>>>>
>>>>>>><settings>
>>>>>>>...
>>>>>>><servers>
>>>>>>><server>
>>>>>>> <id>tomcat</id>
>>>>>>> <username>myTomcatUser</username>
>>>>>>> <password>myTomcatPassword</password>
>>>>>>></server>
>>>>>>></servers>
>>>>>>>...
>>>>>>></settings>
>>>>>>>
>>>>>>>you then have to reference the server-id in your
>>>>>>>pom.xml:
>>>>>>>  <plugins>
>>>>>>>...
>>>>>>>
>>>>>>>    <plugin>
>>>>>>>
>>>>>>>      <groupId>org.codehaus.mojo</groupId>
>>>>>>>
>>>>>>>      <artifactId>tomcat-maven-plugin</artifactId>
>>>>>>>
>>>>>>>      <version> 1.0-SNAPSHOT</version>
>>>>>>>
>>>>>>>      <configuration>
>>>>>>>        <server>tomcat</server>
>>>>>>>      </configuration>
>>>>>>>
>>>>>>>    </plugin>
>>>>>>>...
>>>>>>>
>>>>>>>  </plugins>
>>>>>>>
>>>>>>>
>>>>>>>best regards,
>>>>>>>strub
>>>>>>>
>>>>>>>
>>>>>>>--- Alejandro Nicolas Mascarell
>>>>>>><an...@gmail.com> schrieb:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>Does anyone know where is the SCM user password
>>>>>>>>provided when using SCM url?
>>>>>>>>As from the specification (and checked on
>>>>>>>>svnScmProviderRepository class)
>>>>>>>>the password is not gathered for the URL, as in the
>>>>>>>>case on CVS. I have
>>>>>>>>checked whether the password was taken from
>>>>>>>>settings.xml file but it seems
>>>>>>>>it is not the case.
>>>>>>>>
>>>>>>>>Thanks!
>>>>>>>>
>>>>>>>>Alex
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>___________________________________________________________
>>>>>>>Telefonate ohne weitere Kosten vom PC zum PC:
>>
>>http://messenger.yahoo.de
>>
>>>>>>>---------------------------------------------------------------------
>>>>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>>>>
>>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> 


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


Re: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password

Posted by Alejandro Nicolas Mascarell <an...@gmail.com>.
It think it would be more consistent to add an <id> element within the <scm>
element, to link from, as in the case of Maven repositories, don't you? For
repositories the <id> it is explicit but in this case it is not for <scm>.

On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
>
> if your scm url is : scm:provider:...scm_host:scm_port...
>
> <server>
>    <id>scm_host:scm_port</id>
>    <username>your_username</username>
>    <password>your_password</password>
> </server>
>
> if your scm url is : scm:provider:...scm_host...
>
> <server>
>    <id>scm_host</id>
>    <username>your_username</username>
>    <password>your_password</password>
> </server>
>
>
> <server> is generally used for artifact repositories uploads, but it can
> be used for all features
> that require a server.
>
> I think starteam scm provider is the only one that support it. We'll allow
> it for all scm providers
>
> Emmanuel
>
> Alejandro Nicolas Mascarell a écrit :
> > Where on the settings.xml is it possible to define the user/pass for a
> SCM
> > provider? I know about the <server> section. But is it not this for
> Maven
> > artifacts repositories?  Is it not the <server><id> element used as the
> > reference from <repositories><repository><id> element?
> >
> > I'm using maven-release-plugin. Is there a way to know MOJO's
> paramenters
> > without browsing source code?  Thanks for all! ;)
> >
> > On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
> >
> >>We don't allow password in scm svn url for security reason. It's allowed
> >>in scm cvs url for backward
> >>compatibility.
> >>
> >>What is the plugin you want to use with scm url?
> >>Actually, some scm providers can read password from settings.xml, but
> not
> >>all. We need to
> >>standardize it.
> >>
> >>If you can't define svn password by a mojo property (I'm pretty sure you
> >>can), you must register it
> >>by running a svn command from command line like this :
> >>
> >>svn --username your_username --password your_password command_to_execute
> >>
> >>Emmanuel
> >>
> >>Maciej Mastalarczuk a écrit :
> >>
> >>>Hi Alejandro,
> >>>
> >>>The way I got it working is through connecting to SVN using
> command-line
> >>>tool under the user account that is later used for builds. The username
> >>
> >>and
> >>
> >>>password is then cached somewhere (???). On Windows box it goes into
> >>>something like that:
> >>>
> >>>C:\Documents and Settings\maven\Application Data\Subversion
> >>>
> >>>(sorry, in my previous post I wrote it went to home directory; my
> >>
> >>mistake).
> >>
> >>>I've no idea where it would go on Linux, but I am sure it can cache it.
> >>>
> >>>After this SVN will just use cached passwords providing you use the
> same
> >>>user account (or do it for all accounts).
> >>>
> >>>There may be a better way of doing it, but I don't know it :-). This
> >>
> >>whole
> >>
> >>>SVN authentication could probably do with a couple of good howto's.
> >>>
> >>>Hope this helps
> >>>
> >>>Maciej
> >>>
> >>>
> >>>
> >>>>-----Original Message-----
> >>>>From: Alejandro Nicolas Mascarell [mailto:anicola.lists@gmail.com]
> >>>>Sent: Wednesday, 1 February 2006 5:04 PM
> >>>>To: Maven Users List
> >>>>Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
> >>>>
> >>>>I am speaking about the password to connect Subversion SCM, not the
> >>
> >>Maven
> >>
> >>>>organization repository. On the URL you can specify the user but not
> the
> >>>>password (and probably you won't like to do so), but on the
> >>>>settings.xmlfile as far as I know it is only possible to specify Maven
> >>>>component
> >>>>repository passwords.
> >>>>
> >>>>Alex
> >>>>
> >>>>On 2/1/06, Mark Struberg < struberg@yahoo.de> wrote:
> >>>>
> >>>>
> >>>>>Hi Alejandro!
> >>>>>
> >>>>>I don't know if u ment this when u mentioned the
> >>>>>settings.xml
> >>>>>But i think u have to use a <server> section there.
> >>>>>This is mostly common for all username/password
> >>>>>thingies like tomcat:deploy and so on.
> >>>>>
> >>>>>Try to edit your ~/.m2/settings.xml and insert your
> >>>>>settings according to the following configuration for
> >>>>>tomcat. The svn configuration should be nearly the
> >>>>>same:
> >>>>>
> >>>>><settings>
> >>>>>...
> >>>>><servers>
> >>>>> <server>
> >>>>>  <id>tomcat</id>
> >>>>>  <username>myTomcatUser</username>
> >>>>>  <password>myTomcatPassword</password>
> >>>>> </server>
> >>>>></servers>
> >>>>>...
> >>>>></settings>
> >>>>>
> >>>>>you then have to reference the server-id in your
> >>>>>pom.xml:
> >>>>>   <plugins>
> >>>>>...
> >>>>>
> >>>>>     <plugin>
> >>>>>
> >>>>>       <groupId>org.codehaus.mojo</groupId>
> >>>>>
> >>>>>       <artifactId>tomcat-maven-plugin</artifactId>
> >>>>>
> >>>>>       <version> 1.0-SNAPSHOT</version>
> >>>>>
> >>>>>       <configuration>
> >>>>>         <server>tomcat</server>
> >>>>>       </configuration>
> >>>>>
> >>>>>     </plugin>
> >>>>>...
> >>>>>
> >>>>>   </plugins>
> >>>>>
> >>>>>
> >>>>>best regards,
> >>>>>strub
> >>>>>
> >>>>>
> >>>>>--- Alejandro Nicolas Mascarell
> >>>>><an...@gmail.com> schrieb:
> >>>>>
> >>>>>
> >>>>>
> >>>>>>Does anyone know where is the SCM user password
> >>>>>>provided when using SCM url?
> >>>>>>As from the specification (and checked on
> >>>>>>svnScmProviderRepository class)
> >>>>>>the password is not gathered for the URL, as in the
> >>>>>>case on CVS. I have
> >>>>>>checked whether the password was taken from
> >>>>>>settings.xml file but it seems
> >>>>>>it is not the case.
> >>>>>>
> >>>>>>Thanks!
> >>>>>>
> >>>>>>Alex
> >>>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>___________________________________________________________
> >>>>>Telefonate ohne weitere Kosten vom PC zum PC:
> http://messenger.yahoo.de
> >>>>>
> >>>>>---------------------------------------------------------------------
> >>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>>>For additional commands, e-mail: users-help@maven.apache.org
> >>>>>
> >>>>>
> >>>
> >>>
> >>>
> >>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>For additional commands, e-mail: users-help@maven.apache.org
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: [SOLVED] Re: SVN url password

Posted by Borut Bolčina <bo...@najdi.si>.
Filed under MNG-2119

On 3.3.2006 9:34, Emmanuel Venisse wrote:
> File an issue and i'll look at it.
>
> Emmanuel
>
> Borut Bolčina a écrit :
>> Password in clear text, but it works.
>>
>> QUESTION:
>> If SVN username is the same as system login username (windows), is 
>> there a way not to put password on display in pom.xml?
>>
>> <plugin>
>>     <groupId>org.codehaus.mojo</groupId>
>>     <artifactId>changelog-maven-plugin</artifactId>
>>     <version>2.0-beta-2-SNAPSHOT</version>
>>     <configuration>
>>         
>> <scmUrl>scm:svn:http://acme.com/svn/repository/project/trunk</scmUrl>
>>         <password>PASSWORD</password>
>>     </configuration>
>> </plugin>
>>
>> -Borut
>>
>>
>> On 2.3.2006 23:16, Borut Bolčina wrote:
>>
>>> Hi, I am getting
>>>
>>> [ERROR] svn: PROPFIND request failed on '/svn/repository/project/trunk'
>>> svn: PROPFIND of '/svn/repository/project/trunk': authorization 
>>> failed (http://acme.com)
>>>
>>> while trying to make maven (2.0.2) reports with maven-change-log 
>>> plugin (developer activity,...).
>>>
>>> <plugin>
>>>     <groupId>org.codehaus.mojo</groupId>
>>>     <artifactId>changelog-maven-plugin</artifactId>
>>>     <version>2.0-beta-2-SNAPSHOT</version>
>>>     <configuration>
>>>         
>>> <scmUrl>scm:svn:http://acme.com/svn/repository/project/trunk</scmUrl>
>>>     </configuration>
>>> </plugin>
>>>
>>> The scm section looks like
>>>
>>> <scm>
>>>     
>>> <connection>scm:svn:http://acme.com/svn/repository/project/trunk</connection> 
>>>
>>>     
>>> <developerConnection>scm:svn:http://acme.com/svn/repository/project/trunk</developerConnection> 
>>>
>>>     <url>http://acme.com/svn/repository/project</url>
>>> </scm>
>>>
>>> My settings.xml look like:
>>>
>>> <servers>
>>>         <server>
>>>             <id>http://acme.com/svn/repository/project/trunk/</id>
>>>             <username>foo</username>
>>>             <password>bar</password>
>>>         </server>
>>> </servers>
>>>
>>> Where is the hack? I can connect to svn from Eclipse.
>>>
>>> -Borut
>>>
>>>
>>>
>>> On 1.2.2006 12:03, Emmanuel Venisse wrote:
>>>
>>>> if your scm url is : scm:provider:...scm_host:scm_port...
>>>>
>>>> <server>
>>>>   <id>scm_host:scm_port</id>
>>>>   <username>your_username</username>
>>>>   <password>your_password</password>
>>>> </server>
>>>>
>>>> if your scm url is : scm:provider:...scm_host...
>>>>
>>>> <server>
>>>>   <id>scm_host</id>
>>>>   <username>your_username</username>
>>>>   <password>your_password</password>
>>>> </server>
>>>>
>>>>
>>>> <server> is generally used for artifact repositories uploads, but 
>>>> it can be used for all features that require a server.
>>>>
>>>> I think starteam scm provider is the only one that support it. 
>>>> We'll allow it for all scm providers
>>>>
>>>> Emmanuel
>>>>
>>>> Alejandro Nicolas Mascarell a écrit :
>>>>
>>>>> Where on the settings.xml is it possible to define the user/pass 
>>>>> for a SCM
>>>>> provider? I know about the <server> section. But is it not this 
>>>>> for Maven
>>>>> artifacts repositories?  Is it not the <server><id> element used 
>>>>> as the
>>>>> reference from <repositories><repository><id> element?
>>>>>
>>>>> I'm using maven-release-plugin. Is there a way to know MOJO's 
>>>>> paramenters
>>>>> without browsing source code?  Thanks for all! ;)
>>>>>
>>>>> On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
>>>>>
>>>>>> We don't allow password in scm svn url for security reason. It's 
>>>>>> allowed
>>>>>> in scm cvs url for backward
>>>>>> compatibility.
>>>>>>
>>>>>> What is the plugin you want to use with scm url?
>>>>>> Actually, some scm providers can read password from settings.xml, 
>>>>>> but not
>>>>>> all. We need to
>>>>>> standardize it.
>>>>>>
>>>>>> If you can't define svn password by a mojo property (I'm pretty 
>>>>>> sure you
>>>>>> can), you must register it
>>>>>> by running a svn command from command line like this :
>>>>>>
>>>>>> svn --username your_username --password your_password 
>>>>>> command_to_execute
>>>>>>
>>>>>> Emmanuel
>>>>>>
>>>>>> Maciej Mastalarczuk a écrit :
>>>>>>
>>>>>>> Hi Alejandro,
>>>>>>>
>>>>>>> The way I got it working is through connecting to SVN using 
>>>>>>> command-line
>>>>>>> tool under the user account that is later used for builds. The 
>>>>>>> username
>>>>>>
>>>>>>
>>>>>> and
>>>>>>
>>>>>>> password is then cached somewhere (???). On Windows box it goes 
>>>>>>> into
>>>>>>> something like that:
>>>>>>>
>>>>>>> C:\Documents and Settings\maven\Application Data\Subversion
>>>>>>>
>>>>>>> (sorry, in my previous post I wrote it went to home directory; my
>>>>>>
>>>>>>
>>>>>> mistake).
>>>>>>
>>>>>>> I've no idea where it would go on Linux, but I am sure it can 
>>>>>>> cache it.
>>>>>>>
>>>>>>> After this SVN will just use cached passwords providing you use 
>>>>>>> the same
>>>>>>> user account (or do it for all accounts).
>>>>>>>
>>>>>>> There may be a better way of doing it, but I don't know it :-). 
>>>>>>> This
>>>>>>
>>>>>>
>>>>>> whole
>>>>>>
>>>>>>> SVN authentication could probably do with a couple of good howto's.
>>>>>>>
>>>>>>> Hope this helps
>>>>>>>
>>>>>>> Maciej
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> -----Original Message-----
>>>>>>>> From: Alejandro Nicolas Mascarell [mailto:anicola.lists@gmail.com]
>>>>>>>> Sent: Wednesday, 1 February 2006 5:04 PM
>>>>>>>> To: Maven Users List
>>>>>>>> Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
>>>>>>>>
>>>>>>>> I am speaking about the password to connect Subversion SCM, not 
>>>>>>>> the
>>>>>>>
>>>>>>
>>>>>> Maven
>>>>>>
>>>>>>>> organization repository. On the URL you can specify the user 
>>>>>>>> but not the
>>>>>>>> password (and probably you won't like to do so), but on the
>>>>>>>> settings.xmlfile as far as I know it is only possible to 
>>>>>>>> specify Maven
>>>>>>>> component
>>>>>>>> repository passwords.
>>>>>>>>
>>>>>>>> Alex
>>>>>>>>
>>>>>>>> On 2/1/06, Mark Struberg < struberg@yahoo.de> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>> Hi Alejandro!
>>>>>>>>>
>>>>>>>>> I don't know if u ment this when u mentioned the
>>>>>>>>> settings.xml
>>>>>>>>> But i think u have to use a <server> section there.
>>>>>>>>> This is mostly common for all username/password
>>>>>>>>> thingies like tomcat:deploy and so on.
>>>>>>>>>
>>>>>>>>> Try to edit your ~/.m2/settings.xml and insert your
>>>>>>>>> settings according to the following configuration for
>>>>>>>>> tomcat. The svn configuration should be nearly the
>>>>>>>>> same:
>>>>>>>>>
>>>>>>>>> <settings>
>>>>>>>>> ...
>>>>>>>>> <servers>
>>>>>>>>> <server>
>>>>>>>>>  <id>tomcat</id>
>>>>>>>>>  <username>myTomcatUser</username>
>>>>>>>>>  <password>myTomcatPassword</password>
>>>>>>>>> </server>
>>>>>>>>> </servers>
>>>>>>>>> ...
>>>>>>>>> </settings>
>>>>>>>>>
>>>>>>>>> you then have to reference the server-id in your
>>>>>>>>> pom.xml:
>>>>>>>>>   <plugins>
>>>>>>>>> ...
>>>>>>>>>
>>>>>>>>>     <plugin>
>>>>>>>>>
>>>>>>>>>       <groupId>org.codehaus.mojo</groupId>
>>>>>>>>>
>>>>>>>>>       <artifactId>tomcat-maven-plugin</artifactId>
>>>>>>>>>
>>>>>>>>>       <version> 1.0-SNAPSHOT</version>
>>>>>>>>>
>>>>>>>>>       <configuration>
>>>>>>>>>         <server>tomcat</server>
>>>>>>>>>       </configuration>
>>>>>>>>>
>>>>>>>>>     </plugin>
>>>>>>>>> ...
>>>>>>>>>
>>>>>>>>>   </plugins>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> best regards,
>>>>>>>>> strub
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --- Alejandro Nicolas Mascarell
>>>>>>>>> <an...@gmail.com> schrieb:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Does anyone know where is the SCM user password
>>>>>>>>>> provided when using SCM url?
>>>>>>>>>> As from the specification (and checked on
>>>>>>>>>> svnScmProviderRepository class)
>>>>>>>>>> the password is not gathered for the URL, as in the
>>>>>>>>>> case on CVS. I have
>>>>>>>>>> checked whether the password was taken from
>>>>>>>>>> settings.xml file but it seems
>>>>>>>>>> it is not the case.
>>>>>>>>>>
>>>>>>>>>> Thanks!
>>>>>>>>>>
>>>>>>>>>> Alex
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ___________________________________________________________
>>>>>>>>> Telefonate ohne weitere Kosten vom PC zum PC: 
>>>>>>>>> http://messenger.yahoo.de
>>>>>>>>>
>>>>>>>>> --------------------------------------------------------------------- 
>>>>>>>>>
>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --------------------------------------------------------------------- 
>>>>>>>
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --------------------------------------------------------------------- 
>>>>>>
>>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>
>>> -- 
>>> bLOG <http://www.delo.si/blog/borutb/>
>>> -- 
>>> Naključna *izjava tedna* iz tednika Mladina:
>>
>>
>> -- 
>> bLOG <http://www.delo.si/blog/borutb/>
>> -- 
>> Naključna *izjava tedna* iz tednika Mladina:
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

-- 
bLOG <http://www.delo.si/blog/borutb/>
--
Naključna *izjava tedna* iz tednika Mladina:

Re: [SOLVED] Re: SVN url password

Posted by Emmanuel Venisse <em...@venisse.net>.
File an issue and i'll look at it.

Emmanuel

Borut Bolčina a écrit :
> Password in clear text, but it works.
> 
> QUESTION:
> If SVN username is the same as system login username (windows), is there 
> a way not to put password on display in pom.xml?
> 
> <plugin>
>     <groupId>org.codehaus.mojo</groupId>
>     <artifactId>changelog-maven-plugin</artifactId>
>     <version>2.0-beta-2-SNAPSHOT</version>
>     <configuration>
>         
> <scmUrl>scm:svn:http://acme.com/svn/repository/project/trunk</scmUrl>
>         <password>PASSWORD</password>
>     </configuration>
> </plugin>
> 
> -Borut
> 
> 
> On 2.3.2006 23:16, Borut Bolčina wrote:
> 
>> Hi, I am getting
>>
>> [ERROR] svn: PROPFIND request failed on '/svn/repository/project/trunk'
>> svn: PROPFIND of '/svn/repository/project/trunk': authorization failed 
>> (http://acme.com)
>>
>> while trying to make maven (2.0.2) reports with maven-change-log 
>> plugin (developer activity,...).
>>
>> <plugin>
>>     <groupId>org.codehaus.mojo</groupId>
>>     <artifactId>changelog-maven-plugin</artifactId>
>>     <version>2.0-beta-2-SNAPSHOT</version>
>>     <configuration>
>>         
>> <scmUrl>scm:svn:http://acme.com/svn/repository/project/trunk</scmUrl>
>>     </configuration>
>> </plugin>
>>
>> The scm section looks like
>>
>> <scm>
>>     
>> <connection>scm:svn:http://acme.com/svn/repository/project/trunk</connection>
>>     
>> <developerConnection>scm:svn:http://acme.com/svn/repository/project/trunk</developerConnection>
>>     <url>http://acme.com/svn/repository/project</url>
>> </scm>
>>
>> My settings.xml look like:
>>
>> <servers>
>>         <server>
>>             <id>http://acme.com/svn/repository/project/trunk/</id>
>>             <username>foo</username>
>>             <password>bar</password>
>>         </server>
>> </servers>
>>
>> Where is the hack? I can connect to svn from Eclipse.
>>
>> -Borut
>>
>>
>>
>> On 1.2.2006 12:03, Emmanuel Venisse wrote:
>>
>>> if your scm url is : scm:provider:...scm_host:scm_port...
>>>
>>> <server>
>>>   <id>scm_host:scm_port</id>
>>>   <username>your_username</username>
>>>   <password>your_password</password>
>>> </server>
>>>
>>> if your scm url is : scm:provider:...scm_host...
>>>
>>> <server>
>>>   <id>scm_host</id>
>>>   <username>your_username</username>
>>>   <password>your_password</password>
>>> </server>
>>>
>>>
>>> <server> is generally used for artifact repositories uploads, but it 
>>> can be used for all features that require a server.
>>>
>>> I think starteam scm provider is the only one that support it. We'll 
>>> allow it for all scm providers
>>>
>>> Emmanuel
>>>
>>> Alejandro Nicolas Mascarell a écrit :
>>>
>>>> Where on the settings.xml is it possible to define the user/pass for 
>>>> a SCM
>>>> provider? I know about the <server> section. But is it not this for 
>>>> Maven
>>>> artifacts repositories?  Is it not the <server><id> element used as the
>>>> reference from <repositories><repository><id> element?
>>>>
>>>> I'm using maven-release-plugin. Is there a way to know MOJO's 
>>>> paramenters
>>>> without browsing source code?  Thanks for all! ;)
>>>>
>>>> On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
>>>>
>>>>> We don't allow password in scm svn url for security reason. It's 
>>>>> allowed
>>>>> in scm cvs url for backward
>>>>> compatibility.
>>>>>
>>>>> What is the plugin you want to use with scm url?
>>>>> Actually, some scm providers can read password from settings.xml, 
>>>>> but not
>>>>> all. We need to
>>>>> standardize it.
>>>>>
>>>>> If you can't define svn password by a mojo property (I'm pretty 
>>>>> sure you
>>>>> can), you must register it
>>>>> by running a svn command from command line like this :
>>>>>
>>>>> svn --username your_username --password your_password 
>>>>> command_to_execute
>>>>>
>>>>> Emmanuel
>>>>>
>>>>> Maciej Mastalarczuk a écrit :
>>>>>
>>>>>> Hi Alejandro,
>>>>>>
>>>>>> The way I got it working is through connecting to SVN using 
>>>>>> command-line
>>>>>> tool under the user account that is later used for builds. The 
>>>>>> username
>>>>>
>>>>>
>>>>> and
>>>>>
>>>>>> password is then cached somewhere (???). On Windows box it goes into
>>>>>> something like that:
>>>>>>
>>>>>> C:\Documents and Settings\maven\Application Data\Subversion
>>>>>>
>>>>>> (sorry, in my previous post I wrote it went to home directory; my
>>>>>
>>>>>
>>>>> mistake).
>>>>>
>>>>>> I've no idea where it would go on Linux, but I am sure it can 
>>>>>> cache it.
>>>>>>
>>>>>> After this SVN will just use cached passwords providing you use 
>>>>>> the same
>>>>>> user account (or do it for all accounts).
>>>>>>
>>>>>> There may be a better way of doing it, but I don't know it :-). This
>>>>>
>>>>>
>>>>> whole
>>>>>
>>>>>> SVN authentication could probably do with a couple of good howto's.
>>>>>>
>>>>>> Hope this helps
>>>>>>
>>>>>> Maciej
>>>>>>
>>>>>>
>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Alejandro Nicolas Mascarell [mailto:anicola.lists@gmail.com]
>>>>>>> Sent: Wednesday, 1 February 2006 5:04 PM
>>>>>>> To: Maven Users List
>>>>>>> Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
>>>>>>>
>>>>>>> I am speaking about the password to connect Subversion SCM, not the
>>>>>>
>>>>>
>>>>> Maven
>>>>>
>>>>>>> organization repository. On the URL you can specify the user but 
>>>>>>> not the
>>>>>>> password (and probably you won't like to do so), but on the
>>>>>>> settings.xmlfile as far as I know it is only possible to specify 
>>>>>>> Maven
>>>>>>> component
>>>>>>> repository passwords.
>>>>>>>
>>>>>>> Alex
>>>>>>>
>>>>>>> On 2/1/06, Mark Struberg < struberg@yahoo.de> wrote:
>>>>>>>
>>>>>>>
>>>>>>>> Hi Alejandro!
>>>>>>>>
>>>>>>>> I don't know if u ment this when u mentioned the
>>>>>>>> settings.xml
>>>>>>>> But i think u have to use a <server> section there.
>>>>>>>> This is mostly common for all username/password
>>>>>>>> thingies like tomcat:deploy and so on.
>>>>>>>>
>>>>>>>> Try to edit your ~/.m2/settings.xml and insert your
>>>>>>>> settings according to the following configuration for
>>>>>>>> tomcat. The svn configuration should be nearly the
>>>>>>>> same:
>>>>>>>>
>>>>>>>> <settings>
>>>>>>>> ...
>>>>>>>> <servers>
>>>>>>>> <server>
>>>>>>>>  <id>tomcat</id>
>>>>>>>>  <username>myTomcatUser</username>
>>>>>>>>  <password>myTomcatPassword</password>
>>>>>>>> </server>
>>>>>>>> </servers>
>>>>>>>> ...
>>>>>>>> </settings>
>>>>>>>>
>>>>>>>> you then have to reference the server-id in your
>>>>>>>> pom.xml:
>>>>>>>>   <plugins>
>>>>>>>> ...
>>>>>>>>
>>>>>>>>     <plugin>
>>>>>>>>
>>>>>>>>       <groupId>org.codehaus.mojo</groupId>
>>>>>>>>
>>>>>>>>       <artifactId>tomcat-maven-plugin</artifactId>
>>>>>>>>
>>>>>>>>       <version> 1.0-SNAPSHOT</version>
>>>>>>>>
>>>>>>>>       <configuration>
>>>>>>>>         <server>tomcat</server>
>>>>>>>>       </configuration>
>>>>>>>>
>>>>>>>>     </plugin>
>>>>>>>> ...
>>>>>>>>
>>>>>>>>   </plugins>
>>>>>>>>
>>>>>>>>
>>>>>>>> best regards,
>>>>>>>> strub
>>>>>>>>
>>>>>>>>
>>>>>>>> --- Alejandro Nicolas Mascarell
>>>>>>>> <an...@gmail.com> schrieb:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> Does anyone know where is the SCM user password
>>>>>>>>> provided when using SCM url?
>>>>>>>>> As from the specification (and checked on
>>>>>>>>> svnScmProviderRepository class)
>>>>>>>>> the password is not gathered for the URL, as in the
>>>>>>>>> case on CVS. I have
>>>>>>>>> checked whether the password was taken from
>>>>>>>>> settings.xml file but it seems
>>>>>>>>> it is not the case.
>>>>>>>>>
>>>>>>>>> Thanks!
>>>>>>>>>
>>>>>>>>> Alex
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> ___________________________________________________________
>>>>>>>> Telefonate ohne weitere Kosten vom PC zum PC: 
>>>>>>>> http://messenger.yahoo.de
>>>>>>>>
>>>>>>>> --------------------------------------------------------------------- 
>>>>>>>>
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>>>
>>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>
>> -- 
>> bLOG <http://www.delo.si/blog/borutb/>
>> --
>> Naključna *izjava tedna* iz tednika Mladina:
> 
> 
> -- 
> bLOG <http://www.delo.si/blog/borutb/>
> --
> Naključna *izjava tedna* iz tednika Mladina:


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


[SOLVED] Re: SVN url password

Posted by Borut Bolčina <bo...@najdi.si>.
Password in clear text, but it works.

QUESTION:
If SVN username is the same as system login username (windows), is there 
a way not to put password on display in pom.xml?

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>changelog-maven-plugin</artifactId>
    <version>2.0-beta-2-SNAPSHOT</version>
    <configuration>
        
<scmUrl>scm:svn:http://acme.com/svn/repository/project/trunk</scmUrl>
        <password>PASSWORD</password>
    </configuration>
</plugin>

-Borut


On 2.3.2006 23:16, Borut Bolčina wrote:
> Hi, I am getting
>
> [ERROR] svn: PROPFIND request failed on '/svn/repository/project/trunk'
> svn: PROPFIND of '/svn/repository/project/trunk': authorization failed 
> (http://acme.com)
>
> while trying to make maven (2.0.2) reports with maven-change-log 
> plugin (developer activity,...).
>
> <plugin>
>     <groupId>org.codehaus.mojo</groupId>
>     <artifactId>changelog-maven-plugin</artifactId>
>     <version>2.0-beta-2-SNAPSHOT</version>
>     <configuration>
>         
> <scmUrl>scm:svn:http://acme.com/svn/repository/project/trunk</scmUrl>
>     </configuration>
> </plugin>
>
> The scm section looks like
>
> <scm>
>     
> <connection>scm:svn:http://acme.com/svn/repository/project/trunk</connection>
>     
> <developerConnection>scm:svn:http://acme.com/svn/repository/project/trunk</developerConnection>
>     <url>http://acme.com/svn/repository/project</url>
> </scm>
>
> My settings.xml look like:
>
> <servers>
>         <server>
>             <id>http://acme.com/svn/repository/project/trunk/</id>
>             <username>foo</username>
>             <password>bar</password>
>         </server>
> </servers>
>
> Where is the hack? I can connect to svn from Eclipse.
>
> -Borut
>
>
>
> On 1.2.2006 12:03, Emmanuel Venisse wrote:
>> if your scm url is : scm:provider:...scm_host:scm_port...
>>
>> <server>
>>   <id>scm_host:scm_port</id>
>>   <username>your_username</username>
>>   <password>your_password</password>
>> </server>
>>
>> if your scm url is : scm:provider:...scm_host...
>>
>> <server>
>>   <id>scm_host</id>
>>   <username>your_username</username>
>>   <password>your_password</password>
>> </server>
>>
>>
>> <server> is generally used for artifact repositories uploads, but it 
>> can be used for all features that require a server.
>>
>> I think starteam scm provider is the only one that support it. We'll 
>> allow it for all scm providers
>>
>> Emmanuel
>>
>> Alejandro Nicolas Mascarell a écrit :
>>> Where on the settings.xml is it possible to define the user/pass for 
>>> a SCM
>>> provider? I know about the <server> section. But is it not this for 
>>> Maven
>>> artifacts repositories?  Is it not the <server><id> element used as the
>>> reference from <repositories><repository><id> element?
>>>
>>> I'm using maven-release-plugin. Is there a way to know MOJO's 
>>> paramenters
>>> without browsing source code?  Thanks for all! ;)
>>>
>>> On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
>>>
>>>> We don't allow password in scm svn url for security reason. It's 
>>>> allowed
>>>> in scm cvs url for backward
>>>> compatibility.
>>>>
>>>> What is the plugin you want to use with scm url?
>>>> Actually, some scm providers can read password from settings.xml, 
>>>> but not
>>>> all. We need to
>>>> standardize it.
>>>>
>>>> If you can't define svn password by a mojo property (I'm pretty 
>>>> sure you
>>>> can), you must register it
>>>> by running a svn command from command line like this :
>>>>
>>>> svn --username your_username --password your_password 
>>>> command_to_execute
>>>>
>>>> Emmanuel
>>>>
>>>> Maciej Mastalarczuk a écrit :
>>>>
>>>>> Hi Alejandro,
>>>>>
>>>>> The way I got it working is through connecting to SVN using 
>>>>> command-line
>>>>> tool under the user account that is later used for builds. The 
>>>>> username
>>>>
>>>> and
>>>>
>>>>> password is then cached somewhere (???). On Windows box it goes into
>>>>> something like that:
>>>>>
>>>>> C:\Documents and Settings\maven\Application Data\Subversion
>>>>>
>>>>> (sorry, in my previous post I wrote it went to home directory; my
>>>>
>>>> mistake).
>>>>
>>>>> I've no idea where it would go on Linux, but I am sure it can 
>>>>> cache it.
>>>>>
>>>>> After this SVN will just use cached passwords providing you use 
>>>>> the same
>>>>> user account (or do it for all accounts).
>>>>>
>>>>> There may be a better way of doing it, but I don't know it :-). This
>>>>
>>>> whole
>>>>
>>>>> SVN authentication could probably do with a couple of good howto's.
>>>>>
>>>>> Hope this helps
>>>>>
>>>>> Maciej
>>>>>
>>>>>
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Alejandro Nicolas Mascarell [mailto:anicola.lists@gmail.com]
>>>>>> Sent: Wednesday, 1 February 2006 5:04 PM
>>>>>> To: Maven Users List
>>>>>> Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
>>>>>>
>>>>>> I am speaking about the password to connect Subversion SCM, not the
>>>>
>>>> Maven
>>>>
>>>>>> organization repository. On the URL you can specify the user but 
>>>>>> not the
>>>>>> password (and probably you won't like to do so), but on the
>>>>>> settings.xmlfile as far as I know it is only possible to specify 
>>>>>> Maven
>>>>>> component
>>>>>> repository passwords.
>>>>>>
>>>>>> Alex
>>>>>>
>>>>>> On 2/1/06, Mark Struberg < struberg@yahoo.de> wrote:
>>>>>>
>>>>>>
>>>>>>> Hi Alejandro!
>>>>>>>
>>>>>>> I don't know if u ment this when u mentioned the
>>>>>>> settings.xml
>>>>>>> But i think u have to use a <server> section there.
>>>>>>> This is mostly common for all username/password
>>>>>>> thingies like tomcat:deploy and so on.
>>>>>>>
>>>>>>> Try to edit your ~/.m2/settings.xml and insert your
>>>>>>> settings according to the following configuration for
>>>>>>> tomcat. The svn configuration should be nearly the
>>>>>>> same:
>>>>>>>
>>>>>>> <settings>
>>>>>>> ...
>>>>>>> <servers>
>>>>>>> <server>
>>>>>>>  <id>tomcat</id>
>>>>>>>  <username>myTomcatUser</username>
>>>>>>>  <password>myTomcatPassword</password>
>>>>>>> </server>
>>>>>>> </servers>
>>>>>>> ...
>>>>>>> </settings>
>>>>>>>
>>>>>>> you then have to reference the server-id in your
>>>>>>> pom.xml:
>>>>>>>   <plugins>
>>>>>>> ...
>>>>>>>
>>>>>>>     <plugin>
>>>>>>>
>>>>>>>       <groupId>org.codehaus.mojo</groupId>
>>>>>>>
>>>>>>>       <artifactId>tomcat-maven-plugin</artifactId>
>>>>>>>
>>>>>>>       <version> 1.0-SNAPSHOT</version>
>>>>>>>
>>>>>>>       <configuration>
>>>>>>>         <server>tomcat</server>
>>>>>>>       </configuration>
>>>>>>>
>>>>>>>     </plugin>
>>>>>>> ...
>>>>>>>
>>>>>>>   </plugins>
>>>>>>>
>>>>>>>
>>>>>>> best regards,
>>>>>>> strub
>>>>>>>
>>>>>>>
>>>>>>> --- Alejandro Nicolas Mascarell
>>>>>>> <an...@gmail.com> schrieb:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Does anyone know where is the SCM user password
>>>>>>>> provided when using SCM url?
>>>>>>>> As from the specification (and checked on
>>>>>>>> svnScmProviderRepository class)
>>>>>>>> the password is not gathered for the URL, as in the
>>>>>>>> case on CVS. I have
>>>>>>>> checked whether the password was taken from
>>>>>>>> settings.xml file but it seems
>>>>>>>> it is not the case.
>>>>>>>>
>>>>>>>> Thanks!
>>>>>>>>
>>>>>>>> Alex
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ___________________________________________________________
>>>>>>> Telefonate ohne weitere Kosten vom PC zum PC: 
>>>>>>> http://messenger.yahoo.de
>>>>>>>
>>>>>>> --------------------------------------------------------------------- 
>>>>>>>
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>>
>>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
> -- 
> bLOG <http://www.delo.si/blog/borutb/>
> --
> Naključna *izjava tedna* iz tednika Mladina:

-- 
bLOG <http://www.delo.si/blog/borutb/>
--
Naključna *izjava tedna* iz tednika Mladina:

Re: SVN url password

Posted by Borut Bolčina <bo...@najdi.si>.
Hi, I am getting

[ERROR] svn: PROPFIND request failed on '/svn/repository/project/trunk'
svn: PROPFIND of '/svn/repository/project/trunk': authorization failed 
(http://acme.com)

while trying to make maven (2.0.2) reports with maven-change-log plugin 
(developer activity,...).

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>changelog-maven-plugin</artifactId>
    <version>2.0-beta-2-SNAPSHOT</version>
    <configuration>
        
<scmUrl>scm:svn:http://acme.com/svn/repository/project/trunk</scmUrl>
    </configuration>
</plugin>

The scm section looks like

<scm>
    
<connection>scm:svn:http://acme.com/svn/repository/project/trunk</connection>
    
<developerConnection>scm:svn:http://acme.com/svn/repository/project/trunk</developerConnection>
    <url>http://acme.com/svn/repository/project</url>
</scm>

My settings.xml look like:

<servers>
        <server>
            <id>http://acme.com/svn/repository/project/trunk/</id>
            <username>foo</username>
            <password>bar</password>
        </server>
</servers>

Where is the hack? I can connect to svn from Eclipse.

-Borut



On 1.2.2006 12:03, Emmanuel Venisse wrote:
> if your scm url is : scm:provider:...scm_host:scm_port...
>
> <server>
>   <id>scm_host:scm_port</id>
>   <username>your_username</username>
>   <password>your_password</password>
> </server>
>
> if your scm url is : scm:provider:...scm_host...
>
> <server>
>   <id>scm_host</id>
>   <username>your_username</username>
>   <password>your_password</password>
> </server>
>
>
> <server> is generally used for artifact repositories uploads, but it 
> can be used for all features that require a server.
>
> I think starteam scm provider is the only one that support it. We'll 
> allow it for all scm providers
>
> Emmanuel
>
> Alejandro Nicolas Mascarell a écrit :
>> Where on the settings.xml is it possible to define the user/pass for 
>> a SCM
>> provider? I know about the <server> section. But is it not this for 
>> Maven
>> artifacts repositories?  Is it not the <server><id> element used as the
>> reference from <repositories><repository><id> element?
>>
>> I'm using maven-release-plugin. Is there a way to know MOJO's 
>> paramenters
>> without browsing source code?  Thanks for all! ;)
>>
>> On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
>>
>>> We don't allow password in scm svn url for security reason. It's 
>>> allowed
>>> in scm cvs url for backward
>>> compatibility.
>>>
>>> What is the plugin you want to use with scm url?
>>> Actually, some scm providers can read password from settings.xml, 
>>> but not
>>> all. We need to
>>> standardize it.
>>>
>>> If you can't define svn password by a mojo property (I'm pretty sure 
>>> you
>>> can), you must register it
>>> by running a svn command from command line like this :
>>>
>>> svn --username your_username --password your_password 
>>> command_to_execute
>>>
>>> Emmanuel
>>>
>>> Maciej Mastalarczuk a écrit :
>>>
>>>> Hi Alejandro,
>>>>
>>>> The way I got it working is through connecting to SVN using 
>>>> command-line
>>>> tool under the user account that is later used for builds. The 
>>>> username
>>>
>>> and
>>>
>>>> password is then cached somewhere (???). On Windows box it goes into
>>>> something like that:
>>>>
>>>> C:\Documents and Settings\maven\Application Data\Subversion
>>>>
>>>> (sorry, in my previous post I wrote it went to home directory; my
>>>
>>> mistake).
>>>
>>>> I've no idea where it would go on Linux, but I am sure it can cache 
>>>> it.
>>>>
>>>> After this SVN will just use cached passwords providing you use the 
>>>> same
>>>> user account (or do it for all accounts).
>>>>
>>>> There may be a better way of doing it, but I don't know it :-). This
>>>
>>> whole
>>>
>>>> SVN authentication could probably do with a couple of good howto's.
>>>>
>>>> Hope this helps
>>>>
>>>> Maciej
>>>>
>>>>
>>>>
>>>>> -----Original Message-----
>>>>> From: Alejandro Nicolas Mascarell [mailto:anicola.lists@gmail.com]
>>>>> Sent: Wednesday, 1 February 2006 5:04 PM
>>>>> To: Maven Users List
>>>>> Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
>>>>>
>>>>> I am speaking about the password to connect Subversion SCM, not the
>>>
>>> Maven
>>>
>>>>> organization repository. On the URL you can specify the user but 
>>>>> not the
>>>>> password (and probably you won't like to do so), but on the
>>>>> settings.xmlfile as far as I know it is only possible to specify 
>>>>> Maven
>>>>> component
>>>>> repository passwords.
>>>>>
>>>>> Alex
>>>>>
>>>>> On 2/1/06, Mark Struberg < struberg@yahoo.de> wrote:
>>>>>
>>>>>
>>>>>> Hi Alejandro!
>>>>>>
>>>>>> I don't know if u ment this when u mentioned the
>>>>>> settings.xml
>>>>>> But i think u have to use a <server> section there.
>>>>>> This is mostly common for all username/password
>>>>>> thingies like tomcat:deploy and so on.
>>>>>>
>>>>>> Try to edit your ~/.m2/settings.xml and insert your
>>>>>> settings according to the following configuration for
>>>>>> tomcat. The svn configuration should be nearly the
>>>>>> same:
>>>>>>
>>>>>> <settings>
>>>>>> ...
>>>>>> <servers>
>>>>>> <server>
>>>>>>  <id>tomcat</id>
>>>>>>  <username>myTomcatUser</username>
>>>>>>  <password>myTomcatPassword</password>
>>>>>> </server>
>>>>>> </servers>
>>>>>> ...
>>>>>> </settings>
>>>>>>
>>>>>> you then have to reference the server-id in your
>>>>>> pom.xml:
>>>>>>   <plugins>
>>>>>> ...
>>>>>>
>>>>>>     <plugin>
>>>>>>
>>>>>>       <groupId>org.codehaus.mojo</groupId>
>>>>>>
>>>>>>       <artifactId>tomcat-maven-plugin</artifactId>
>>>>>>
>>>>>>       <version> 1.0-SNAPSHOT</version>
>>>>>>
>>>>>>       <configuration>
>>>>>>         <server>tomcat</server>
>>>>>>       </configuration>
>>>>>>
>>>>>>     </plugin>
>>>>>> ...
>>>>>>
>>>>>>   </plugins>
>>>>>>
>>>>>>
>>>>>> best regards,
>>>>>> strub
>>>>>>
>>>>>>
>>>>>> --- Alejandro Nicolas Mascarell
>>>>>> <an...@gmail.com> schrieb:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Does anyone know where is the SCM user password
>>>>>>> provided when using SCM url?
>>>>>>> As from the specification (and checked on
>>>>>>> svnScmProviderRepository class)
>>>>>>> the password is not gathered for the URL, as in the
>>>>>>> case on CVS. I have
>>>>>>> checked whether the password was taken from
>>>>>>> settings.xml file but it seems
>>>>>>> it is not the case.
>>>>>>>
>>>>>>> Thanks!
>>>>>>>
>>>>>>> Alex
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ___________________________________________________________
>>>>>> Telefonate ohne weitere Kosten vom PC zum PC: 
>>>>>> http://messenger.yahoo.de
>>>>>>
>>>>>> --------------------------------------------------------------------- 
>>>>>>
>>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>
>>>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

-- 
bLOG <http://www.delo.si/blog/borutb/>
--
Naključna *izjava tedna* iz tednika Mladina:

Re: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password

Posted by Alejandro Nicolas Mascarell <an...@gmail.com>.
Thanks. I'll take a look to those

On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
> maven-scm and scm providers don't know settings.xml. It's the job of plugins to read it and pass
> info to maven-scm, so you should look at maven scm plugin or maven release plugin
>
> Emmanuel
>
> Alejandro Nicolas Mascarell a écrit :
> > I've checked StarteamScmProviderRepository class and it seems StarTeam
> > gets the password from the URL as well:
> >
> >     public String getFullUrl()
> >     {
> >         String fullUrl = getUser() + ":";
> >
> >         if ( getPassword() != null )
> >         {
> >             fullUrl += getPassword();
> >         }
> >
> >         fullUrl += "@" + getUrl();
> >
> >         return fullUrl;
> >     }
> >
> > Could you tell what class/classes look after regarding user/pass
> > resolution on SCM providers based on settings.xml file?
> >
> > On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
> >
> >>I'm not sure, perhaps in some plugins
> >>
> >>Emmanuel
> >>
> >>Alejandro Nicolas Mascarell a écrit :
> >>
> >>>Do you mean that user/password configuration it is not allowed for
> >>>Subversion on settings.xml in the current version?
> >>>
> >>>On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
> >>>
> >>>
> >>>>if your scm url is : scm:provider:...scm_host:scm_port...
> >>>>
> >>>><server>
> >>>>  <id>scm_host:scm_port</id>
> >>>>  <username>your_username</username>
> >>>>  <password>your_password</password>
> >>>></server>
> >>>>
> >>>>if your scm url is : scm:provider:...scm_host...
> >>>>
> >>>><server>
> >>>>  <id>scm_host</id>
> >>>>  <username>your_username</username>
> >>>>  <password>your_password</password>
> >>>></server>
> >>>>
> >>>>
> >>>><server> is generally used for artifact repositories uploads, but it can be used for all features
> >>>>that require a server.
> >>>>
> >>>>I think starteam scm provider is the only one that support it. We'll allow it for all scm providers
> >>>>
> >>>>Emmanuel
> >>>>
> >>>>Alejandro Nicolas Mascarell a écrit :
> >>>>
> >>>>
> >>>>>Where on the settings.xml is it possible to define the user/pass for a SCM
> >>>>>provider? I know about the <server> section. But is it not this for Maven
> >>>>>artifacts repositories?  Is it not the <server><id> element used as the
> >>>>>reference from <repositories><repository><id> element?
> >>>>>
> >>>>>I'm using maven-release-plugin. Is there a way to know MOJO's paramenters
> >>>>>without browsing source code?  Thanks for all! ;)
> >>>>>
> >>>>>On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>>We don't allow password in scm svn url for security reason. It's allowed
> >>>>>>in scm cvs url for backward
> >>>>>>compatibility.
> >>>>>>
> >>>>>>What is the plugin you want to use with scm url?
> >>>>>>Actually, some scm providers can read password from settings.xml, but not
> >>>>>>all. We need to
> >>>>>>standardize it.
> >>>>>>
> >>>>>>If you can't define svn password by a mojo property (I'm pretty sure you
> >>>>>>can), you must register it
> >>>>>>by running a svn command from command line like this :
> >>>>>>
> >>>>>>svn --username your_username --password your_password command_to_execute
> >>>>>>
> >>>>>>Emmanuel
> >>>>>>
> >>>>>>Maciej Mastalarczuk a écrit :
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>Hi Alejandro,
> >>>>>>>
> >>>>>>>The way I got it working is through connecting to SVN using command-line
> >>>>>>>tool under the user account that is later used for builds. The username
> >>>>>>
> >>>>>>and
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>password is then cached somewhere (???). On Windows box it goes into
> >>>>>>>something like that:
> >>>>>>>
> >>>>>>>C:\Documents and Settings\maven\Application Data\Subversion
> >>>>>>>
> >>>>>>>(sorry, in my previous post I wrote it went to home directory; my
> >>>>>>
> >>>>>>mistake).
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>I've no idea where it would go on Linux, but I am sure it can cache it.
> >>>>>>>
> >>>>>>>After this SVN will just use cached passwords providing you use the same
> >>>>>>>user account (or do it for all accounts).
> >>>>>>>
> >>>>>>>There may be a better way of doing it, but I don't know it :-). This
> >>>>>>
> >>>>>>whole
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>SVN authentication could probably do with a couple of good howto's.
> >>>>>>>
> >>>>>>>Hope this helps
> >>>>>>>
> >>>>>>>Maciej
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>-----Original Message-----
> >>>>>>>>From: Alejandro Nicolas Mascarell [mailto:anicola.lists@gmail.com]
> >>>>>>>>Sent: Wednesday, 1 February 2006 5:04 PM
> >>>>>>>>To: Maven Users List
> >>>>>>>>Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
> >>>>>>>>
> >>>>>>>>I am speaking about the password to connect Subversion SCM, not the
> >>>>>>
> >>>>>>Maven
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>>organization repository. On the URL you can specify the user but not the
> >>>>>>>>password (and probably you won't like to do so), but on the
> >>>>>>>>settings.xmlfile as far as I know it is only possible to specify Maven
> >>>>>>>>component
> >>>>>>>>repository passwords.
> >>>>>>>>
> >>>>>>>>Alex
> >>>>>>>>
> >>>>>>>>On 2/1/06, Mark Struberg < struberg@yahoo.de> wrote:
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>>Hi Alejandro!
> >>>>>>>>>
> >>>>>>>>>I don't know if u ment this when u mentioned the
> >>>>>>>>>settings.xml
> >>>>>>>>>But i think u have to use a <server> section there.
> >>>>>>>>>This is mostly common for all username/password
> >>>>>>>>>thingies like tomcat:deploy and so on.
> >>>>>>>>>
> >>>>>>>>>Try to edit your ~/.m2/settings.xml and insert your
> >>>>>>>>>settings according to the following configuration for
> >>>>>>>>>tomcat. The svn configuration should be nearly the
> >>>>>>>>>same:
> >>>>>>>>>
> >>>>>>>>><settings>
> >>>>>>>>>...
> >>>>>>>>><servers>
> >>>>>>>>><server>
> >>>>>>>>><id>tomcat</id>
> >>>>>>>>><username>myTomcatUser</username>
> >>>>>>>>><password>myTomcatPassword</password>
> >>>>>>>>></server>
> >>>>>>>>></servers>
> >>>>>>>>>...
> >>>>>>>>></settings>
> >>>>>>>>>
> >>>>>>>>>you then have to reference the server-id in your
> >>>>>>>>>pom.xml:
> >>>>>>>>> <plugins>
> >>>>>>>>>...
> >>>>>>>>>
> >>>>>>>>>   <plugin>
> >>>>>>>>>
> >>>>>>>>>     <groupId>org.codehaus.mojo</groupId>
> >>>>>>>>>
> >>>>>>>>>     <artifactId>tomcat-maven-plugin</artifactId>
> >>>>>>>>>
> >>>>>>>>>     <version> 1.0-SNAPSHOT</version>
> >>>>>>>>>
> >>>>>>>>>     <configuration>
> >>>>>>>>>       <server>tomcat</server>
> >>>>>>>>>     </configuration>
> >>>>>>>>>
> >>>>>>>>>   </plugin>
> >>>>>>>>>...
> >>>>>>>>>
> >>>>>>>>> </plugins>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>best regards,
> >>>>>>>>>strub
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>--- Alejandro Nicolas Mascarell
> >>>>>>>>><an...@gmail.com> schrieb:
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>>Does anyone know where is the SCM user password
> >>>>>>>>>>provided when using SCM url?
> >>>>>>>>>>As from the specification (and checked on
> >>>>>>>>>>svnScmProviderRepository class)
> >>>>>>>>>>the password is not gathered for the URL, as in the
> >>>>>>>>>>case on CVS. I have
> >>>>>>>>>>checked whether the password was taken from
> >>>>>>>>>>settings.xml file but it seems
> >>>>>>>>>>it is not the case.
> >>>>>>>>>>
> >>>>>>>>>>Thanks!
> >>>>>>>>>>
> >>>>>>>>>>Alex
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>___________________________________________________________
> >>>>>>>>>Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
> >>>>>>>>>
> >>>>>>>>>---------------------------------------------------------------------
> >>>>>>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>>>>>>>For additional commands, e-mail: users-help@maven.apache.org
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>---------------------------------------------------------------------
> >>>>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>>>>>For additional commands, e-mail: users-help@maven.apache.org
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>>---------------------------------------------------------------------
> >>>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>>>>For additional commands, e-mail: users-help@maven.apache.org
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>---------------------------------------------------------------------
> >>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>>For additional commands, e-mail: users-help@maven.apache.org
> >>>>
> >>>>
> >>>
> >>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>For additional commands, e-mail: users-help@maven.apache.org
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


Re: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password

Posted by Emmanuel Venisse <em...@venisse.net>.
maven-scm and scm providers don't know settings.xml. It's the job of plugins to read it and pass 
info to maven-scm, so you should look at maven scm plugin or maven release plugin

Emmanuel

Alejandro Nicolas Mascarell a écrit :
> I've checked StarteamScmProviderRepository class and it seems StarTeam
> gets the password from the URL as well:
> 
>     public String getFullUrl()
>     {
>         String fullUrl = getUser() + ":";
> 
>         if ( getPassword() != null )
>         {
>             fullUrl += getPassword();
>         }
> 
>         fullUrl += "@" + getUrl();
> 
>         return fullUrl;
>     }
> 
> Could you tell what class/classes look after regarding user/pass
> resolution on SCM providers based on settings.xml file?
> 
> On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
> 
>>I'm not sure, perhaps in some plugins
>>
>>Emmanuel
>>
>>Alejandro Nicolas Mascarell a écrit :
>>
>>>Do you mean that user/password configuration it is not allowed for
>>>Subversion on settings.xml in the current version?
>>>
>>>On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
>>>
>>>
>>>>if your scm url is : scm:provider:...scm_host:scm_port...
>>>>
>>>><server>
>>>>  <id>scm_host:scm_port</id>
>>>>  <username>your_username</username>
>>>>  <password>your_password</password>
>>>></server>
>>>>
>>>>if your scm url is : scm:provider:...scm_host...
>>>>
>>>><server>
>>>>  <id>scm_host</id>
>>>>  <username>your_username</username>
>>>>  <password>your_password</password>
>>>></server>
>>>>
>>>>
>>>><server> is generally used for artifact repositories uploads, but it can be used for all features
>>>>that require a server.
>>>>
>>>>I think starteam scm provider is the only one that support it. We'll allow it for all scm providers
>>>>
>>>>Emmanuel
>>>>
>>>>Alejandro Nicolas Mascarell a écrit :
>>>>
>>>>
>>>>>Where on the settings.xml is it possible to define the user/pass for a SCM
>>>>>provider? I know about the <server> section. But is it not this for Maven
>>>>>artifacts repositories?  Is it not the <server><id> element used as the
>>>>>reference from <repositories><repository><id> element?
>>>>>
>>>>>I'm using maven-release-plugin. Is there a way to know MOJO's paramenters
>>>>>without browsing source code?  Thanks for all! ;)
>>>>>
>>>>>On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
>>>>>
>>>>>
>>>>>
>>>>>>We don't allow password in scm svn url for security reason. It's allowed
>>>>>>in scm cvs url for backward
>>>>>>compatibility.
>>>>>>
>>>>>>What is the plugin you want to use with scm url?
>>>>>>Actually, some scm providers can read password from settings.xml, but not
>>>>>>all. We need to
>>>>>>standardize it.
>>>>>>
>>>>>>If you can't define svn password by a mojo property (I'm pretty sure you
>>>>>>can), you must register it
>>>>>>by running a svn command from command line like this :
>>>>>>
>>>>>>svn --username your_username --password your_password command_to_execute
>>>>>>
>>>>>>Emmanuel
>>>>>>
>>>>>>Maciej Mastalarczuk a écrit :
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Hi Alejandro,
>>>>>>>
>>>>>>>The way I got it working is through connecting to SVN using command-line
>>>>>>>tool under the user account that is later used for builds. The username
>>>>>>
>>>>>>and
>>>>>>
>>>>>>
>>>>>>
>>>>>>>password is then cached somewhere (???). On Windows box it goes into
>>>>>>>something like that:
>>>>>>>
>>>>>>>C:\Documents and Settings\maven\Application Data\Subversion
>>>>>>>
>>>>>>>(sorry, in my previous post I wrote it went to home directory; my
>>>>>>
>>>>>>mistake).
>>>>>>
>>>>>>
>>>>>>
>>>>>>>I've no idea where it would go on Linux, but I am sure it can cache it.
>>>>>>>
>>>>>>>After this SVN will just use cached passwords providing you use the same
>>>>>>>user account (or do it for all accounts).
>>>>>>>
>>>>>>>There may be a better way of doing it, but I don't know it :-). This
>>>>>>
>>>>>>whole
>>>>>>
>>>>>>
>>>>>>
>>>>>>>SVN authentication could probably do with a couple of good howto's.
>>>>>>>
>>>>>>>Hope this helps
>>>>>>>
>>>>>>>Maciej
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>-----Original Message-----
>>>>>>>>From: Alejandro Nicolas Mascarell [mailto:anicola.lists@gmail.com]
>>>>>>>>Sent: Wednesday, 1 February 2006 5:04 PM
>>>>>>>>To: Maven Users List
>>>>>>>>Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
>>>>>>>>
>>>>>>>>I am speaking about the password to connect Subversion SCM, not the
>>>>>>
>>>>>>Maven
>>>>>>
>>>>>>
>>>>>>
>>>>>>>>organization repository. On the URL you can specify the user but not the
>>>>>>>>password (and probably you won't like to do so), but on the
>>>>>>>>settings.xmlfile as far as I know it is only possible to specify Maven
>>>>>>>>component
>>>>>>>>repository passwords.
>>>>>>>>
>>>>>>>>Alex
>>>>>>>>
>>>>>>>>On 2/1/06, Mark Struberg < struberg@yahoo.de> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>Hi Alejandro!
>>>>>>>>>
>>>>>>>>>I don't know if u ment this when u mentioned the
>>>>>>>>>settings.xml
>>>>>>>>>But i think u have to use a <server> section there.
>>>>>>>>>This is mostly common for all username/password
>>>>>>>>>thingies like tomcat:deploy and so on.
>>>>>>>>>
>>>>>>>>>Try to edit your ~/.m2/settings.xml and insert your
>>>>>>>>>settings according to the following configuration for
>>>>>>>>>tomcat. The svn configuration should be nearly the
>>>>>>>>>same:
>>>>>>>>>
>>>>>>>>><settings>
>>>>>>>>>...
>>>>>>>>><servers>
>>>>>>>>><server>
>>>>>>>>><id>tomcat</id>
>>>>>>>>><username>myTomcatUser</username>
>>>>>>>>><password>myTomcatPassword</password>
>>>>>>>>></server>
>>>>>>>>></servers>
>>>>>>>>>...
>>>>>>>>></settings>
>>>>>>>>>
>>>>>>>>>you then have to reference the server-id in your
>>>>>>>>>pom.xml:
>>>>>>>>> <plugins>
>>>>>>>>>...
>>>>>>>>>
>>>>>>>>>   <plugin>
>>>>>>>>>
>>>>>>>>>     <groupId>org.codehaus.mojo</groupId>
>>>>>>>>>
>>>>>>>>>     <artifactId>tomcat-maven-plugin</artifactId>
>>>>>>>>>
>>>>>>>>>     <version> 1.0-SNAPSHOT</version>
>>>>>>>>>
>>>>>>>>>     <configuration>
>>>>>>>>>       <server>tomcat</server>
>>>>>>>>>     </configuration>
>>>>>>>>>
>>>>>>>>>   </plugin>
>>>>>>>>>...
>>>>>>>>>
>>>>>>>>> </plugins>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>best regards,
>>>>>>>>>strub
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>--- Alejandro Nicolas Mascarell
>>>>>>>>><an...@gmail.com> schrieb:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>Does anyone know where is the SCM user password
>>>>>>>>>>provided when using SCM url?
>>>>>>>>>>As from the specification (and checked on
>>>>>>>>>>svnScmProviderRepository class)
>>>>>>>>>>the password is not gathered for the URL, as in the
>>>>>>>>>>case on CVS. I have
>>>>>>>>>>checked whether the password was taken from
>>>>>>>>>>settings.xml file but it seems
>>>>>>>>>>it is not the case.
>>>>>>>>>>
>>>>>>>>>>Thanks!
>>>>>>>>>>
>>>>>>>>>>Alex
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>___________________________________________________________
>>>>>>>>>Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
>>>>>>>>>
>>>>>>>>>---------------------------------------------------------------------
>>>>>>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>---------------------------------------------------------------------
>>>>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>---------------------------------------------------------------------
>>>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 
> 


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


Re: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password

Posted by Alejandro Nicolas Mascarell <an...@gmail.com>.
I've checked StarteamScmProviderRepository class and it seems StarTeam
gets the password from the URL as well:

    public String getFullUrl()
    {
        String fullUrl = getUser() + ":";

        if ( getPassword() != null )
        {
            fullUrl += getPassword();
        }

        fullUrl += "@" + getUrl();

        return fullUrl;
    }

Could you tell what class/classes look after regarding user/pass
resolution on SCM providers based on settings.xml file?

On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
> I'm not sure, perhaps in some plugins
>
> Emmanuel
>
> Alejandro Nicolas Mascarell a écrit :
> > Do you mean that user/password configuration it is not allowed for
> > Subversion on settings.xml in the current version?
> >
> > On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
> >
> >>if your scm url is : scm:provider:...scm_host:scm_port...
> >>
> >><server>
> >>   <id>scm_host:scm_port</id>
> >>   <username>your_username</username>
> >>   <password>your_password</password>
> >></server>
> >>
> >>if your scm url is : scm:provider:...scm_host...
> >>
> >><server>
> >>   <id>scm_host</id>
> >>   <username>your_username</username>
> >>   <password>your_password</password>
> >></server>
> >>
> >>
> >><server> is generally used for artifact repositories uploads, but it can be used for all features
> >>that require a server.
> >>
> >>I think starteam scm provider is the only one that support it. We'll allow it for all scm providers
> >>
> >>Emmanuel
> >>
> >>Alejandro Nicolas Mascarell a écrit :
> >>
> >>>Where on the settings.xml is it possible to define the user/pass for a SCM
> >>>provider? I know about the <server> section. But is it not this for Maven
> >>>artifacts repositories?  Is it not the <server><id> element used as the
> >>>reference from <repositories><repository><id> element?
> >>>
> >>>I'm using maven-release-plugin. Is there a way to know MOJO's paramenters
> >>>without browsing source code?  Thanks for all! ;)
> >>>
> >>>On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
> >>>
> >>>
> >>>>We don't allow password in scm svn url for security reason. It's allowed
> >>>>in scm cvs url for backward
> >>>>compatibility.
> >>>>
> >>>>What is the plugin you want to use with scm url?
> >>>>Actually, some scm providers can read password from settings.xml, but not
> >>>>all. We need to
> >>>>standardize it.
> >>>>
> >>>>If you can't define svn password by a mojo property (I'm pretty sure you
> >>>>can), you must register it
> >>>>by running a svn command from command line like this :
> >>>>
> >>>>svn --username your_username --password your_password command_to_execute
> >>>>
> >>>>Emmanuel
> >>>>
> >>>>Maciej Mastalarczuk a écrit :
> >>>>
> >>>>
> >>>>>Hi Alejandro,
> >>>>>
> >>>>>The way I got it working is through connecting to SVN using command-line
> >>>>>tool under the user account that is later used for builds. The username
> >>>>
> >>>>and
> >>>>
> >>>>
> >>>>>password is then cached somewhere (???). On Windows box it goes into
> >>>>>something like that:
> >>>>>
> >>>>>C:\Documents and Settings\maven\Application Data\Subversion
> >>>>>
> >>>>>(sorry, in my previous post I wrote it went to home directory; my
> >>>>
> >>>>mistake).
> >>>>
> >>>>
> >>>>>I've no idea where it would go on Linux, but I am sure it can cache it.
> >>>>>
> >>>>>After this SVN will just use cached passwords providing you use the same
> >>>>>user account (or do it for all accounts).
> >>>>>
> >>>>>There may be a better way of doing it, but I don't know it :-). This
> >>>>
> >>>>whole
> >>>>
> >>>>
> >>>>>SVN authentication could probably do with a couple of good howto's.
> >>>>>
> >>>>>Hope this helps
> >>>>>
> >>>>>Maciej
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>-----Original Message-----
> >>>>>>From: Alejandro Nicolas Mascarell [mailto:anicola.lists@gmail.com]
> >>>>>>Sent: Wednesday, 1 February 2006 5:04 PM
> >>>>>>To: Maven Users List
> >>>>>>Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
> >>>>>>
> >>>>>>I am speaking about the password to connect Subversion SCM, not the
> >>>>
> >>>>Maven
> >>>>
> >>>>
> >>>>>>organization repository. On the URL you can specify the user but not the
> >>>>>>password (and probably you won't like to do so), but on the
> >>>>>>settings.xmlfile as far as I know it is only possible to specify Maven
> >>>>>>component
> >>>>>>repository passwords.
> >>>>>>
> >>>>>>Alex
> >>>>>>
> >>>>>>On 2/1/06, Mark Struberg < struberg@yahoo.de> wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>Hi Alejandro!
> >>>>>>>
> >>>>>>>I don't know if u ment this when u mentioned the
> >>>>>>>settings.xml
> >>>>>>>But i think u have to use a <server> section there.
> >>>>>>>This is mostly common for all username/password
> >>>>>>>thingies like tomcat:deploy and so on.
> >>>>>>>
> >>>>>>>Try to edit your ~/.m2/settings.xml and insert your
> >>>>>>>settings according to the following configuration for
> >>>>>>>tomcat. The svn configuration should be nearly the
> >>>>>>>same:
> >>>>>>>
> >>>>>>><settings>
> >>>>>>>...
> >>>>>>><servers>
> >>>>>>><server>
> >>>>>>> <id>tomcat</id>
> >>>>>>> <username>myTomcatUser</username>
> >>>>>>> <password>myTomcatPassword</password>
> >>>>>>></server>
> >>>>>>></servers>
> >>>>>>>...
> >>>>>>></settings>
> >>>>>>>
> >>>>>>>you then have to reference the server-id in your
> >>>>>>>pom.xml:
> >>>>>>>  <plugins>
> >>>>>>>...
> >>>>>>>
> >>>>>>>    <plugin>
> >>>>>>>
> >>>>>>>      <groupId>org.codehaus.mojo</groupId>
> >>>>>>>
> >>>>>>>      <artifactId>tomcat-maven-plugin</artifactId>
> >>>>>>>
> >>>>>>>      <version> 1.0-SNAPSHOT</version>
> >>>>>>>
> >>>>>>>      <configuration>
> >>>>>>>        <server>tomcat</server>
> >>>>>>>      </configuration>
> >>>>>>>
> >>>>>>>    </plugin>
> >>>>>>>...
> >>>>>>>
> >>>>>>>  </plugins>
> >>>>>>>
> >>>>>>>
> >>>>>>>best regards,
> >>>>>>>strub
> >>>>>>>
> >>>>>>>
> >>>>>>>--- Alejandro Nicolas Mascarell
> >>>>>>><an...@gmail.com> schrieb:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>Does anyone know where is the SCM user password
> >>>>>>>>provided when using SCM url?
> >>>>>>>>As from the specification (and checked on
> >>>>>>>>svnScmProviderRepository class)
> >>>>>>>>the password is not gathered for the URL, as in the
> >>>>>>>>case on CVS. I have
> >>>>>>>>checked whether the password was taken from
> >>>>>>>>settings.xml file but it seems
> >>>>>>>>it is not the case.
> >>>>>>>>
> >>>>>>>>Thanks!
> >>>>>>>>
> >>>>>>>>Alex
> >>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>___________________________________________________________
> >>>>>>>Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
> >>>>>>>
> >>>>>>>---------------------------------------------------------------------
> >>>>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>>>>>For additional commands, e-mail: users-help@maven.apache.org
> >>>>>>>
> >>>>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>---------------------------------------------------------------------
> >>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>>>For additional commands, e-mail: users-help@maven.apache.org
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>>---------------------------------------------------------------------
> >>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>>For additional commands, e-mail: users-help@maven.apache.org
> >>>>
> >>>>
> >>>
> >>>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


Re: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password

Posted by Emmanuel Venisse <em...@venisse.net>.
I'm not sure, perhaps in some plugins

Emmanuel

Alejandro Nicolas Mascarell a écrit :
> Do you mean that user/password configuration it is not allowed for
> Subversion on settings.xml in the current version?
> 
> On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
> 
>>if your scm url is : scm:provider:...scm_host:scm_port...
>>
>><server>
>>   <id>scm_host:scm_port</id>
>>   <username>your_username</username>
>>   <password>your_password</password>
>></server>
>>
>>if your scm url is : scm:provider:...scm_host...
>>
>><server>
>>   <id>scm_host</id>
>>   <username>your_username</username>
>>   <password>your_password</password>
>></server>
>>
>>
>><server> is generally used for artifact repositories uploads, but it can be used for all features
>>that require a server.
>>
>>I think starteam scm provider is the only one that support it. We'll allow it for all scm providers
>>
>>Emmanuel
>>
>>Alejandro Nicolas Mascarell a écrit :
>>
>>>Where on the settings.xml is it possible to define the user/pass for a SCM
>>>provider? I know about the <server> section. But is it not this for Maven
>>>artifacts repositories?  Is it not the <server><id> element used as the
>>>reference from <repositories><repository><id> element?
>>>
>>>I'm using maven-release-plugin. Is there a way to know MOJO's paramenters
>>>without browsing source code?  Thanks for all! ;)
>>>
>>>On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
>>>
>>>
>>>>We don't allow password in scm svn url for security reason. It's allowed
>>>>in scm cvs url for backward
>>>>compatibility.
>>>>
>>>>What is the plugin you want to use with scm url?
>>>>Actually, some scm providers can read password from settings.xml, but not
>>>>all. We need to
>>>>standardize it.
>>>>
>>>>If you can't define svn password by a mojo property (I'm pretty sure you
>>>>can), you must register it
>>>>by running a svn command from command line like this :
>>>>
>>>>svn --username your_username --password your_password command_to_execute
>>>>
>>>>Emmanuel
>>>>
>>>>Maciej Mastalarczuk a écrit :
>>>>
>>>>
>>>>>Hi Alejandro,
>>>>>
>>>>>The way I got it working is through connecting to SVN using command-line
>>>>>tool under the user account that is later used for builds. The username
>>>>
>>>>and
>>>>
>>>>
>>>>>password is then cached somewhere (???). On Windows box it goes into
>>>>>something like that:
>>>>>
>>>>>C:\Documents and Settings\maven\Application Data\Subversion
>>>>>
>>>>>(sorry, in my previous post I wrote it went to home directory; my
>>>>
>>>>mistake).
>>>>
>>>>
>>>>>I've no idea where it would go on Linux, but I am sure it can cache it.
>>>>>
>>>>>After this SVN will just use cached passwords providing you use the same
>>>>>user account (or do it for all accounts).
>>>>>
>>>>>There may be a better way of doing it, but I don't know it :-). This
>>>>
>>>>whole
>>>>
>>>>
>>>>>SVN authentication could probably do with a couple of good howto's.
>>>>>
>>>>>Hope this helps
>>>>>
>>>>>Maciej
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>-----Original Message-----
>>>>>>From: Alejandro Nicolas Mascarell [mailto:anicola.lists@gmail.com]
>>>>>>Sent: Wednesday, 1 February 2006 5:04 PM
>>>>>>To: Maven Users List
>>>>>>Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
>>>>>>
>>>>>>I am speaking about the password to connect Subversion SCM, not the
>>>>
>>>>Maven
>>>>
>>>>
>>>>>>organization repository. On the URL you can specify the user but not the
>>>>>>password (and probably you won't like to do so), but on the
>>>>>>settings.xmlfile as far as I know it is only possible to specify Maven
>>>>>>component
>>>>>>repository passwords.
>>>>>>
>>>>>>Alex
>>>>>>
>>>>>>On 2/1/06, Mark Struberg < struberg@yahoo.de> wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Hi Alejandro!
>>>>>>>
>>>>>>>I don't know if u ment this when u mentioned the
>>>>>>>settings.xml
>>>>>>>But i think u have to use a <server> section there.
>>>>>>>This is mostly common for all username/password
>>>>>>>thingies like tomcat:deploy and so on.
>>>>>>>
>>>>>>>Try to edit your ~/.m2/settings.xml and insert your
>>>>>>>settings according to the following configuration for
>>>>>>>tomcat. The svn configuration should be nearly the
>>>>>>>same:
>>>>>>>
>>>>>>><settings>
>>>>>>>...
>>>>>>><servers>
>>>>>>><server>
>>>>>>> <id>tomcat</id>
>>>>>>> <username>myTomcatUser</username>
>>>>>>> <password>myTomcatPassword</password>
>>>>>>></server>
>>>>>>></servers>
>>>>>>>...
>>>>>>></settings>
>>>>>>>
>>>>>>>you then have to reference the server-id in your
>>>>>>>pom.xml:
>>>>>>>  <plugins>
>>>>>>>...
>>>>>>>
>>>>>>>    <plugin>
>>>>>>>
>>>>>>>      <groupId>org.codehaus.mojo</groupId>
>>>>>>>
>>>>>>>      <artifactId>tomcat-maven-plugin</artifactId>
>>>>>>>
>>>>>>>      <version> 1.0-SNAPSHOT</version>
>>>>>>>
>>>>>>>      <configuration>
>>>>>>>        <server>tomcat</server>
>>>>>>>      </configuration>
>>>>>>>
>>>>>>>    </plugin>
>>>>>>>...
>>>>>>>
>>>>>>>  </plugins>
>>>>>>>
>>>>>>>
>>>>>>>best regards,
>>>>>>>strub
>>>>>>>
>>>>>>>
>>>>>>>--- Alejandro Nicolas Mascarell
>>>>>>><an...@gmail.com> schrieb:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>Does anyone know where is the SCM user password
>>>>>>>>provided when using SCM url?
>>>>>>>>As from the specification (and checked on
>>>>>>>>svnScmProviderRepository class)
>>>>>>>>the password is not gathered for the URL, as in the
>>>>>>>>case on CVS. I have
>>>>>>>>checked whether the password was taken from
>>>>>>>>settings.xml file but it seems
>>>>>>>>it is not the case.
>>>>>>>>
>>>>>>>>Thanks!
>>>>>>>>
>>>>>>>>Alex
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>___________________________________________________________
>>>>>>>Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
>>>>>>>
>>>>>>>---------------------------------------------------------------------
>>>>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>>>>
>>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 
> 


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


Re: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password

Posted by Alejandro Nicolas Mascarell <an...@gmail.com>.
Do you mean that user/password configuration it is not allowed for
Subversion on settings.xml in the current version?

On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
> if your scm url is : scm:provider:...scm_host:scm_port...
>
> <server>
>    <id>scm_host:scm_port</id>
>    <username>your_username</username>
>    <password>your_password</password>
> </server>
>
> if your scm url is : scm:provider:...scm_host...
>
> <server>
>    <id>scm_host</id>
>    <username>your_username</username>
>    <password>your_password</password>
> </server>
>
>
> <server> is generally used for artifact repositories uploads, but it can be used for all features
> that require a server.
>
> I think starteam scm provider is the only one that support it. We'll allow it for all scm providers
>
> Emmanuel
>
> Alejandro Nicolas Mascarell a écrit :
> > Where on the settings.xml is it possible to define the user/pass for a SCM
> > provider? I know about the <server> section. But is it not this for Maven
> > artifacts repositories?  Is it not the <server><id> element used as the
> > reference from <repositories><repository><id> element?
> >
> > I'm using maven-release-plugin. Is there a way to know MOJO's paramenters
> > without browsing source code?  Thanks for all! ;)
> >
> > On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
> >
> >>We don't allow password in scm svn url for security reason. It's allowed
> >>in scm cvs url for backward
> >>compatibility.
> >>
> >>What is the plugin you want to use with scm url?
> >>Actually, some scm providers can read password from settings.xml, but not
> >>all. We need to
> >>standardize it.
> >>
> >>If you can't define svn password by a mojo property (I'm pretty sure you
> >>can), you must register it
> >>by running a svn command from command line like this :
> >>
> >>svn --username your_username --password your_password command_to_execute
> >>
> >>Emmanuel
> >>
> >>Maciej Mastalarczuk a écrit :
> >>
> >>>Hi Alejandro,
> >>>
> >>>The way I got it working is through connecting to SVN using command-line
> >>>tool under the user account that is later used for builds. The username
> >>
> >>and
> >>
> >>>password is then cached somewhere (???). On Windows box it goes into
> >>>something like that:
> >>>
> >>>C:\Documents and Settings\maven\Application Data\Subversion
> >>>
> >>>(sorry, in my previous post I wrote it went to home directory; my
> >>
> >>mistake).
> >>
> >>>I've no idea where it would go on Linux, but I am sure it can cache it.
> >>>
> >>>After this SVN will just use cached passwords providing you use the same
> >>>user account (or do it for all accounts).
> >>>
> >>>There may be a better way of doing it, but I don't know it :-). This
> >>
> >>whole
> >>
> >>>SVN authentication could probably do with a couple of good howto's.
> >>>
> >>>Hope this helps
> >>>
> >>>Maciej
> >>>
> >>>
> >>>
> >>>>-----Original Message-----
> >>>>From: Alejandro Nicolas Mascarell [mailto:anicola.lists@gmail.com]
> >>>>Sent: Wednesday, 1 February 2006 5:04 PM
> >>>>To: Maven Users List
> >>>>Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
> >>>>
> >>>>I am speaking about the password to connect Subversion SCM, not the
> >>
> >>Maven
> >>
> >>>>organization repository. On the URL you can specify the user but not the
> >>>>password (and probably you won't like to do so), but on the
> >>>>settings.xmlfile as far as I know it is only possible to specify Maven
> >>>>component
> >>>>repository passwords.
> >>>>
> >>>>Alex
> >>>>
> >>>>On 2/1/06, Mark Struberg < struberg@yahoo.de> wrote:
> >>>>
> >>>>
> >>>>>Hi Alejandro!
> >>>>>
> >>>>>I don't know if u ment this when u mentioned the
> >>>>>settings.xml
> >>>>>But i think u have to use a <server> section there.
> >>>>>This is mostly common for all username/password
> >>>>>thingies like tomcat:deploy and so on.
> >>>>>
> >>>>>Try to edit your ~/.m2/settings.xml and insert your
> >>>>>settings according to the following configuration for
> >>>>>tomcat. The svn configuration should be nearly the
> >>>>>same:
> >>>>>
> >>>>><settings>
> >>>>>...
> >>>>><servers>
> >>>>> <server>
> >>>>>  <id>tomcat</id>
> >>>>>  <username>myTomcatUser</username>
> >>>>>  <password>myTomcatPassword</password>
> >>>>> </server>
> >>>>></servers>
> >>>>>...
> >>>>></settings>
> >>>>>
> >>>>>you then have to reference the server-id in your
> >>>>>pom.xml:
> >>>>>   <plugins>
> >>>>>...
> >>>>>
> >>>>>     <plugin>
> >>>>>
> >>>>>       <groupId>org.codehaus.mojo</groupId>
> >>>>>
> >>>>>       <artifactId>tomcat-maven-plugin</artifactId>
> >>>>>
> >>>>>       <version> 1.0-SNAPSHOT</version>
> >>>>>
> >>>>>       <configuration>
> >>>>>         <server>tomcat</server>
> >>>>>       </configuration>
> >>>>>
> >>>>>     </plugin>
> >>>>>...
> >>>>>
> >>>>>   </plugins>
> >>>>>
> >>>>>
> >>>>>best regards,
> >>>>>strub
> >>>>>
> >>>>>
> >>>>>--- Alejandro Nicolas Mascarell
> >>>>><an...@gmail.com> schrieb:
> >>>>>
> >>>>>
> >>>>>
> >>>>>>Does anyone know where is the SCM user password
> >>>>>>provided when using SCM url?
> >>>>>>As from the specification (and checked on
> >>>>>>svnScmProviderRepository class)
> >>>>>>the password is not gathered for the URL, as in the
> >>>>>>case on CVS. I have
> >>>>>>checked whether the password was taken from
> >>>>>>settings.xml file but it seems
> >>>>>>it is not the case.
> >>>>>>
> >>>>>>Thanks!
> >>>>>>
> >>>>>>Alex
> >>>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>___________________________________________________________
> >>>>>Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
> >>>>>
> >>>>>---------------------------------------------------------------------
> >>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>>>For additional commands, e-mail: users-help@maven.apache.org
> >>>>>
> >>>>>
> >>>
> >>>
> >>>
> >>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>For additional commands, e-mail: users-help@maven.apache.org
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


Re: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password

Posted by Emmanuel Venisse <em...@venisse.net>.
if your scm url is : scm:provider:...scm_host:scm_port...

<server>
   <id>scm_host:scm_port</id>
   <username>your_username</username>
   <password>your_password</password>
</server>

if your scm url is : scm:provider:...scm_host...

<server>
   <id>scm_host</id>
   <username>your_username</username>
   <password>your_password</password>
</server>


<server> is generally used for artifact repositories uploads, but it can be used for all features 
that require a server.

I think starteam scm provider is the only one that support it. We'll allow it for all scm providers

Emmanuel

Alejandro Nicolas Mascarell a écrit :
> Where on the settings.xml is it possible to define the user/pass for a SCM
> provider? I know about the <server> section. But is it not this for Maven
> artifacts repositories?  Is it not the <server><id> element used as the
> reference from <repositories><repository><id> element?
> 
> I'm using maven-release-plugin. Is there a way to know MOJO's paramenters
> without browsing source code?  Thanks for all! ;)
> 
> On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
> 
>>We don't allow password in scm svn url for security reason. It's allowed
>>in scm cvs url for backward
>>compatibility.
>>
>>What is the plugin you want to use with scm url?
>>Actually, some scm providers can read password from settings.xml, but not
>>all. We need to
>>standardize it.
>>
>>If you can't define svn password by a mojo property (I'm pretty sure you
>>can), you must register it
>>by running a svn command from command line like this :
>>
>>svn --username your_username --password your_password command_to_execute
>>
>>Emmanuel
>>
>>Maciej Mastalarczuk a écrit :
>>
>>>Hi Alejandro,
>>>
>>>The way I got it working is through connecting to SVN using command-line
>>>tool under the user account that is later used for builds. The username
>>
>>and
>>
>>>password is then cached somewhere (???). On Windows box it goes into
>>>something like that:
>>>
>>>C:\Documents and Settings\maven\Application Data\Subversion
>>>
>>>(sorry, in my previous post I wrote it went to home directory; my
>>
>>mistake).
>>
>>>I've no idea where it would go on Linux, but I am sure it can cache it.
>>>
>>>After this SVN will just use cached passwords providing you use the same
>>>user account (or do it for all accounts).
>>>
>>>There may be a better way of doing it, but I don't know it :-). This
>>
>>whole
>>
>>>SVN authentication could probably do with a couple of good howto's.
>>>
>>>Hope this helps
>>>
>>>Maciej
>>>
>>>
>>>
>>>>-----Original Message-----
>>>>From: Alejandro Nicolas Mascarell [mailto:anicola.lists@gmail.com]
>>>>Sent: Wednesday, 1 February 2006 5:04 PM
>>>>To: Maven Users List
>>>>Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
>>>>
>>>>I am speaking about the password to connect Subversion SCM, not the
>>
>>Maven
>>
>>>>organization repository. On the URL you can specify the user but not the
>>>>password (and probably you won't like to do so), but on the
>>>>settings.xmlfile as far as I know it is only possible to specify Maven
>>>>component
>>>>repository passwords.
>>>>
>>>>Alex
>>>>
>>>>On 2/1/06, Mark Struberg < struberg@yahoo.de> wrote:
>>>>
>>>>
>>>>>Hi Alejandro!
>>>>>
>>>>>I don't know if u ment this when u mentioned the
>>>>>settings.xml
>>>>>But i think u have to use a <server> section there.
>>>>>This is mostly common for all username/password
>>>>>thingies like tomcat:deploy and so on.
>>>>>
>>>>>Try to edit your ~/.m2/settings.xml and insert your
>>>>>settings according to the following configuration for
>>>>>tomcat. The svn configuration should be nearly the
>>>>>same:
>>>>>
>>>>><settings>
>>>>>...
>>>>><servers>
>>>>> <server>
>>>>>  <id>tomcat</id>
>>>>>  <username>myTomcatUser</username>
>>>>>  <password>myTomcatPassword</password>
>>>>> </server>
>>>>></servers>
>>>>>...
>>>>></settings>
>>>>>
>>>>>you then have to reference the server-id in your
>>>>>pom.xml:
>>>>>   <plugins>
>>>>>...
>>>>>
>>>>>     <plugin>
>>>>>
>>>>>       <groupId>org.codehaus.mojo</groupId>
>>>>>
>>>>>       <artifactId>tomcat-maven-plugin</artifactId>
>>>>>
>>>>>       <version> 1.0-SNAPSHOT</version>
>>>>>
>>>>>       <configuration>
>>>>>         <server>tomcat</server>
>>>>>       </configuration>
>>>>>
>>>>>     </plugin>
>>>>>...
>>>>>
>>>>>   </plugins>
>>>>>
>>>>>
>>>>>best regards,
>>>>>strub
>>>>>
>>>>>
>>>>>--- Alejandro Nicolas Mascarell
>>>>><an...@gmail.com> schrieb:
>>>>>
>>>>>
>>>>>
>>>>>>Does anyone know where is the SCM user password
>>>>>>provided when using SCM url?
>>>>>>As from the specification (and checked on
>>>>>>svnScmProviderRepository class)
>>>>>>the password is not gathered for the URL, as in the
>>>>>>case on CVS. I have
>>>>>>checked whether the password was taken from
>>>>>>settings.xml file but it seems
>>>>>>it is not the case.
>>>>>>
>>>>>>Thanks!
>>>>>>
>>>>>>Alex
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>___________________________________________________________
>>>>>Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>>
>>>>>
>>>
>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> 


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


Re: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password

Posted by Alejandro Nicolas Mascarell <an...@gmail.com>.
Where on the settings.xml is it possible to define the user/pass for a SCM
provider? I know about the <server> section. But is it not this for Maven
artifacts repositories?  Is it not the <server><id> element used as the
reference from <repositories><repository><id> element?

I'm using maven-release-plugin. Is there a way to know MOJO's paramenters
without browsing source code?  Thanks for all! ;)

On 2/1/06, Emmanuel Venisse <em...@venisse.net> wrote:
>
> We don't allow password in scm svn url for security reason. It's allowed
> in scm cvs url for backward
> compatibility.
>
> What is the plugin you want to use with scm url?
> Actually, some scm providers can read password from settings.xml, but not
> all. We need to
> standardize it.
>
> If you can't define svn password by a mojo property (I'm pretty sure you
> can), you must register it
> by running a svn command from command line like this :
>
> svn --username your_username --password your_password command_to_execute
>
> Emmanuel
>
> Maciej Mastalarczuk a écrit :
> > Hi Alejandro,
> >
> > The way I got it working is through connecting to SVN using command-line
> > tool under the user account that is later used for builds. The username
> and
> > password is then cached somewhere (???). On Windows box it goes into
> > something like that:
> >
> > C:\Documents and Settings\maven\Application Data\Subversion
> >
> > (sorry, in my previous post I wrote it went to home directory; my
> mistake).
> >
> > I've no idea where it would go on Linux, but I am sure it can cache it.
> >
> > After this SVN will just use cached passwords providing you use the same
> > user account (or do it for all accounts).
> >
> > There may be a better way of doing it, but I don't know it :-). This
> whole
> > SVN authentication could probably do with a couple of good howto's.
> >
> > Hope this helps
> >
> > Maciej
> >
> >
> >>-----Original Message-----
> >>From: Alejandro Nicolas Mascarell [mailto:anicola.lists@gmail.com]
> >>Sent: Wednesday, 1 February 2006 5:04 PM
> >>To: Maven Users List
> >>Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
> >>
> >>I am speaking about the password to connect Subversion SCM, not the
> Maven
> >>organization repository. On the URL you can specify the user but not the
> >>password (and probably you won't like to do so), but on the
> >>settings.xmlfile as far as I know it is only possible to specify Maven
> >>component
> >>repository passwords.
> >>
> >>Alex
> >>
> >>On 2/1/06, Mark Struberg < struberg@yahoo.de> wrote:
> >>
> >>>Hi Alejandro!
> >>>
> >>>I don't know if u ment this when u mentioned the
> >>>settings.xml
> >>>But i think u have to use a <server> section there.
> >>>This is mostly common for all username/password
> >>>thingies like tomcat:deploy and so on.
> >>>
> >>>Try to edit your ~/.m2/settings.xml and insert your
> >>>settings according to the following configuration for
> >>>tomcat. The svn configuration should be nearly the
> >>>same:
> >>>
> >>><settings>
> >>>...
> >>><servers>
> >>>  <server>
> >>>   <id>tomcat</id>
> >>>   <username>myTomcatUser</username>
> >>>   <password>myTomcatPassword</password>
> >>>  </server>
> >>></servers>
> >>>...
> >>></settings>
> >>>
> >>>you then have to reference the server-id in your
> >>>pom.xml:
> >>>    <plugins>
> >>>...
> >>>
> >>>      <plugin>
> >>>
> >>>        <groupId>org.codehaus.mojo</groupId>
> >>>
> >>>        <artifactId>tomcat-maven-plugin</artifactId>
> >>>
> >>>        <version> 1.0-SNAPSHOT</version>
> >>>
> >>>        <configuration>
> >>>          <server>tomcat</server>
> >>>        </configuration>
> >>>
> >>>      </plugin>
> >>>...
> >>>
> >>>    </plugins>
> >>>
> >>>
> >>>best regards,
> >>>strub
> >>>
> >>>
> >>>--- Alejandro Nicolas Mascarell
> >>><an...@gmail.com> schrieb:
> >>>
> >>>
> >>>>Does anyone know where is the SCM user password
> >>>>provided when using SCM url?
> >>>>As from the specification (and checked on
> >>>>svnScmProviderRepository class)
> >>>>the password is not gathered for the URL, as in the
> >>>>case on CVS. I have
> >>>>checked whether the password was taken from
> >>>>settings.xml file but it seems
> >>>>it is not the case.
> >>>>
> >>>>Thanks!
> >>>>
> >>>>Alex
> >>>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>___________________________________________________________
> >>>Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
> >>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>For additional commands, e-mail: users-help@maven.apache.org
> >>>
> >>>
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password

Posted by Emmanuel Venisse <em...@venisse.net>.
We don't allow password in scm svn url for security reason. It's allowed in scm cvs url for backward 
compatibility.

What is the plugin you want to use with scm url?
Actually, some scm providers can read password from settings.xml, but not all. We need to 
standardize it.

If you can't define svn password by a mojo property (I'm pretty sure you can), you must register it 
by running a svn command from command line like this :

svn --username your_username --password your_password command_to_execute

Emmanuel

Maciej Mastalarczuk a écrit :
> Hi Alejandro,
> 
> The way I got it working is through connecting to SVN using command-line
> tool under the user account that is later used for builds. The username and
> password is then cached somewhere (???). On Windows box it goes into
> something like that:
> 
> C:\Documents and Settings\maven\Application Data\Subversion 
> 
> (sorry, in my previous post I wrote it went to home directory; my mistake).
> 
> I've no idea where it would go on Linux, but I am sure it can cache it.
> 
> After this SVN will just use cached passwords providing you use the same
> user account (or do it for all accounts).
> 
> There may be a better way of doing it, but I don't know it :-). This whole
> SVN authentication could probably do with a couple of good howto's.
> 
> Hope this helps
> 
> Maciej
> 
> 
>>-----Original Message-----
>>From: Alejandro Nicolas Mascarell [mailto:anicola.lists@gmail.com]
>>Sent: Wednesday, 1 February 2006 5:04 PM
>>To: Maven Users List
>>Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
>>
>>I am speaking about the password to connect Subversion SCM, not the Maven
>>organization repository. On the URL you can specify the user but not the
>>password (and probably you won't like to do so), but on the
>>settings.xmlfile as far as I know it is only possible to specify Maven
>>component
>>repository passwords.
>>
>>Alex
>>
>>On 2/1/06, Mark Struberg < struberg@yahoo.de> wrote:
>>
>>>Hi Alejandro!
>>>
>>>I don't know if u ment this when u mentioned the
>>>settings.xml
>>>But i think u have to use a <server> section there.
>>>This is mostly common for all username/password
>>>thingies like tomcat:deploy and so on.
>>>
>>>Try to edit your ~/.m2/settings.xml and insert your
>>>settings according to the following configuration for
>>>tomcat. The svn configuration should be nearly the
>>>same:
>>>
>>><settings>
>>>...
>>><servers>
>>>  <server>
>>>   <id>tomcat</id>
>>>   <username>myTomcatUser</username>
>>>   <password>myTomcatPassword</password>
>>>  </server>
>>></servers>
>>>...
>>></settings>
>>>
>>>you then have to reference the server-id in your
>>>pom.xml:
>>>    <plugins>
>>>...
>>>
>>>      <plugin>
>>>
>>>        <groupId>org.codehaus.mojo</groupId>
>>>
>>>        <artifactId>tomcat-maven-plugin</artifactId>
>>>
>>>        <version> 1.0-SNAPSHOT</version>
>>>
>>>        <configuration>
>>>          <server>tomcat</server>
>>>        </configuration>
>>>
>>>      </plugin>
>>>...
>>>
>>>    </plugins>
>>>
>>>
>>>best regards,
>>>strub
>>>
>>>
>>>--- Alejandro Nicolas Mascarell
>>><an...@gmail.com> schrieb:
>>>
>>>
>>>>Does anyone know where is the SCM user password
>>>>provided when using SCM url?
>>>>As from the specification (and checked on
>>>>svnScmProviderRepository class)
>>>>the password is not gathered for the URL, as in the
>>>>case on CVS. I have
>>>>checked whether the password was taken from
>>>>settings.xml file but it seems
>>>>it is not the case.
>>>>
>>>>Thanks!
>>>>
>>>>Alex
>>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>___________________________________________________________
>>>Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 
> 


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


RE: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password

Posted by Maciej Mastalarczuk <ma...@eblib.com>.
Hi Alejandro,

The way I got it working is through connecting to SVN using command-line
tool under the user account that is later used for builds. The username and
password is then cached somewhere (???). On Windows box it goes into
something like that:

C:\Documents and Settings\maven\Application Data\Subversion 

(sorry, in my previous post I wrote it went to home directory; my mistake).

I've no idea where it would go on Linux, but I am sure it can cache it.

After this SVN will just use cached passwords providing you use the same
user account (or do it for all accounts).

There may be a better way of doing it, but I don't know it :-). This whole
SVN authentication could probably do with a couple of good howto's.

Hope this helps

Maciej

> -----Original Message-----
> From: Alejandro Nicolas Mascarell [mailto:anicola.lists@gmail.com]
> Sent: Wednesday, 1 February 2006 5:04 PM
> To: Maven Users List
> Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
> 
> I am speaking about the password to connect Subversion SCM, not the Maven
> organization repository. On the URL you can specify the user but not the
> password (and probably you won't like to do so), but on the
> settings.xmlfile as far as I know it is only possible to specify Maven
> component
> repository passwords.
> 
> Alex
> 
> On 2/1/06, Mark Struberg < struberg@yahoo.de> wrote:
> >
> > Hi Alejandro!
> >
> > I don't know if u ment this when u mentioned the
> > settings.xml
> > But i think u have to use a <server> section there.
> > This is mostly common for all username/password
> > thingies like tomcat:deploy and so on.
> >
> > Try to edit your ~/.m2/settings.xml and insert your
> > settings according to the following configuration for
> > tomcat. The svn configuration should be nearly the
> > same:
> >
> > <settings>
> > ...
> > <servers>
> >   <server>
> >    <id>tomcat</id>
> >    <username>myTomcatUser</username>
> >    <password>myTomcatPassword</password>
> >   </server>
> > </servers>
> > ...
> > </settings>
> >
> > you then have to reference the server-id in your
> > pom.xml:
> >     <plugins>
> > ...
> >
> >       <plugin>
> >
> >         <groupId>org.codehaus.mojo</groupId>
> >
> >         <artifactId>tomcat-maven-plugin</artifactId>
> >
> >         <version> 1.0-SNAPSHOT</version>
> >
> >         <configuration>
> >           <server>tomcat</server>
> >         </configuration>
> >
> >       </plugin>
> > ...
> >
> >     </plugins>
> >
> >
> > best regards,
> > strub
> >
> >
> > --- Alejandro Nicolas Mascarell
> > <an...@gmail.com> schrieb:
> >
> > > Does anyone know where is the SCM user password
> > > provided when using SCM url?
> > > As from the specification (and checked on
> > > svnScmProviderRepository class)
> > > the password is not gathered for the URL, as in the
> > > case on CVS. I have
> > > checked whether the password was taken from
> > > settings.xml file but it seems
> > > it is not the case.
> > >
> > > Thanks!
> > >
> > > Alex
> > >
> >
> >
> >
> >
> >
> >
> >
> > ___________________________________________________________
> > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >



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


Re: SVN url password

Posted by Alejandro Nicolas Mascarell <an...@gmail.com>.
I am speaking about the password to connect Subversion SCM, not the Maven
organization repository. On the URL you can specify the user but not the
password (and probably you won't like to do so), but on the
settings.xmlfile as far as I know it is only possible to specify Maven
component
repository passwords.

Alex

On 2/1/06, Mark Struberg < struberg@yahoo.de> wrote:
>
> Hi Alejandro!
>
> I don't know if u ment this when u mentioned the
> settings.xml
> But i think u have to use a <server> section there.
> This is mostly common for all username/password
> thingies like tomcat:deploy and so on.
>
> Try to edit your ~/.m2/settings.xml and insert your
> settings according to the following configuration for
> tomcat. The svn configuration should be nearly the
> same:
>
> <settings>
> ...
> <servers>
>   <server>
>    <id>tomcat</id>
>    <username>myTomcatUser</username>
>    <password>myTomcatPassword</password>
>   </server>
> </servers>
> ...
> </settings>
>
> you then have to reference the server-id in your
> pom.xml:
>     <plugins>
> ...
>
>       <plugin>
>
>         <groupId>org.codehaus.mojo</groupId>
>
>         <artifactId>tomcat-maven-plugin</artifactId>
>
>         <version> 1.0-SNAPSHOT</version>
>
>         <configuration>
>           <server>tomcat</server>
>         </configuration>
>
>       </plugin>
> ...
>
>     </plugins>
>
>
> best regards,
> strub
>
>
> --- Alejandro Nicolas Mascarell
> <an...@gmail.com> schrieb:
>
> > Does anyone know where is the SCM user password
> > provided when using SCM url?
> > As from the specification (and checked on
> > svnScmProviderRepository class)
> > the password is not gathered for the URL, as in the
> > case on CVS. I have
> > checked whether the password was taken from
> > settings.xml file but it seems
> > it is not the case.
> >
> > Thanks!
> >
> > Alex
> >
>
>
>
>
>
>
>
> ___________________________________________________________
> Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

RE: SVN url password

Posted by Mark Struberg <st...@yahoo.de>.
Hi Alejandro!

I don't know if u ment this when u mentioned the
settings.xml
But i think u have to use a <server> section there.
This is mostly common for all username/password
thingies like tomcat:deploy and so on.

Try to edit your ~/.m2/settings.xml and insert your
settings according to the following configuration for
tomcat. The svn configuration should be nearly the
same:

<settings>
...
 <servers>
  <server>
   <id>tomcat</id>
   <username>myTomcatUser</username>
   <password>myTomcatPassword</password>
  </server>
 </servers>
...
</settings>

you then have to reference the server-id in your
pom.xml:
    <plugins>
...

      <plugin>

        <groupId>org.codehaus.mojo</groupId>

        <artifactId>tomcat-maven-plugin</artifactId>

        <version>1.0-SNAPSHOT</version>

        <configuration>
          <server>tomcat</server>
        </configuration>

      </plugin>
...

    </plugins>


best regards,
strub


--- Alejandro Nicolas Mascarell
<an...@gmail.com> schrieb:

> Does anyone know where is the SCM user password
> provided when using SCM url?
> As from the specification (and checked on
> svnScmProviderRepository class)
> the password is not gathered for the URL, as in the
> case on CVS. I have
> checked whether the password was taken from
> settings.xml file but it seems
> it is not the case.
> 
> Thanks!
> 
> Alex
> 



	

	
		
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

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


RE: [***SPAM*** Score/Req: 10.4/5.0] SVN url password

Posted by Maciej Mastalarczuk <ma...@eblib.com>.
Are you talking about SVN password or SCM password? 

The SCM will be picked up from settings.xml assuming you use the reporitory
id that matches the server defined in settings.xml. The SVN credentials can
be cached in your home directory under ".svn".

Regards,

Maciej

> -----Original Message-----
> From: Alejandro Nicolas Mascarell [mailto:anicola.lists@gmail.com]
> Sent: Wednesday, 1 February 2006 3:38 PM
> To: Maven Users List
> Subject: [***SPAM*** Score/Req: 10.4/5.0] SVN url password
> 
> Does anyone know where is the SCM user password provided when using SCM
> url?
> As from the specification (and checked on svnScmProviderRepository class)
> the password is not gathered for the URL, as in the case on CVS. I have
> checked whether the password was taken from settings.xml file but it seems
> it is not the case.
> 
> Thanks!
> 
> Alex



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