How to make maven artifact sharing find maven artifacts


I have a maven multimodule build. I have checked 'enable maven artifact sharing' on my plan configuration, but on the artifacts page from my build job it says "No maven artifacts have been produced for this Job"

What do i need to do to make bamboo see the maven artifacts produced by the build?

On the confluence site it says "If a Job needs to deploy an artifact (i.e. produce the artifact), mark the artifact as shared in the relevant artifact definition."

Should the artifact definition appear automatically, or do i need to define it?

If i need to define it what should it point at, the pom.xml, the project directory, the build directoty, the built jar in the build directory, the built jar in the local maven repo?

3 answers

I'm having the same problem. I've defined the bamboo-artifact-sharing-maven-plugin on a simple project to share the produced artifacts on a downstream stage. When running the maven task in debug (-X) I can see that the bamboo-artifact-sharing-maven-plugin is invoked after the test phase, but the job still says: "No maven artifacts have been produced for this Job". I also notice the following log output at the end of the "share" goal.

03-Apr-2012 01:18:02 [DEBUG] bamboo.baseURL='null'
03-Apr-2012 01:18:02 [DEBUG] bamboo.planResultKey='null'
03-Apr-2012 01:18:02 [DEBUG] bamboo.jobKey='null'
03-Apr-2012 01:18:02 [DEBUG] bamboo.token='null'

Also the docs say: "Artifact sharing is configured differently when using Maven 2 or 3 as a builder for your jobs." How is it different?

Seeing this exact same problem. I'm using Maven 3. This is driving me nuts.

Also, does the maven build plugin "bamboo-artifact-sharing-maven-plugin" need adding to the pom that is producing the artifact or the one consuming the artifact?

You need to define the bamboo-artifact-sharing-maven-plugin in both the project that is producing and consuming the artifact. Bamboo uses this plugin to figure out what artifacts are produced by Maven so that it can redirect their deployment repository to Bamboo and create Bamboo Artifacts for the produced Maven artifacts.

That doesn't explain "No maven artifacts have been produced for this Job".

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,810 views 0 6
Read article

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