Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vincentlejeune opened this issue Apr 8, 2020 · 5 comments

Comments

@vincentlejeune
Copy link

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 ?

@aleksandr-m
Copy link
Owner

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

@vincentlejeune
Copy link
Author

@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 ?

@aleksandr-m
Copy link
Owner

@vincentlejeune

Is there something wrong in my use case ?

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

@vincentlejeune
Copy link
Author

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.

@aleksandr-m
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants