We needed to release one of our C++ projects hosted on our GitHub enterprise. This project uses another project as a dependency, added as a git module.
We were able to build this project using maven clean install. Everything went smoothly until we decided to use the Maven release plugin to release this project.
What we found is that the Maven release plugin does not clone the dependent submodule. We had gone through the official documentation of the Maven release plugin but did not find anything that makes it work with the submodule.
Workaround:
What we did as a workaround is we used Exec Maven Plugin. We added this plugin with the following configurations inside build->plugins node.
How do you guys do this with your projects with multiple submodules? Please share your thoughts through comments.