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
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
be certain you are including in each of the modules:
<parent> <groupId>com.vanitysoft....</groupId> <artifactId>....parent</artifactId> <version>1.0</version> </parent>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.