We have several different projects hosted on bitbucket to develop different parts of a complex framework.
These repositories have interdependencies and all of them are using maven as a build infrastructure.
Currently, we face the issue, that there is an update in one of the projects that is taken into account in another project by updating the pom.xml file.
Now I want to build the project using a pipeline build.
In our current approach, we need to check out the dependency project and build it to be able to access the artefact for the subsequent build step.
It is very nasty to update the checkout step of the pipeline yml file for each update of the pom.xml
Is there an easier way to handle these kinds of depending setups?
It would be ideal to have a pipeline/script that extracts the necessary version from the pom.xml, checks out the repository in the correct version (we use tags with the same name as the current version - e.g. pom.xml - 5.25 --> git tag - 5.25) and builds the artefact.
We are also willing to change our current setup if this would ease our life.