You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Leon Rosenberg <ro...@gmail.com> on 2010/12/07 18:52:23 UTC

svn multi-modules vs. or with. maven multi-modules

Hi,

We used to use svn multi-module projects for a while, because they
were useful in some aspects. You only had to create one branch, one
tag for the whole projects.
However, for my limited understanding it doesn't work well with maven
(or at all):

svn-home/projecthome/trunk/project1
svn-home/projecthome/trunk/project2
svn-home/projecthome/trunk/project3

this works sofar. Each projects gets its own pom and such. But the fun
begins with tagging:

"before" maven i would do it mostly manually:


svn-home/projecthome/tags/tag1/project1
svn-home/projecthome/tags/tag1/project2
svn-home/projecthome/tags/tag1/project3

with maven i get

svn-home/projecthome/tags/project1-tag1
svn-home/projecthome/tags/project2-tag1
svn-home/projecthome/tags/project3-tag1


therefore, do I understand it correctly, that svn-multi-projects
simply don't make sense in mavens world, and i should let them go?

regards
Leon

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


Re: svn multi-modules vs. or with. maven multi-modules

Posted by Leon Rosenberg <ro...@gmail.com>.
Hello Zac,

thank you for the reply. I will try to provide more details.
In my pre-maven time i had 5 projects for moskito
(http://moskito.anotheria.net), but 3 are enough to illustrate the
problem:

moskito-core
moskito-web
moskito-webui
which are depending on each other webui<- web <- core

i had svn multimodule structure:

svn://svn.anotheria.net/opensource/moskito/trunk/
with
moskito-core, moskito-util, moskito-webui under it.

I had an ant script which went into each project, executed the local
build.xml, picked up the jar/war, copied it all into a release
directory, tar-ed it and created a tag:

svn://svn.anotheria.net/opensource/moskito/tags/release1/
with moskito-core, moskito-util, moskito-webui under it.

Now I have poms for all the projects
(svn://svn.anotheria.net/opensource/moskito/trunk/moskito-core/pom.xml
etc).
In the pom I declare the dependencies and the scm:
	<scm>
		<url>svn:svn://svn.anotheria.net/opensource/moskito/trunk/moskito-core</url>
		<connection>scm:svn:svn://svn.anotheria.net/opensource/moskito/trunk/moskito-core</connection>
		<developerConnection>scm:svn:svn://svn.anotheria.net/opensource/moskito/trunk/moskito-core</developerConnection>
	</scm>
no after releasing 1.0.0 with maven i get a new moskito-core tag under tags:

svn://svn.anotheria.net/opensource/moskito/tags/moskito-core-1.0.0

Since that breaks the svn multiproject structure (in it the expected
tag would be svn://svn.anotheria.net/opensource/moskito/tags/1.0.0/moskito-core)
I ask myself whether the svn multiproject structure is compatible with
maven at all.

I wouldn't be sad if not, I just want to know :-)

regards
Leon




On Fri, Dec 10, 2010 at 5:49 AM, Zac Thompson <za...@gmail.com> wrote:
> Leon, you really have not provided very much information here.  I
> don't think you need to "let them go", but certainly maven _rewards_
> following the default or standard approach in most places; in the case
> of SVN this would mean that your project root is directly on the
> trunk, and the 'trunk' has sibling 'tags' and 'branches' directories
> in the repo.  But not everyone uses SVN in this way and you can
> probably continue to use your preferred approach if you want.
>
>> with maven i get
>>
>> svn-home/projecthome/tags/project1-tag1
>> svn-home/projecthome/tags/project2-tag1
>> svn-home/projecthome/tags/project3-tag1
>
> What do you mean, "with maven" you "get" this?  What commands are you
> executing in order to "get" this?  How is the <scm> information
> defined for project1, etc?  Sorry, not enough info.
>
> ---------------------------------------------------------------------
> 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: svn multi-modules vs. or with. maven multi-modules

Posted by Zac Thompson <za...@gmail.com>.
Leon, you really have not provided very much information here.  I
don't think you need to "let them go", but certainly maven _rewards_
following the default or standard approach in most places; in the case
of SVN this would mean that your project root is directly on the
trunk, and the 'trunk' has sibling 'tags' and 'branches' directories
in the repo.  But not everyone uses SVN in this way and you can
probably continue to use your preferred approach if you want.

> with maven i get
>
> svn-home/projecthome/tags/project1-tag1
> svn-home/projecthome/tags/project2-tag1
> svn-home/projecthome/tags/project3-tag1

What do you mean, "with maven" you "get" this?  What commands are you
executing in order to "get" this?  How is the <scm> information
defined for project1, etc?  Sorry, not enough info.

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