Is it possible to select a profile based on the current git branch?
For example, if you are in the main branch, he selects the profile "production". If it is a development branch, it selects a development profile.
I found the mavanagaiata plugin that provides the mvngit.branch property but cannot be used in the <profiles> section.
Is something like this possible? Or are there better ways? I want a simple way to automatically select the correct profile depending on which branch is being built.
source share