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,
If you are creating a new plan, start at step 5.
- Click 'Home' to go to the Dashboard.
- Click the 'All Plans' tab.
- Locate the plan in the list and click this icon:

- The 'Configuration' tab will be displayed. Click the 'Builder' sub-tab.
- The 'Builder' sub-tab will be displayed.
- In the 'Builder' field, select the Maven builder that you wish to configure for this plan (e.g. "Maven 2"). The builder that you select will become one of the plan's capability requirements. For details please see Specifying a Plan's Capability Requirements.
Tip: If you want to configure a new shared local builder capability in Bamboo, you can do so by clicking the 'Add New Builder' link and entering the builder details in the window that displays. Once you have added the new builder, it will be available for you to select from the 'Builder' dropdown.
- The screen will refresh to display the builder settings specific to Maven:
- 'Project File' (Optional) — Enter the path to your Maven 2 project file, relative to the working sub directory specified (below). If you do not specify this, Maven 2 will use the
pom.xml
in the root of the working sub directory.
Please note, this field does not apply if you are using Maven 1.
- '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.
Tip: If you want to configure a new shared local JDK capability in Bamboo, you can do so by clicking the 'Add New JDK' link and entering the JDK details in the window that displays. Once you have added the new JDK, it will be available for you to select from the 'JDK' dropdown.
- Update the system environment variables, working directory, project file and plan dependencies setting. These are optional settings:
- 'System Environment Variables' (Optional) — Specify any additional* operating system environment variables you want to pass to your build; Please note, multiple variables must be separated with spaces, and parameters with spaces must be quoted (e.g 'ANT_OPTS=-Xms200m -Xmx700m'). You can also include Bamboo global or build-specific variables (see Using Global or Build-specific Variables).
* i.e. additional to the existing environment variables (see Viewing Bamboo's System Information for a list). Note that existing environment variables are automatically available to the builder, thus you don't need to specify them in the 'System Environment Variables' field.
- 'Working Sub Directory' (Optional) — If you leave this field blank, Bamboo will look for the build files in the build root directory (which is assumed to be the build's Working Directory, as described in Locating Important Directories and Files). You can override this option by specifying an alternative working directory (which must be a subdirectory of the root directory). For example, if your plan has a build script in a subdirectory, and the script needs to be run from within that subdirectory, you would type the name of that subdirectory in the 'Working Sub Directory' field.
- 'Determine plan dependencies from my Maven pom.xml' — Check this checkbox if you want Bamboo to automatically set up your plan dependencies based on snapshots detected in your
pom.xml
file (so you don't have to respecify build dependencies in Bamboo that you have specified in Maven). Maven 2 will parse your pom.xml after the initial build and generate the dependencies. You will be able to view these dependencies on the build plan page.
Please note, this field does not apply if you are using Maven 1.
Click the 'Save'/'Done' button if you are editing an existing plan. If you are creating a new plan, you can either click the 'Save'/'Done' button to create the plan without completing the rest of the wizard (check/uncheck the 'Enable Plan' checkbox to create your plan as enabled/disabled as desired) or click the 'Next' button to go to the next page:
Specifying a Plan's Capability Requirements