Recursive Build Question

Hi all!

I am very new in bamboo so here my stupid question.

I have a Project with maven dependencies. The Project has two childs defined in the maven pom. Now I want that the build first builds the childs an then the original Project.

I don't want to define three build plans for this.

Is this possible?

thanks Peter


3 answers

1 vote
Marcin Oles Atlassian Team Aug 03, 2015

Hi @Peter Kendlbacher,

using Maven you should be able to achieve that if you just build the parent project, e.g. using 'mvn clean install'.  It should build the child projects within it. You can try running this command in a console and see if all projects get build to verify if it works.

So you only need one build plan in Bamboo.


I have now set up a multi modul project, but it is not working as expected.

The structure I have chosen is not a tree, because we have many teams in the company and every team is building independently artifacts, which should be able to be combined freely.

The structure looks like this:

comp1-app/trunk/app1 - is the multi modul parent which references the artifacts (../../../comp1/trunk/artifact1, ../../../comp2/trunk/artifact3)





In the build plan I have added a maven 3 task with the comp1-app/trunk/app1 folder as Working sub directory.

As I run the plan now I get the error, that the submodules are not found:

[ERROR]     Child module /opt/bamboo-home/xml-data/build-dir/TESTPLAN-JOB1/comp1-app/trunk/app1/../../../comp1/trunk/artifact1 of /opt/bamboo-home/xml-data/build-dir/TESTPLAN-JOB1/comp1-app/trunk/app1/pom.xml does not exist

This message appears for every modul. In my opinion somehow Maven is unsing abolute paths and not relative ones are uses.

Does anyone know how to configure Maven tu use relative Paths or do I have to change something in the Maven Plan Task?

Thanks , Regards Peter

be certain you are including in each of the modules:


Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Dec 06, 2018 in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

5,572 views 22 17
View question

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you