I use bamboo 7.2.2 as a CI engine with java specs. I am trying to build some reusable bamboo stages/jobs/tasks. Develop once, publish to a private maven repository, and then reuse them in various other bamboo plans by defining the dependency in the pom.xml.
As the library is published in a private repository, I have to define the repository in the pom.xml.
The problem is that at runtime, bamboo merges my pom.xml with some template of its own and removes the repository definition.
Is there any other option to define multiple maven repositories for bamboo java specs?
We do exactly what you describe and don't appear to have any problems. We're able to use our custom shared classes in our Bamboo Specs. This is the
pom.xml
for one of our apps.The only weird behaviour we have is that we can't have two apps building with different versions of this custom library - Bamboo gets really confused until we bring them all in line. Other than that, it works.
Bamboo version: 7.2.10