Skip to main content

Branching

The repositories follow the GitFlow workflow: development happens on develop, and main holds what is released. The commands below come from the GitFlow Maven plugin, which creates and merges the branches and updates the project versions at the same time.

Features​

CommandEffect
mvn gitflow:feature-startCreates a feature branch from develop, for example feature/module-catalog
mvn gitflow:feature-finishMerges the finished feature into develop; the feature branch can then be deleted

Releases​

CommandEffect
mvn gitflow:release-startCreates a release branch from develop and sets the release version in the pom.xml files
mvn gitflow:release-finishMerges the release into main, tags it, merges it back into develop and sets the next development version
mvn gitflow:releaseReleases directly, without a release branch. Suited to simple projects.

Hotfixes​

CommandEffect
mvn gitflow:hotfix-startCreates a hotfix branch from main to fix an urgent production defect, with an incremented patch version
mvn gitflow:hotfix-finishMerges the fix into main, tags it, and merges it into develop so that later versions include it

Support and versions​

CommandEffect
mvn gitflow:support-startCreates a support branch from a production tag, for example support/1.x, to maintain an older version alongside main and develop
mvn gitflow:version-updateUpdates the project version on a release or support branch, and can tag and push the change