I have a project structure which is like
Parent
|-- child Project1 (Making war project.war)
| `-- pom.xml
|-- child Project
| `-- pom.xml
`-- child ProjectN
`-- pom.xml
The child project have references to the parent. I have configured my plan on bamboo in three stages
— get Auth
— default( executing unit tests)
— deploy war( deploy and publish war )
My war file is being made in Child Project1 which holds the reference to parent.
In the third stage, want to configure my bamboo plan to automate the war making process. The problem I am facing is when i am checking our from the “parent” level, it dosen’t gets the upload goal. If I checkout from the child and try to make a war, then it gives the error that it is not able to find the parent
NOTE: The parent pom.xml has references to child modules
Run a full build at the ‘Parent’ level using
mvn installThen have a second task that runs
mvn upload -pl childfolderOr you might even be able to run
mvn upload -am -pl childfolderThis should build a reactor for the childfolder, building all dependancies first.
Look into the -am and -pl flags to maven, they can probably do what you want.