You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jeff Mutonho <ej...@gmail.com> on 2006/03/22 11:03:22 UTC

Invalid maven.scm.url

I have my scm url configured as shown below (following the example at
http://maven.apache.org/scm/cvs.html)

maven.scm.url=scm:cvs:pserver:jeffm:mypassword@165.11.12.13::/var/lib/cvsroot:portalproject

but my build is failing with the message "The scm url is invalid."
I left the port number blank  as I'm connecting using the default
port.What am I doing wrong?




"All I ask is a chance to prove that money can't make me happy."

Jeff
GoogleTalk : ejbengine
Skype        : ejbengine
Registered Linux user number 366042

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


Re: Invalid maven.scm.url

Posted by Arnaud HERITIER <ah...@gmail.com>.
I didn't use the scm plugin for cvs for a long time.
This problem is due to the fact that you must install a cvs client on your
machine and put it on your PATH
The current SCM plugin for maven 1 (i'm not sure for maven 2) isn't yet a
full java component. It's only a wrapper above the cvs executable.

What you need to do for cvs actually is (if my memory is good) :
- install cvs on your machine
- Add it in your path
- logon to the server with cvs login -D....

After that you can use maven to do a checkout, an update ...

Arnaud

On 3/22/06, Jeff Mutonho <ej...@gmail.com> wrote:
>
> Yeah I did...commented it out.
> In the pom I took out the password field and didnt get the
> "The scm url is invalid." error message but instead got  :
>
> [echo] Checking out
> scm:cvs:pserver:jeffm@165.11.12.13:/var/lib/cvsroot:portalproject
> Provider message:
> The cvs command failed.
> Command output:
> 'cvs' is not recognized as an internal or external command,
> operable program or batch file.
>
>
> BUILD FAILED
> File...... C:\Documents and Settings\mutonhj\.maven\cache\maven-
> scm-plugin-1.5\p
> lugin.jelly
> Element... scm:checkout
> Line...... 110
> Column.... -1
> Error!
> Total time   : 4 seconds
> Finished at  : Wednesday, March 22, 2006 1:35:25 PM GMT+02:00
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Invalid maven.scm.url

Posted by Jeff Mutonho <ej...@gmail.com>.
The manual login sorted things out :).Thanx.However , the checking out
does not spit out info on what it's checking like what used to be the
case with 1.0.Is there something that needs to be set in order to make
it verbose?






--
"All I ask is a chance to prove that money can't make me happy."

Jeff

GoogleTalk : ejbengine
Skype        : ejbengine
Registered Linux user number 366042

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


Re: Invalid maven.scm.url

Posted by Arnaud HERITIER <ah...@gmail.com>.
On 3/22/06, Jeff Mutonho <ej...@gmail.com> wrote:
>
> Ok , I hear you :)
> Anyway I had indeed installed CVSNT and added the exe to my path  ,
> got the same error message.Just that all my maven experience has been
> on linux and don't remember getting as much grief , hence the choice
> to dump xp.


it's because cvs is bundled in your linux distrib and you certainly logged
to the server manually before ;-)

I'll try the manual login and see what happens


it'll work (i hope ;-) )

Re: Invalid maven.scm.url

Posted by Jeff Mutonho <ej...@gmail.com>.
Ok , I hear you :)
Anyway I had indeed installed CVSNT and added the exe to my path  ,
got the same error message.Just that all my maven experience has been
on linux and don't remember getting as much grief , hence the choice
to dump xp.
I'll try the manual login and see what happens

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


Re: Invalid maven.scm.url

Posted by Arnaud HERITIER <ah...@gmail.com>.
As I said previously, you need to logon manually to the cvs server with the
cvs executable.
The current maven plugin doesn't handle the logon part :-(
This is why your password isn't used.
You have to logon to the cvs server only the first time. It's automatically
stored in your local .cvspass file.
After that you don't have to logon.

Arnaud

(for CVSNT you need to unextract it somewhere and add it in your path.
that's all  - it's not really hard ;-) )


On 3/22/06, Jeff Mutonho <ej...@gmail.com> wrote:
>
> I'm moving the build environment to a linux machine(FC4).Didn't wanna
> be bothered with installing CVSNT.However I tried my
>
> <repository>
>         <connection>scm:cvs:pserver:jeffm@165.X.Y.Z
> :/var/lib/cvsroot:portalproject</connection>
>    </repository>
>
> And the error message  on linux correctly tells me :
>
> scm:find-connection:
>     [echo] Using connection:
> scm:cvs:pserver:jeffm@165.X.Y.Z:/var/lib/cvsroot:portalproject
>
> scm:checkout:
>     [echo] Checking out
> scm:cvs:pserver:jeffm@165.X.Y.Z:/var/lib/cvsroot:portalproject
> Provider message:
> The cvs command failed.
> Command output:
> cvs checkout: authorization failed: server 165.X.Y.Z rejected access
> to /var/lib/cvsroot for user jeffm
> cvs checkout: used empty password; try "cvs login" with a real password
>
> BUILD FAILED
> File...... /home/mutonhj/.maven/cache/maven-scm-plugin-1.5/plugin.jelly
> Element... scm:checkout
> Line...... 110
> Column.... -1
> Error!
> Total time   : 8 seconds
> Finished at  : Wednesday, March 22, 2006 2:24:55 PM SAST
>
>
> , which makes sense , since I OMMITTED the password in the scm url.
>
> However , I changed the scm url to include my password as follows:
>
> <repository>
>         <connection>scm:cvs:pserver:jeffm:<mypassword>@
> 165.X.Y.Z:/var/lib/cvsroot:portalproject</connection>
>    </repository>
>
> And I get the error message :
>
> [echo] Using connection:
> scm:cvs:pserver:jeffm:<mypassword>@
> 165.X.Y.Z:/var/lib/cvsroot:portalproject
>
> scm:checkout:
>     [echo] Checking out
> scm:cvs:pserver:jeffm:<mypassword>@
> 165.X.Y.Z:/var/lib/cvsroot:portalproject
>
> BUILD FAILED
> File...... /home/mutonhj/.maven/cache/maven-scm-plugin-1.5/plugin.jelly
> Element... scm:checkout
> Line...... 110
> Column.... -1
> The scm url is invalid.
> Total time   : 8 seconds
> Finished at  : Wednesday, March 22, 2006 2:21:33 PM SAST
>
> What's wrong with my scm url?It looks "normal" to me :)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Invalid maven.scm.url

Posted by Jeff Mutonho <ej...@gmail.com>.
I'm moving the build environment to a linux machine(FC4).Didn't wanna
be bothered with installing CVSNT.However I tried my

<repository>
        <connection>scm:cvs:pserver:jeffm@165.X.Y.Z:/var/lib/cvsroot:portalproject</connection>
   </repository>

And the error message  on linux correctly tells me :

scm:find-connection:
    [echo] Using connection:
scm:cvs:pserver:jeffm@165.X.Y.Z:/var/lib/cvsroot:portalproject

scm:checkout:
    [echo] Checking out
scm:cvs:pserver:jeffm@165.X.Y.Z:/var/lib/cvsroot:portalproject
Provider message:
The cvs command failed.
Command output:
cvs checkout: authorization failed: server 165.X.Y.Z rejected access
to /var/lib/cvsroot for user jeffm
cvs checkout: used empty password; try "cvs login" with a real password

BUILD FAILED
File...... /home/mutonhj/.maven/cache/maven-scm-plugin-1.5/plugin.jelly
Element... scm:checkout
Line...... 110
Column.... -1
Error!
Total time   : 8 seconds
Finished at  : Wednesday, March 22, 2006 2:24:55 PM SAST


 , which makes sense , since I OMMITTED the password in the scm url.

However , I changed the scm url to include my password as follows:

<repository>
        <connection>scm:cvs:pserver:jeffm:<mypassword>@165.X.Y.Z:/var/lib/cvsroot:portalproject</connection>
   </repository>

And I get the error message :

[echo] Using connection:
scm:cvs:pserver:jeffm:<mypassword>@165.X.Y.Z:/var/lib/cvsroot:portalproject

scm:checkout:
    [echo] Checking out
scm:cvs:pserver:jeffm:<mypassword>@165.X.Y.Z:/var/lib/cvsroot:portalproject

BUILD FAILED
File...... /home/mutonhj/.maven/cache/maven-scm-plugin-1.5/plugin.jelly
Element... scm:checkout
Line...... 110
Column.... -1
The scm url is invalid.
Total time   : 8 seconds
Finished at  : Wednesday, March 22, 2006 2:21:33 PM SAST

What's wrong with my scm url?It looks "normal" to me :)

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


Re: Invalid maven.scm.url

Posted by Emmanuel Venisse <em...@venisse.net>.
do you have cvs in your path?

Emmanuel

Jeff Mutonho a écrit :
> Yeah I did...commented it out.
> In the pom I took out the password field and didnt get the
> "The scm url is invalid." error message but instead got  :
> 
>  [echo] Checking out
> scm:cvs:pserver:jeffm@165.11.12.13:/var/lib/cvsroot:portalproject
> Provider message:
> The cvs command failed.
> Command output:
> 'cvs' is not recognized as an internal or external command,
> operable program or batch file.
> 
> 
> BUILD FAILED
> File...... C:\Documents and Settings\mutonhj\.maven\cache\maven-scm-plugin-1.5\p
> lugin.jelly
> Element... scm:checkout
> Line...... 110
> Column.... -1
> Error!
> Total time   : 4 seconds
> Finished at  : Wednesday, March 22, 2006 1:35:25 PM GMT+02:00
> 
> ---------------------------------------------------------------------
> 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: Invalid maven.scm.url

Posted by Arnaud HERITIER <ah...@gmail.com>.
Sorry for that, I thought it was well documented but effectively I took a
look at it and it's not very intuitive

Arnaud

On 3/22/06, Jeff Mutonho <ej...@gmail.com> wrote:
>
> I'm failing to understand how I've spent the last 3 hours just trying
> to checkout a project from CVS
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Invalid maven.scm.url

Posted by Jeff Mutonho <ej...@gmail.com>.
I'm failing to understand how I've spent the last 3 hours just trying
to checkout a project from CVS

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


Re: Invalid maven.scm.url

Posted by Jeff Mutonho <ej...@gmail.com>.
Yeah I did...commented it out.
In the pom I took out the password field and didnt get the
"The scm url is invalid." error message but instead got  :

 [echo] Checking out
scm:cvs:pserver:jeffm@165.11.12.13:/var/lib/cvsroot:portalproject
Provider message:
The cvs command failed.
Command output:
'cvs' is not recognized as an internal or external command,
operable program or batch file.


BUILD FAILED
File...... C:\Documents and Settings\mutonhj\.maven\cache\maven-scm-plugin-1.5\p
lugin.jelly
Element... scm:checkout
Line...... 110
Column.... -1
Error!
Total time   : 4 seconds
Finished at  : Wednesday, March 22, 2006 1:35:25 PM GMT+02:00

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


Re: Invalid maven.scm.url

Posted by Arnaud HERITIER <ah...@gmail.com>.
Did you remove the property maven.scm.url ?

Arnaud

On 3/22/06, Jeff Mutonho <ej...@gmail.com> wrote:
>
> But still getting the same error message saying
>
> Element... scm:checkout
> Line...... 110
> Column.... -1
> The scm url is invalid.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Invalid maven.scm.url

Posted by Jeff Mutonho <ej...@gmail.com>.
But still getting the same error message saying

Element... scm:checkout
Line...... 110
Column.... -1
The scm url is invalid.

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


Re: Invalid maven.scm.url

Posted by Jeff Mutonho <ej...@gmail.com>.
 Have added  this to project.xml

 <repository>
<connection>scm:cvs:pserver:jeffm:mypassword@165.11.12.13:/var/lib/cvsroot:portalproject</connection>
</repository>

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


Re: Invalid maven.scm.url

Posted by Arnaud HERITIER <ah...@gmail.com>.
you need to specify it in your POM

Arnaud

On 3/22/06, Jeff Mutonho <ej...@gmail.com> wrote:
>
> I'm specifying that url in my project's project.properties
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Invalid maven.scm.url

Posted by Jeff Mutonho <ej...@gmail.com>.
I'm specifying that url in my project's project.properties

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


Re: Invalid maven.scm.url

Posted by Jeff Mutonho <ej...@gmail.com>.
I've changed it to
maven.scm.url=scm:cvs:pserver:jeffm:mypassword@165.11.12.13:/var/lib/cvsroot:portalproject

and still getting the same :

BUILD FAILED
File...... C:\Documents and Settings\jeffm\.maven\cache\maven-scm-plugin-1.5\p
lugin.jelly
Element... scm:checkout
Line...... 110
Column.... -1
The scm url is invalid.
Total time   : 4 seconds
Finished at  : Wednesday, March 22, 2006 12:37:15 PM GMT+02:00

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


Re: Invalid maven.scm.url

Posted by Emmanuel Venisse <em...@venisse.net>.
If you use the default port, you must replace "::" by ":"

Emmanuel

Jeff Mutonho a écrit :
> I'm using the default cvs port.I checked the format that Eclipse uses
> and it does not specify the port.
> (By the way I'm using maven 1.1)
> 
> On 3/22/06, Arnaud HERITIER <ah...@gmail.com> wrote:
> 
>>165.11.12.13::/var/lib/cvsroot
>>
>>Why is there :: ?
>>
>>Arnaud
>>
>>On 3/22/06, Jeff Mutonho <ej...@gmail.com> wrote:
>>
>>>I have my scm url configured as shown below (following the example at
>>>http://maven.apache.org/scm/cvs.html)
>>>
>>>maven.scm.url=scm:cvs:pserver:jeffm:mypassword@165.11.12.13
>>>::/var/lib/cvsroot:portalproject
>>>
>>>but my build is failing with the message "The scm url is invalid."
>>>I left the port number blank  as I'm connecting using the default
>>>port.What am I doing wrong?
>>>
>>>
>>>
>>>
>>>"All I ask is a chance to prove that money can't make me happy."
>>>
>>>Jeff
>>>GoogleTalk : ejbengine
>>>Skype        : ejbengine
>>>Registered Linux user number 366042
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>>
> 
> 
> --
> "All I ask is a chance to prove that money can't make me happy."
> 
> Jeff  Mutonho
> Java/J2EE Developer
> mob    : + 27 82 907 6420
> 
> GoogleTalk : ejbengine
> Skype        : ejbengine
> Registered Linux user number 366042
> 
> ---------------------------------------------------------------------
> 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: Invalid maven.scm.url

Posted by Jeff Mutonho <ej...@gmail.com>.
I'm using the default cvs port.I checked the format that Eclipse uses
and it does not specify the port.
(By the way I'm using maven 1.1)

On 3/22/06, Arnaud HERITIER <ah...@gmail.com> wrote:
> 165.11.12.13::/var/lib/cvsroot
>
> Why is there :: ?
>
> Arnaud
>
> On 3/22/06, Jeff Mutonho <ej...@gmail.com> wrote:
> >
> > I have my scm url configured as shown below (following the example at
> > http://maven.apache.org/scm/cvs.html)
> >
> > maven.scm.url=scm:cvs:pserver:jeffm:mypassword@165.11.12.13
> > ::/var/lib/cvsroot:portalproject
> >
> > but my build is failing with the message "The scm url is invalid."
> > I left the port number blank  as I'm connecting using the default
> > port.What am I doing wrong?
> >
> >
> >
> >
> > "All I ask is a chance to prove that money can't make me happy."
> >
> > Jeff
> > GoogleTalk : ejbengine
> > Skype        : ejbengine
> > Registered Linux user number 366042
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>


--
"All I ask is a chance to prove that money can't make me happy."

Jeff  Mutonho
Java/J2EE Developer
mob    : + 27 82 907 6420

GoogleTalk : ejbengine
Skype        : ejbengine
Registered Linux user number 366042

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


Re: Invalid maven.scm.url

Posted by Arnaud HERITIER <ah...@gmail.com>.
165.11.12.13::/var/lib/cvsroot

Why is there :: ?

Arnaud

On 3/22/06, Jeff Mutonho <ej...@gmail.com> wrote:
>
> I have my scm url configured as shown below (following the example at
> http://maven.apache.org/scm/cvs.html)
>
> maven.scm.url=scm:cvs:pserver:jeffm:mypassword@165.11.12.13
> ::/var/lib/cvsroot:portalproject
>
> but my build is failing with the message "The scm url is invalid."
> I left the port number blank  as I'm connecting using the default
> port.What am I doing wrong?
>
>
>
>
> "All I ask is a chance to prove that money can't make me happy."
>
> Jeff
> GoogleTalk : ejbengine
> Skype        : ejbengine
> Registered Linux user number 366042
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>