I wonder if it's possible to use the maven-release-plugin in a multi module project where each module has its own git repository? Something like this:
parent/
.git/
pom.xml
module1/
.git/
pom.xml
I set up a simple test (under linux) and it fails for the "git add" command (simplyfied):
cd parent && git add -- pom.xml /.../module1/pom.xml
The error message is
fatal: /.../module1/pom.xml: '/.../module1/pom.xml' is outside repository
I understand that this git command can't work. Is maven-release-plugin able to do a seperate "git add" command for each repository?
Just for the case the answer is NO: Assume i only have a single git repository. Does it matter whether i use a flat hierarchy or a nested one?
Are there any other options for automated versioning/releasing and keeping multiple git repositories?