You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by wqi <wq...@ic.sunysb.edu> on 2004/12/21 21:53:08 UTC
questions about cvs and maven
Hi Everyone,
I'm a little confused on how cvs is being used in maven, I really
appreciate it if anyone can clarify a few things for me. For my project,
we had an ant script that first checkout a module from our cvs
repository to a build directory and then executed the build process from
that directory. Does Maven also work this way?
I had placed similar codes like the following into my project.xml. I'm
not sure what these lines exactly does.
<repository>
<connection>
scm:cvs:pserver:mparikh@milindparikh.com:/src:maven/project4
</connection>
</repository>
In addition, do we use the folloiwng command to check out a module from
the cvs repository?
maven scm:checkout-project
-Dmaven.scm.method=cvs
-Dmaven.scm.cvs.module=project4
-Dmaven.scm.cvs.root=:pserver:mparikh@milindparikh:/home/cvspublic
-Dmaven.scm.checkout.dir=.
Looking forward to your reply,
Thanks a lot,
-Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: questions about cvs and maven
Posted by Milind Parikh <mi...@hotmail.com>.
To bootstrap your project (i.e. the first checkout of a real project) , use
:
maven scm:checkout-project
-Dmaven.scm.method=cvs
-Dmaven.scm.cvs.module=project4
-Dmaven.scm.cvs.root=:pserver:mparikh@milindparikh:/home/cvspublic
-Dmaven.scm.checkout.dir=.
For this to really work with a secure password, you need to have a cvspass
file. I discuss how to create a cvspass in my book (which you are clearly
refering to) at www.milindparikh.com. The scm plugin does all the work. No
more ant scripts to bootstrap the checkout process.
Once you have the project.xml, then you make the project SCCS aware (CVS) by
the inclusion of
<repository>
<connection>
scm:cvs:pserver:mparikh@milindparikh.com:/src:maven/project4
</connection>
</repository>
Once a project is SCCS aware, it can then generate all kinds of interesting
reports as mentioned in my book.
Hope that this helps!
-- Milind
>From: Brett Porter <br...@gmail.com>
>Reply-To: Brett Porter <br...@gmail.com>
>To: Maven Users List <us...@maven.apache.org>, wqi@ic.sunysb.edu
>Subject: Re: questions about cvs and maven
>Date: Wed, 22 Dec 2004 09:11:21 +1100
>
> > I'm a little confused on how cvs is being used in maven, I really
> > appreciate it if anyone can clarify a few things for me. For my project,
> > we had an ant script that first checkout a module from our cvs
> > repository to a build directory and then executed the build process from
> > that directory. Does Maven also work this way?
>
>It doesn't have to, but can.
>
>Try:
>maven scm:perform-release
>
> > I had placed similar codes like the following into my project.xml. I'm
> > not sure what these lines exactly does.
> > <repository>
> > <connection>
> > scm:cvs:pserver:mparikh@milindparikh.com:/src:maven/project4
> > </connection>
> > </repository>
>
>It is used for the scm goals, and also for generating the changelog
>reports, and so on.
>
> > In addition, do we use the folloiwng command to check out a module from
> > the cvs repository?
> > maven scm:checkout-project
> > -Dmaven.scm.method=cvs
> > -Dmaven.scm.cvs.module=project4
> > -Dmaven.scm.cvs.root=:pserver:mparikh@milindparikh:/home/cvspublic
> > -Dmaven.scm.checkout.dir=.
>
>Yes, though the next version will use a shorter version such as:
>maven scm:checkout
>-Dmaven.scm.url=scm:cvs:pserver:mparikh@milindparikh:/home/cvspublic:project4
>
>Cheers,
>Brett
>
>---------------------------------------------------------------------
>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: questions about cvs and maven
Posted by Brett Porter <br...@gmail.com>.
> I'm a little confused on how cvs is being used in maven, I really
> appreciate it if anyone can clarify a few things for me. For my project,
> we had an ant script that first checkout a module from our cvs
> repository to a build directory and then executed the build process from
> that directory. Does Maven also work this way?
It doesn't have to, but can.
Try:
maven scm:perform-release
> I had placed similar codes like the following into my project.xml. I'm
> not sure what these lines exactly does.
> <repository>
> <connection>
> scm:cvs:pserver:mparikh@milindparikh.com:/src:maven/project4
> </connection>
> </repository>
It is used for the scm goals, and also for generating the changelog
reports, and so on.
> In addition, do we use the folloiwng command to check out a module from
> the cvs repository?
> maven scm:checkout-project
> -Dmaven.scm.method=cvs
> -Dmaven.scm.cvs.module=project4
> -Dmaven.scm.cvs.root=:pserver:mparikh@milindparikh:/home/cvspublic
> -Dmaven.scm.checkout.dir=.
Yes, though the next version will use a shorter version such as:
maven scm:checkout
-Dmaven.scm.url=scm:cvs:pserver:mparikh@milindparikh:/home/cvspublic:project4
Cheers,
Brett
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org