You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Feilpe Vieira Silva <fg...@gmail.com> on 2004/11/06 22:34:14 UTC

How to use CVS with maven?

Dear friends,

I´m trying to use the common CVS features with maven: update, commit
and validate..

but I can´t get the update function working. Do you know why?

  <repository>
    <connection>
      scm:cvs:pserver:guest@cvs.dev.java.net:/cvs:schoolbus
    </connection>
    <developerConnection>
      scm:cvs:pserver:felipegaucho@cvs.dev.java.net:/cvs:schoolbus
    </developerConnection>
    <url>
      https://schoolbus.dev.java.net/source/browse/schoolbus/
    </url>
  </repository>

C:\cvsRepository\schoolbus>maven scm:cvs-update-project
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0


BUILD FAILED
File...... C:\Documents and Settings\Administrador\.maven\cache\maven-scm-plugin
-1.4\plugin.jelly
Element... ant:cvs
Line...... 257
Column.... 9
java.io.IOException: CreateProcess: cvs -q update -Pd error=2
Total time: 3 seconds
Finished at: Sat Nov 06 18:32:44 BRST 2004

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


RE: How to use CVS with maven?

Posted by Arnaud HERITIER <ah...@gmail.com>.
Yes, you can.

For example:

http://cvs.apache.org/viewcvs.cgi/maven/project.xml?rev=1.317.4.38&only_with_tag=MAVEN-1_0-BRANCH&view=markup

Arnaud

> -----Message d'origine-----
> De : Per Abich [mailto:per.abich@gmail.com]
> Envoyé : dimanche 7 novembre 2004 13:59
> À : Maven Users List; Brett Porter
> Objet : Re: How to use CVS with maven?
> 
> Can I make the username of the developerconnection depend on something
> in my build.properties?
> 
> Best Regards
> 
> Per Abich
> 
> On Sun, 7 Nov 2004 14:30:16 +1100, Brett Porter <br...@gmail.com> wrote:
> > > The cvs is running ok now, but I have more questions:
> > >
> > > 1) how maven choose the connection to use? <connection> or
> > > <developerConnection> ?
> >
> > Dev connection if it exists, unless you override that.
> >
> > >
> > > 2) how do I set the password each time I will use the connection?
> > > using -Dpassword  ??
> > >
> >
> > You need to "cvs login" first in pserver. That hasn't been built into
> > the plugin.
> >
> > - 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





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


Re: How to use CVS with maven?

Posted by Per Abich <pe...@gmail.com>.
Can I make the username of the developerconnection depend on something
in my build.properties?

Best Regards

Per Abich

On Sun, 7 Nov 2004 14:30:16 +1100, Brett Porter <br...@gmail.com> wrote:
> > The cvs is running ok now, but I have more questions:
> >
> > 1) how maven choose the connection to use? <connection> or
> > <developerConnection> ?
> 
> Dev connection if it exists, unless you override that.
> 
> >
> > 2) how do I set the password each time I will use the connection?
> > using -Dpassword  ??
> >
> 
> You need to "cvs login" first in pserver. That hasn't been built into
> the plugin.
> 
> - 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: How to use CVS with maven?

Posted by Corey Scott <co...@gmail.com>.
Sorry, I didnt explain clearly.

pom.repository.cvsRoot and pom.repository.cvsModule are set by the
<connection> setting.
For the "dest" you might want to try setting it a little differently.
Maybe using:
${pom.build.sourceDirectory}  (eg. <sourceDirectory>src/java</sourceDirectory>)
or
${basedir} (the top of the project, where the project.xml is)

All this said, I think you are after:
>        <echo>Downloading the Schoolbus project</echo>
>        <ant:cvs
>            cvsRoot="${pom.repository.cvsRoot}"
>            package="${pom.repository.cvsModule}"
>            dest="${pom.build.sourceDirectory} "
>            />
>        <!--attainGoal name="scm:checkout-project"/-->
>        <attainGoal name="multiproject:install"/>
>        <attainGoal name="multiproject:site"/>
>  </goal>


Now that I think about it, I may be leading you in the wrong
direction, maybe someone could clarify this for me.

To use maven, you must have a project.xml (or sim) and as such it has
to come from somewhere (presumably the cvs?).  With this in mind,
doesnt that negate using maven for this particular step? *confused*

Sorry,
-Corey

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


Re: How to use CVS with maven?

Posted by Feilpe Vieira Silva <fg...@gmail.com>.
great, but.. how can I use it with Maven ?

  <goal name="newMember" description="Used by new members to assemble
the project through one step">
  	<echo>Downloading the Schoolbus project</echo>
  	<ant:cvs
	    cvsRoot="${pom.repository.cvsRoot}"
	    package="${pom.repository.cvsModule}"
	    dest="."
	    />
  	<!--attainGoal name="scm:checkout-project"/-->
  	<attainGoal name="multiproject:install"/>
  	<attainGoal name="multiproject:site"/>
  </goal>

the "pom.repository.cvsRoot" variable is set in the project.properties
or it is the properties inside the "<connection>" tag ?


On Sun, 7 Nov 2004 23:19:24 +0800, Corey Scott <co...@gmail.com> wrote:
> If you are wanting to have greater control of the cvs, you might get
> better millage out of the ant:cvs task (http://ant.apache.org/manual/)
> 
> Example:
>    <ant:cvs
>        cvsRoot="${pom.repository.cvsRoot}"
>        package="${pom.repository.cvsModule}"
>        dest="${dest.dir}"
>        tag="${cvs.tag}" />
> 
> Hope this helps,
> Corey
>

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


Re: How to use CVS with maven?

Posted by Corey Scott <co...@gmail.com>.
If you are wanting to have greater control of the cvs, you might get
better millage out of the ant:cvs task (http://ant.apache.org/manual/)

Example:
    <ant:cvs
	cvsRoot="${pom.repository.cvsRoot}"
	package="${pom.repository.cvsModule}"
	dest="${dest.dir}"
	tag="${cvs.tag}" />

Hope this helps,
Corey

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


RE: How to use CVS with maven?

Posted by Arnaud HERITIER <ah...@gmail.com>.
You can certainly do something like:


<j:set var="maven.scm.checkout.dir" value="."/>
<attainGoal name="scm:checkout-project"/>


http://maven.apache.org/reference/plugins/scm/properties.html


Arnaud

> -----Message d'origine-----
> De : Feilpe Vieira Silva [mailto:fgaucho@gmail.com]
> Envoyé : dimanche 7 novembre 2004 16:11
> À : Maven Users List; Brett Porter
> Objet : Re: How to use CVS with maven?
> 
> I´m aopdting the following procedure:
> 
> 1) maven -Dpassword=XXXXXXX changelog:create-cvspass
> 2) maven scm:cvs-checkout-project
> 
> The problem now is the target folder. The default maven target is the
> "target" folder bellow the current line command directory. How can I
> change this target folder to produce a goal with the following
> behavirou:
> 
> <goal name="newMember" description="Used by new members to assemble
> the project through one step">
>   	<echo>Downloading the Schoolbus project</echo>
>   	<attainGoal name="scm:checkout-project"/>
>   	<attainGoal name="multiproject:install"/>
>   	<attainGoal name="multiproject:site"/>
> </goal>
> 
> i.e., After this goal I want all project downloaded through CVS and
> correctly instaled and site generated ..
> 
> In my first trials, the project was correctly downloaded, but inside
> the folder target\checkouts\schoolbus
> 
> how can I change it ?
> 
> 
> 
> 
> 
> On Sun, 7 Nov 2004 14:30:16 +1100, Brett Porter <br...@gmail.com> wrote:
> > > The cvs is running ok now, but I have more questions:
> > >
> > > 1) how maven choose the connection to use? <connection> or
> > > <developerConnection> ?
> >
> > Dev connection if it exists, unless you override that.
> >
> > >
> > > 2) how do I set the password each time I will use the connection?
> > > using -Dpassword  ??
> > >
> >
> > You need to "cvs login" first in pserver. That hasn't been built into
> > the plugin.
> >
> > - 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




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


Re: How to use CVS with maven?

Posted by Feilpe Vieira Silva <fg...@gmail.com>.
I´m aopdting the following procedure:

1) maven -Dpassword=XXXXXXX changelog:create-cvspass
2) maven scm:cvs-checkout-project

The problem now is the target folder. The default maven target is the
"target" folder bellow the current line command directory. How can I
change this target folder to produce a goal with the following
behavirou:

<goal name="newMember" description="Used by new members to assemble
the project through one step">
  	<echo>Downloading the Schoolbus project</echo>
  	<attainGoal name="scm:checkout-project"/>
  	<attainGoal name="multiproject:install"/>
  	<attainGoal name="multiproject:site"/>
</goal>

i.e., After this goal I want all project downloaded through CVS and
correctly instaled and site generated ..

In my first trials, the project was correctly downloaded, but inside
the folder target\checkouts\schoolbus

how can I change it ?





On Sun, 7 Nov 2004 14:30:16 +1100, Brett Porter <br...@gmail.com> wrote:
> > The cvs is running ok now, but I have more questions:
> >
> > 1) how maven choose the connection to use? <connection> or
> > <developerConnection> ?
> 
> Dev connection if it exists, unless you override that.
> 
> >
> > 2) how do I set the password each time I will use the connection?
> > using -Dpassword  ??
> >
> 
> You need to "cvs login" first in pserver. That hasn't been built into
> the plugin.
> 
> - 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: How to use CVS with maven?

Posted by Brett Porter <br...@gmail.com>.
> The cvs is running ok now, but I have more questions:
> 
> 1) how maven choose the connection to use? <connection> or
> <developerConnection> ?

Dev connection if it exists, unless you override that.

> 
> 2) how do I set the password each time I will use the connection?
> using -Dpassword  ??
> 

You need to "cvs login" first in pserver. That hasn't been built into
the plugin.

- Brett

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


Re: How to use CVS with maven?

Posted by Feilpe Vieira Silva <fg...@gmail.com>.
ok, thank you.. The GMail uses the information received in the mail
header to decide the response address.. I will take more care each
time I press the 'reply' button - no problems.

The cvs is running ok now, but I have more questions:

1) how maven choose the connection to use? <connection> or
<developerConnection> ?

2) how do I set the password each time I will use the connection?
using -Dpassword  ??




On Sun, 7 Nov 2004 09:01:26 +1100, Brett Porter <br...@gmail.com> wrote:
> if wincvs's installation has a cvs executable in there, you can add
> that directory to your path, otherwise you'll need to install your
> own.
> 
> I know gmail messes with the reply list, but if you could try and
> reply to the list instead of me in future, that'd be great. That way
> others can find the answers you get too.
> 
> Cheers,
> Brett
> 
> On Sat, 6 Nov 2004 19:50:05 -0200, Feilpe Vieira Silva
> 
> 
> <fg...@gmail.com> wrote:
> > ok, I have WinCVS installed here.. which variable should I add to my system?
> >
> > CVS_HOME?
> >
> > or just add the cvs installation folder to the bin ??
> >
> >
> >
> >
> > On Sun, 7 Nov 2004 08:45:32 +1100, Brett Porter <br...@gmail.com> wrote:
> > > cvs support currently relies on a cvs program being installed. You
> > > will need to be able to run "cvs -q update -Pd" from the directory you
> > > are in for the maven commands to work.
> > >
> > > For windows, I suggest cygwin: http://www.cygwin.com. Though you can
> > > download a standalone cvs client from http://www.cvshome.org and put
> > > it in your path.
> > >
> > > - Brett
> > >
> > > On Sat, 6 Nov 2004 19:34:14 -0200, Feilpe Vieira Silva
> > >
> > >
> > > <fg...@gmail.com> wrote:
> > > > Dear friends,
> > > >
> > > > I´m trying to use the common CVS features with maven: update, commit
> > > > and validate..
> > > >
> > > > but I can´t get the update function working. Do you know why?
> > > >
> > > >   <repository>
> > > >     <connection>
> > > >       scm:cvs:pserver:guest@cvs.dev.java.net:/cvs:schoolbus
> > > >     </connection>
> > > >     <developerConnection>
> > > >       scm:cvs:pserver:felipegaucho@cvs.dev.java.net:/cvs:schoolbus
> > > >     </developerConnection>
> > > >     <url>
> > > >       https://schoolbus.dev.java.net/source/browse/schoolbus/
> > > >     </url>
> > > >   </repository>
> > > >
> > > > C:\cvsRepository\schoolbus>maven scm:cvs-update-project
> > > >  __  __
> > > > |  \/  |__ _Apache__ ___
> > > > | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> > > > |_|  |_\__,_|\_/\___|_||_|  v. 1.0
> > > >
> > > > BUILD FAILED
> > > > File...... C:\Documents and Settings\Administrador\.maven\cache\maven-scm-plugin
> > > > -1.4\plugin.jelly
> > > > Element... ant:cvs
> > > > Line...... 257
> > > > Column.... 9
> > > > java.io.IOException: CreateProcess: cvs -q update -Pd error=2
> > > > Total time: 3 seconds
> > > > Finished at: Sat Nov 06 18:32:44 BRST 2004
> > > >
> > > > ---------------------------------------------------------------------
> > > > 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: How to use CVS with maven?

Posted by Brett Porter <br...@gmail.com>.
cvs support currently relies on a cvs program being installed. You
will need to be able to run "cvs -q update -Pd" from the directory you
are in for the maven commands to work.

For windows, I suggest cygwin: http://www.cygwin.com. Though you can
download a standalone cvs client from http://www.cvshome.org and put
it in your path.

- Brett


On Sat, 6 Nov 2004 19:34:14 -0200, Feilpe Vieira Silva
<fg...@gmail.com> wrote:
> Dear friends,
> 
> I´m trying to use the common CVS features with maven: update, commit
> and validate..
> 
> but I can´t get the update function working. Do you know why?
> 
>   <repository>
>     <connection>
>       scm:cvs:pserver:guest@cvs.dev.java.net:/cvs:schoolbus
>     </connection>
>     <developerConnection>
>       scm:cvs:pserver:felipegaucho@cvs.dev.java.net:/cvs:schoolbus
>     </developerConnection>
>     <url>
>       https://schoolbus.dev.java.net/source/browse/schoolbus/
>     </url>
>   </repository>
> 
> C:\cvsRepository\schoolbus>maven scm:cvs-update-project
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0
> 
> BUILD FAILED
> File...... C:\Documents and Settings\Administrador\.maven\cache\maven-scm-plugin
> -1.4\plugin.jelly
> Element... ant:cvs
> Line...... 257
> Column.... 9
> java.io.IOException: CreateProcess: cvs -q update -Pd error=2
> Total time: 3 seconds
> Finished at: Sat Nov 06 18:32:44 BRST 2004
> 
> ---------------------------------------------------------------------
> 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