[git-users] Git and Multi-Module Maven Projects

2014-03-03 Thread Eric Kolotyluk
In simple terms I understand that using one git repo per project is the 
most sane choice. 

But when I have Maven Projects that have one or more hierarchies of 
modules, I am not sure the best choice of managing a git repo. I have 
looked at the module support in git, and frankly is scares me, and I worry 
I might go insane if I attempt to use it. Too many opportunities to screw 
up...

For example, let's say I have a Maven project like

My Project POM
Module 1 POM
Module 2 POM
Module 3 POM
Module A POM
Module B POM
Module C POM

One choice is to put all of My Project in a single repo, but if the 
project gets really big, or I want to release some modules on their on 
version schedule, things could get hairy.

The other choice is to put some modules in their own git repo, but then 
what happens with the parent POM? I guess one solution is to refer to the 
Parent POM via Maven coordinates, than directly via the file system.

Silly question, does anyone else get in confusing discussions with people 
when talking about git repos and maven repos, and people just say repo?

Cheers, Eric

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [git-users] Git and Multi-Module Maven Projects

2014-03-03 Thread Mark Derricutt

On 4 Mar 2014, at 9:37, Thomas Ferris Nicolaisen wrote:

Here's the clue. All modules that share release schedule/versioning 
CAN be in the same repository. All modules that have distinct 
schedules SHOULD be in separate repositories.


I +1 this comment. If your module share a not only a common release 
cadence, but common version number then a single git repository works, 
but if/when they change one really should look at separate repositories.


The main reasons for this revolve around the maven-release-plugin ( 
assuming you're using the standard release setup ) in that m-r-p really 
likes to release from the root of the repository [1] and because of 
git's repository wide tagging setup ( globally tagging all modules with 
the version details of individual things gets quite noisy, and 
problematic if you need to do back-port fixes on an individual module.


Mark

[1] I believe the forth-coming m-r-p 2.5 release has some bug fixes 
around this, but not sure of the details.


--
You received this message because you are subscribed to the Google Groups Git for 
human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.