You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Volker Hartmann <Vo...@ipe.fzk.de> on 2005/12/02 17:31:44 UTC

[M2] maven & svn

Hi,

I've problems using the release plugin.

I'm not very familar with svn so I'm not sure how to create the 
repository and how to
declare it in pom.xml.
I tried to find a complete HowTo but without any success!?

I always got the following error:
*svn*: Cannot *copy path* '.' into its own *child* '..\*tags*\test-*tag*-1'
svn version: 1.1.3
 
What I've done:
svnadmin create  [pathToSVNRepos]/myFirstProject

Maven has the following structure.

FirstProject
        pom.xml
        src/
        target/

Inside the pom.xml I declared the scm as follows:
   <scm>
    
<developerConnection>scm:svn:file:///[pathToSVNRepos]/myFirstProject</developerConnection>
  </scm>

How has the file structure to look like?
Do I have to create the tags and branches directory
locally or only in the svn repos?

What's the command for importing data to svn.

svn import  [which path] file:///[pathToSVNRepos]/myFirstProject ?

It shouldn't be that complicated.

Any help appreciated.

Regards,
  Volker





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


Re: [M2] maven & svn

Posted by Volker Hartmann <Vo...@ipe.fzk.de>.
Hi Emmanuel!

> You must define the tagBase directory like this :
>
> mvn -DtagBase=file:///[pathToSVNRepos]/tags/ release:prepare

You got it! :-)

Thank you for your help.

Regards,
  Volker

>
>>
>> What I've done:
>> svnadmin create  [pathToSVNRepos]/myFirstProject
>>
>> Maven has the following structure.
>>
>> FirstProject
>>        pom.xml
>>        src/
>>        target/
>>
>> Inside the pom.xml I declared the scm as follows:
>>   <scm>
>>    
>> <developerConnection>scm:svn:file:///[pathToSVNRepos]/myFirstProject</developerConnection> 
>>
>>  </scm>
>>
>> How has the file structure to look like?
>> Do I have to create the tags and branches directory
>> locally or only in the svn repos?
>
>
> in the svn repo.
>
> Generally, in a svn repo, you have this structure :
> SVNRepo
>   branches
>     branch_name
>       your branched code
>   tags
>   trunk
>     your source code
>
>>
>> What's the command for importing data to svn.
>
>
> http://svnbook.red-bean.com/
>
>>
>> svn import  [which path] file:///[pathToSVNRepos]/myFirstProject ?
>
>
> http://svnbook.red-bean.com/en/1.1/svn-book.html#svn-ch-5-sect-6.2
>
>>
>> It shouldn't be that complicated.
>>
>> Any help appreciated.
>>
>> Regards,
>>  Volker
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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: [M2] maven & svn

Posted by Emmanuel Venisse <em...@venisse.net>.

Volker Hartmann a écrit :
> Hi,
> 
> I've problems using the release plugin.
> 
> I'm not very familar with svn so I'm not sure how to create the 
> repository and how to
> declare it in pom.xml.
> I tried to find a complete HowTo but without any success!?
> 
> I always got the following error:
> *svn*: Cannot *copy path* '.' into its own *child* '..\*tags*\test-*tag*-1'
> svn version: 1.1.3

You must define the tagBase directory like this :

mvn -DtagBase=file:///[pathToSVNRepos]/tags/ release:prepare

> 
> What I've done:
> svnadmin create  [pathToSVNRepos]/myFirstProject
> 
> Maven has the following structure.
> 
> FirstProject
>        pom.xml
>        src/
>        target/
> 
> Inside the pom.xml I declared the scm as follows:
>   <scm>
>    
> <developerConnection>scm:svn:file:///[pathToSVNRepos]/myFirstProject</developerConnection> 
> 
>  </scm>
> 
> How has the file structure to look like?
> Do I have to create the tags and branches directory
> locally or only in the svn repos?

in the svn repo.

Generally, in a svn repo, you have this structure :
SVNRepo
   branches
     branch_name
       your branched code
   tags
   trunk
     your source code

> 
> What's the command for importing data to svn.

http://svnbook.red-bean.com/

> 
> svn import  [which path] file:///[pathToSVNRepos]/myFirstProject ?

http://svnbook.red-bean.com/en/1.1/svn-book.html#svn-ch-5-sect-6.2

> 
> It shouldn't be that complicated.
> 
> Any help appreciated.
> 
> Regards,
>  Volker
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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