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:[EMAIL PROTECTED]:/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:[EMAIL PROTECTED]:/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 <[EMAIL PROTECTED]>
Reply-To: Brett Porter <[EMAIL PROTECTED]>
To: Maven Users List <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
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:[EMAIL PROTECTED]:/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:[EMAIL PROTECTED]:/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:[EMAIL PROTECTED]:/home/cvspublic:project4

Cheers,
Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to