When you configure a plan, you need to specify which builder should be used for the plan's builds. If you specify a Maven builder, you will also need to choose a JDK.

To configure a Maven builder for a plan,

(info) If you are creating a new plan, start at step 5.

  1. Click 'Home' to go to the Dashboard.
  2. Click the 'All Plans' tab.
  3. Locate the plan in the list and click this icon:
  4. The 'Configuration' tab will be displayed. Click the 'Builder Configuration' sub-tab.
  5. The 'Builder Configuration' sub-tab will be displayed (see screenshot below).
  6. In the 'Builder' field, select the Maven builder that you wish to configure for this plan (e.g. "Maven 2").
    (info) The builder that you select will become one of the plan's capability requirements. For details please see Specifying a Plan's Capability Requirements.
  7. The screen will refresh to display the builder settings specific to Maven:
    • 'Goal' — Specify the Maven goal that you want Bamboo to execute each time the source code changes. For example: clean test (this will run the Maven goal 'clean' followed by the Maven goal 'test'). You can also use '-D' to define one or more JVM parameters, e.g.: -Djava.awt.headless=true (this will pass the parameter 'java.awt.headless' with a value of 'true'). You can also include variables (see Using Global or Build-specific Variables).
    • 'Build JDK' — Choose a JDK from the list. The JDK that you select will become one of the plan's capability requirements. For details please see Specifying a Plan's Capability Requirements.

      You can then specify these generic JDK capabilities as requirements for your plan.

  8. Update the system environment variables and working directory:
  9. Specifying a Plan's Capability Requirements