Hello,
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?
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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 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.