How to include a shared artifact into another build job within a plan

I have searched many articles in web (including some posts about sharing artifact in this community), but I still cannot figure out what's wrong with my bamboo build plan, and hope to get advice from professionals here)

I have a project which involves two war projects, one war project (A) depends on another project (B) in build process. However, in the web, I only find a solution such the generate project B into a jar file (and also generates a war as well when building websphere EAR), and then war project (A) can build with project (B) jar and result in project (A) war. Final EAR is composed of two WARs together.

In local maven, I can build the EAR without problem. However, in bamboo, I encounter many errors in build process. In web, someone suggests that I need to build project (B) as a shared artifact (i.e. jar) and then last build job can include this artifact as a source together with the project source code to build final EAR.

I really have no idea how to proceed next, would any expert here give me some directions for me ?

Thanks for your feedback. May I know if the build action shows the artifact is copied (more than 1 resource), then the Bamboo then knows need to include this (classes.jar) into its build path when building final projection ?

Thanks,

Ray

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.