gitflow-maven-plugin icon indicating copy to clipboard operation
gitflow-maven-plugin copied to clipboard

[Question] is it possible to use the plugin in a projet with git submodules ?

Open vincentlejeune opened this issue 5 years ago • 5 comments

My project is a multi module maven project. The project has is own git repository. The modules have their own git repositories (git submodules) too. Is the gitflow-maven-plugin able to manage this kind of project ?

vincentlejeune avatar Apr 08 '20 17:04 vincentlejeune

Depends. Why don't you try it and if something doesn't work then post additional info.

aleksandr-m avatar Apr 15 '20 18:04 aleksandr-m

@aleksandr-m thanks for your answer.

Of course I tried first, without success. After a mvn gitflow:release-start, my project repository (that contains the aggregate pom) has switched to the release branch, unfortunatly, the modules inside the project folder (git submodules) didn't switch. They stayed to the development branch.

Is there something wrong in my use case ?

vincentlejeune avatar Apr 16 '20 09:04 vincentlejeune

@vincentlejeune

Is there something wrong in my use case ?

Can you describe what exactly you are expecting to happen with git submodules?

aleksandr-m avatar Apr 20 '20 19:04 aleksandr-m

I have components, each component has it own git repository. To simplify my release process, i would like to release all my components as they were modules of the same multi maven project. To achieve that, i create a multi maven project repository that references my components repository as "git submodules". when i start the release, i expect that all repositories will switch to the release branch. To summarize, i'm expecting that the gitflow plugin will apply the git flow branching workflow to each git submodules and parent instead of only to the parent repository.

vincentlejeune avatar Apr 21 '20 09:04 vincentlejeune

Haven't looked much into this, but it seems too complex. @vincentlejeune Can you even run all the necessary commands for submodules from parent repo? If you would do it manually, which commands would you run. Can you outline at least the basics ones?

aleksandr-m avatar Apr 28 '20 19:04 aleksandr-m