How to handle submodules with Maven JGit Flow?

I am new to use jgitflow-maven-plugin. My project has many different modules that depend on each other. On my branch, developall submodules have version 1.0.0-SNAPSHOT.

The goal is release-startnot completed due to snapshot dependencies. I found that I can use the option allowSnapshots=trueto get past this, but I'm not sure if this is the right way to handle this.

What is the correct way to work with jgitflow and submodules?

+4
source share
2 answers

AllowSnapshots = true is currently required to create a project with submodules that duplicate the parent (SNAPSHOT) version. Proper use.

+2

<configuration>
    <!-- Keep your maven submodules at the same version as the parent POM -->
    <autoVersionSubmodules>true</autoVersionSubmodules>
    ...
</configuration>

http://george-stathis.com/2013/11/09/painless-maven-project-releases-with-maven-gitflow-plugin/

+1

Source: https://habr.com/ru/post/1616249/


All Articles