You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Thomas Porter <tx...@mindspring.com> on 2005/02/28 23:20:08 UTC

REPOST: question about maven w/ subversion

First, my apologies to everyone for the first post with a bad subject
line, too fast on the draw w/ mutt!!


I am a relative newcomer to maven, but have been using subversion for
a while.

I have what appears to be a trivial question:

If I have a maven enabled project stored in subversion (with
project.xml, etc. etc.) how do I check out the project to an empty
directory using maven?

Assuming my subversion repo is at /home/tporter/svn_repo and my
project is in /home/tporter/svn_repo/hfj, I have tried the following
in an ampty working directory:

  maven scm:checkout-project \
   -Dmaven.scm.method=svn \
   -Dmaven.scm.svn.module=hfj/ \
   -Dmaven.scm.svn.root=file:///home/tporter/svn_repo \
   -Dmaven.scm.checkout.dir=.

and all I get is:

  __  __
  |  \/  |__ _Apache__ ___
  | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
  |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

  BUILD SUCCESSFUL
  Total time: 4 seconds
  Finished at: Mon Feb 28 16:41:15 EST 2005


with nothing checked out from subversion, empty directory ,etc.

If I issue:

  svn co file:///home/tporter/svn_repo/hfj .

I get what  I expect and can then issue:

maven site to compile, run unit tests, build site, etc.

Between deprecated properties and not very well documented scm goals,
I'm pretty confused.

Any help greatly appreciated.  

-- 
Tom Porter                                       txporter@mindspring.com
------------------------------------------------------------------------
"On two occasions I have been asked [by members of Parliament], 
'Pray, Mr. Babbage, if you put into the machine wrong figures, will 
the right answers come out?'  I am not able rightly to apprehend the 
kind of confusion of ideas that could provoke such a question."


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


Re: REPOST: question about maven w/ subversion

Posted by Brett Porter <br...@gmail.com>.
What you are doing looks correct. Can you please raise a JIRA issue at
http://jira.codehaus.org/browse/MPSCM?

Thanks,
Brett


On Mon, 28 Feb 2005 21:22:13 -0500, Thomas Porter
<tx...@mindspring.com> wrote:
> On Tue, Mar 01, 2005 at 10:07:51AM +1100, Brett Porter thoughtfully expounded:
> > Subversion support is still in beta. Please see the instructions here:
> > http://www.apache.org/~brett/maven-stage-site/reference/plugins/scm/
> >
> > You can get maven-scm-plugin 1.5-beta-3 using "maven plugin:download".
> 
> Brett,
> 
> Thanks for the pointer.  I had seen that link before, but had not
> realized that I needed a new version of the SCM plugin.  If I run the
> example command from inside my working directory, say ~/foo2, I get
> ~/foo2/target/checkout created with my project under it, which has
> its own /src, /target, and /xdocs after I finish doing a 'maven site'
> from inside ~/foo2/target/checkout, since this is where my
> project.xml, etc. is at.  Trying:
> 
>   maven scm:checkout \
>     -Dmaven.scm.url=scm:svn:file:///home/tporter/svn_repo/hfj \
>     -Dmaven.scm.checkout.dir=.
> 
> from inside ~/foo2 causes an exception as the task tries to delete the
> current directory.  Backing up one directory to my home dir and trying
> :
> 
>   maven scm:checkout \
>     -Dmaven.scm.url=scm:svn:file:///home/tporter/svn_repo/hfj \
>     -Dmaven.scm.checkout.dir=foo2
> 
> causes an exception as well.
> 
> Can I control the destination directory for a checkout?
> 
> Thanks,
> 
> --
> Tom Porter                                       txporter@mindspring.com 
> ------------------------------------------------------------------------
> "On two occasions I have been asked [by members of Parliament],
> 'Pray, Mr. Babbage, if you put into the machine wrong figures, will
> the right answers come out?'  I am not able rightly to apprehend the
> kind of confusion of ideas that could provoke such a question."
> 
> ---------------------------------------------------------------------
> 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: REPOST: question about maven w/ subversion

Posted by Thomas Porter <tx...@mindspring.com>.
On Tue, Mar 01, 2005 at 10:07:51AM +1100, Brett Porter thoughtfully expounded:
> Subversion support is still in beta. Please see the instructions here:
> http://www.apache.org/~brett/maven-stage-site/reference/plugins/scm/
> 
> You can get maven-scm-plugin 1.5-beta-3 using "maven plugin:download".

Brett,

Thanks for the pointer.  I had seen that link before, but had not
realized that I needed a new version of the SCM plugin.  If I run the
example command from inside my working directory, say ~/foo2, I get
~/foo2/target/checkout created with my project under it, which has
its own /src, /target, and /xdocs after I finish doing a 'maven site'
from inside ~/foo2/target/checkout, since this is where my
project.xml, etc. is at.  Trying:
  
  maven scm:checkout \
    -Dmaven.scm.url=scm:svn:file:///home/tporter/svn_repo/hfj \
    -Dmaven.scm.checkout.dir=. 

from inside ~/foo2 causes an exception as the task tries to delete the
current directory.  Backing up one directory to my home dir and trying
:

  maven scm:checkout \
    -Dmaven.scm.url=scm:svn:file:///home/tporter/svn_repo/hfj \
    -Dmaven.scm.checkout.dir=foo2
 
causes an exception as well.

Can I control the destination directory for a checkout?

Thanks,

-- 
Tom Porter                                       txporter@mindspring.com
------------------------------------------------------------------------
"On two occasions I have been asked [by members of Parliament], 
'Pray, Mr. Babbage, if you put into the machine wrong figures, will 
the right answers come out?'  I am not able rightly to apprehend the 
kind of confusion of ideas that could provoke such a question."


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


Re: REPOST: question about maven w/ subversion

Posted by Brett Porter <br...@gmail.com>.
Subversion support is still in beta. Please see the instructions here:
http://www.apache.org/~brett/maven-stage-site/reference/plugins/scm/

You can get maven-scm-plugin 1.5-beta-3 using "maven plugin:download".

Cheers,
Brett


On Mon, 28 Feb 2005 17:20:08 -0500, Thomas Porter
<tx...@mindspring.com> wrote:
> First, my apologies to everyone for the first post with a bad subject
> line, too fast on the draw w/ mutt!!
> 
> I am a relative newcomer to maven, but have been using subversion for
> a while.
> 
> I have what appears to be a trivial question:
> 
> If I have a maven enabled project stored in subversion (with
> project.xml, etc. etc.) how do I check out the project to an empty
> directory using maven?
> 
> Assuming my subversion repo is at /home/tporter/svn_repo and my
> project is in /home/tporter/svn_repo/hfj, I have tried the following
> in an ampty working directory:
> 
>   maven scm:checkout-project \
>    -Dmaven.scm.method=svn \
>    -Dmaven.scm.svn.module=hfj/ \
>    -Dmaven.scm.svn.root=file:///home/tporter/svn_repo \
>    -Dmaven.scm.checkout.dir=.
> 
> and all I get is:
> 
>   __  __
>   |  \/  |__ _Apache__ ___
>   | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
>   |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
> 
>   BUILD SUCCESSFUL
>   Total time: 4 seconds
>   Finished at: Mon Feb 28 16:41:15 EST 2005
> 
> with nothing checked out from subversion, empty directory ,etc.
> 
> If I issue:
> 
>   svn co file:///home/tporter/svn_repo/hfj .
> 
> I get what  I expect and can then issue:
> 
> maven site to compile, run unit tests, build site, etc.
> 
> Between deprecated properties and not very well documented scm goals,
> I'm pretty confused.
> 
> Any help greatly appreciated.
> 
> --
> Tom Porter                                       txporter@mindspring.com 
> ------------------------------------------------------------------------
> "On two occasions I have been asked [by members of Parliament],
> 'Pray, Mr. Babbage, if you put into the machine wrong figures, will
> the right answers come out?'  I am not able rightly to apprehend the
> kind of confusion of ideas that could provoke such a question."
> 
> ---------------------------------------------------------------------
> 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