Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Recursive Build Question

Peter Kendlbacher August 3, 2015

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
Atlassian Team members are employees working across the company in a wide variety of roles.
August 3, 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.

Cheers,
Marcin 

0 votes
Jeryl Cook March 7, 2017

be certain you are including in each of the modules:

<parent>
<groupId>com.vanitysoft....</groupId>
<artifactId>....parent</artifactId>
<version>1.0</version>
</parent>
0 votes
Peter Kendlbacher August 11, 2015

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)

comp1/trunk/artifact1

comp1/trunk/artifact2

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events