You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@continuum.apache.org by andy_rs <an...@googlemail.com> on 2006/06/21 21:48:26 UTC

cvs local checkot problem

I'm having trouble getting a multi project build running .... my local scm
url is ...

  <scm>
     <connection>
        scm:cvs|local|s:/home/cvsroot/|
     </connection>
  </scm>

The project pom defines a child project 'cache', which if i read the
continuum docs correctly will get appended to the scm url. However I think
the url is appending a leading slash to the module name, giving me something
like ...

scm:cvs|local|s:/home/cvsroot/|/cache

(I don't know this for certain as the resultant url isn't displayed in the
log). When it tries to checkout the project it issues the following command
to cvs...

cvs -z3 -f -d s:/home/cvsroot/ -q checkout -d 78 /cache

... which fails becuase of the leading slash in front of cache.

I can verify that the client fails on the comandline using this command. If
I 'correct' the command and remove the leading slash the command completes
as usual.

cvs -z3 -f -d s:/home/cvsroot/ -q checkout -d 78 cache

... the checkout works fine.

INcidentally I'm having a similar problem using the release plugin in maven
so they may be related. Might be something stupid I'm doing with the url.
I've tried sevreal iteration and have looked at the url examples on the
maven website - just doesn't seem to be happening :-(  Any help appreciated.

Cheers,

A.



--
View this message in context: http://www.nabble.com/cvs-local-checkot-problem-t1826113.html#a4981183
Sent from the Continuum - Users forum at Nabble.com.


Re: cvs local checkot problem

Posted by andy_rs <an...@googlemail.com>.
Great - I *think* I've just raised SCM-216. ( I say *think* as havent' used
the system yet). Let me know if you can't see it :-)

Many thanks,

A.
--
View this message in context: http://www.nabble.com/cvs-local-checkot-problem-t1826113.html#a4994733
Sent from the Continuum - Users forum at Nabble.com.


Re: cvs local checkot problem

Posted by Emmanuel Venisse <em...@venisse.net>.
it seems to be a pb in maven-scm cvs provider. Can you file an issue? and I'll look at it.

The cvs provider should remove the slash at the begin of the module name.

Emmanuel

andy_rs a écrit :
> Actually that's the URL I assume is being produced by continuum when I try to
> add a multi project pom ( I don't know for sure) ... The continuum docs
> state that the module name gets appended to the scm url of the parent
> project. Since I have specified this in the parent pom..
> 
>  scm:cvs|local|s:/home/cvsroot/|
> 
> and given the resultant cvs command has a leading slash in the module name I
> just assumed that an 'effective' scm url of this form is being generated (I
> may be wrong though).
> 
> I've tried removing the trailing slash after cvsroot as well with no effect,
> and if I omit the trailing pipe character then continuum complains about an
> invalid scm url :-(
> 
> Incidentally I can get around this problem by manually adding scm urls to
> the child poms that remove the slash - i.e. 
> 
> scm:cvs|local|s:/home/cvsroot|cache
> 
> ... and adding the child poms individually. Instead of going for a
> multiproject import.
> 
> However it seem to be a very un-mavenic way of doing things ... it won't
> scale well as the number of modules grows It should be possibe to specify
> the bulk of the information in the parent pom and only the project specifics
> in the child right?
> 
> Thanks for continuing to help tho - is there anything else you think I can
> try? I'm running out of things I can think of. :-(
> 
> Cheers,
> 
> A.
> 
> 
> 
>  
> --
> View this message in context: http://www.nabble.com/cvs-local-checkot-problem-t1826113.html#a4992989
> Sent from the Continuum - Users forum at Nabble.com.
> 
> 
> 
> 


Re: cvs local checkot problem

Posted by andy_rs <an...@googlemail.com>.
Actually that's the URL I assume is being produced by continuum when I try to
add a multi project pom ( I don't know for sure) ... The continuum docs
state that the module name gets appended to the scm url of the parent
project. Since I have specified this in the parent pom..

 scm:cvs|local|s:/home/cvsroot/|

and given the resultant cvs command has a leading slash in the module name I
just assumed that an 'effective' scm url of this form is being generated (I
may be wrong though).

I've tried removing the trailing slash after cvsroot as well with no effect,
and if I omit the trailing pipe character then continuum complains about an
invalid scm url :-(

Incidentally I can get around this problem by manually adding scm urls to
the child poms that remove the slash - i.e. 

scm:cvs|local|s:/home/cvsroot|cache

... and adding the child poms individually. Instead of going for a
multiproject import.

However it seem to be a very un-mavenic way of doing things ... it won't
scale well as the number of modules grows It should be possibe to specify
the bulk of the information in the parent pom and only the project specifics
in the child right?

Thanks for continuing to help tho - is there anything else you think I can
try? I'm running out of things I can think of. :-(

Cheers,

A.



 
--
View this message in context: http://www.nabble.com/cvs-local-checkot-problem-t1826113.html#a4992989
Sent from the Continuum - Users forum at Nabble.com.


Re: cvs local checkot problem

Posted by Emmanuel Venisse <em...@venisse.net>.
oh, you use cvs with local procider, I misunderstood.

Why do you have a "/" before cache in your scm url scm:cvs|local|s:/home/cvsroot/|/cache"

try to remove it.

Emmanuel

andy_rs a écrit :
> Thanks but I don't think this is the right answer.
> 
> I tried as you suggest but alll the local filesystem method seems to do is
> do a straight file copy of the files. In my case the RCS files in my CVS
> repository have been copied without being 'processed' by CVS. I can see in
> my continuum webpage that the 'working copy' contains a set of RCS files.
> Maven can't make any sense of the RCS files and so doesn't get anywhere.
> 
> What I'm trying to do is use cvs in 'local' mode, which has a slightly
> different url format..
> 
> http://maven.apache.org/scm/cvs.html
> 
> I believe what I was trying is the correct format. I need to use the pipe
> delimiter syntax to get around the colon in the drive letter ( s: )
> 
> I wasn't aware of this 'local filesystem' method though so I'll have to
> watch out for it :-) 
> 
> I guess my original mail still stands though - any ideas?
> 
> Cheers,
> 
> A.
> 
> --
> View this message in context: http://www.nabble.com/cvs-local-checkot-problem-t1826113.html#a4983598
> Sent from the Continuum - Users forum at Nabble.com.
> 
> 
> 
> 


Re: cvs local checkot problem

Posted by andy_rs <an...@googlemail.com>.
Thanks but I don't think this is the right answer.

I tried as you suggest but alll the local filesystem method seems to do is
do a straight file copy of the files. In my case the RCS files in my CVS
repository have been copied without being 'processed' by CVS. I can see in
my continuum webpage that the 'working copy' contains a set of RCS files.
Maven can't make any sense of the RCS files and so doesn't get anywhere.

What I'm trying to do is use cvs in 'local' mode, which has a slightly
different url format..

http://maven.apache.org/scm/cvs.html

I believe what I was trying is the correct format. I need to use the pipe
delimiter syntax to get around the colon in the drive letter ( s: )

I wasn't aware of this 'local filesystem' method though so I'll have to
watch out for it :-) 

I guess my original mail still stands though - any ideas?

Cheers,

A.

--
View this message in context: http://www.nabble.com/cvs-local-checkot-problem-t1826113.html#a4983598
Sent from the Continuum - Users forum at Nabble.com.


Re: cvs local checkot problem

Posted by Emmanuel Venisse <em...@venisse.net>.
it use cvs command line because you use it in your scm url "scm:cvs..."

your scm url doesn't respect the formal of scm local provider : http://maven.apache.org/scm/local.html

Emmanuel

andy_rs a écrit :
> I'm having trouble getting a multi project build running .... my local scm
> url is ...
> 
>   <scm>
>      <connection>
>         scm:cvs|local|s:/home/cvsroot/|
>      </connection>
>   </scm>
> 
> The project pom defines a child project 'cache', which if i read the
> continuum docs correctly will get appended to the scm url. However I think
> the url is appending a leading slash to the module name, giving me something
> like ...
> 
> scm:cvs|local|s:/home/cvsroot/|/cache
> 
> (I don't know this for certain as the resultant url isn't displayed in the
> log). When it tries to checkout the project it issues the following command
> to cvs...
> 
> cvs -z3 -f -d s:/home/cvsroot/ -q checkout -d 78 /cache
> 
> ... which fails becuase of the leading slash in front of cache.
> 
> I can verify that the client fails on the comandline using this command. If
> I 'correct' the command and remove the leading slash the command completes
> as usual.
> 
> cvs -z3 -f -d s:/home/cvsroot/ -q checkout -d 78 cache
> 
> ... the checkout works fine.
> 
> INcidentally I'm having a similar problem using the release plugin in maven
> so they may be related. Might be something stupid I'm doing with the url.
> I've tried sevreal iteration and have looked at the url examples on the
> maven website - just doesn't seem to be happening :-(  Any help appreciated.
> 
> Cheers,
> 
> A.
> 
> 
> 
> --
> View this message in context: http://www.nabble.com/cvs-local-checkot-problem-t1826113.html#a4981183
> Sent from the Continuum - Users forum at Nabble.com.
> 
> 
> 
>