Our product is made up of different modules inside the same Git repository. Lets say we have "core" which has a maven dependency onto "api".
Now, when we are working on a specific feature/bugfix branch, we are running builds from it, so that testing can work with it.
All artifacts from all branches, end up in the same Maven repository, with the same version and classifiers. The modules do not get built together. So "api" may be built in the morning, and "core" in the afternoon.
The problem we have is that at the moment, if there has been builds in between, "core" may be getting the "api" snapshot build from another branch.
I imagine this is a common problem on teams working with a similar setup as us.
I am tempted to say, that the way to deal with this problem is to make the Maven coordinate between branches unique, either with a special classifier, or with a special suffix in the version directly.
Which approach should I follow?