ControlTier > controltier-elements
 

MavenBuilder

A simple Builder to interface with Maven

Overview

Open in Workbench MavenBuilder: A simple Builder to interface with Maven

Design

Super Type
Builder
Role Concrete. (Objects can be created.)
Instance Names Unique
Notification false
Template Directory
Data View Bi-directional, proximity: 1
Logger Name Builder

Constraints

Allowed Child Dependencies

1: These types have a Singleton constraint. Only one instance may be added as a resource.

Allowed Parent Dependencies

Attributes

Exported Attributes

Name Property
basedir deployment-basedir
targetdir deployment-install-root

Defaults for Imported Attributes

Name Default
autoUpdate false
buildFile pom.xml
buildPath /bin:/usr/bin
buildTarget all
cruiseControlInterval 300
importMax 1
importMin 1
javaHome ${env.JAVA_HOME}
mavenHome ${env.MAVEN_HOME}
mavenOpts
packageExtension war
packageFilebase .*?
packageInstallRank 10
packageInstallroot ${entity.attribute.catalinaBase}/webapps
packageSeparator -
packageType war
requireBuildstamp false
scmBinding cvs
scmLabel
scmUser ${user.name}

Commands

Note
Commandline options displayed in square brackets "[]" are optional. If an option expects arguments, then angle brackets are shown after the option "<>". Any default value is shown within the brackets.

runBuildScript

runs the build script

Usage
runBuildScript [-basedir <>] [-buildstamp <>] [-javahome <>] [-mavenhome <>] [-mavenopts <>] [-path <>] [-target <>]

Options

Option Description
basedir directory where build resources reside
buildstamp build identifier
javahome Java installation to use for build
mavenhome Maven installation to use for build
mavenopts Maven options to use for build
path System path to use for build
target build target to evaluate

installPlugin

Install the ControlTier Maven plugin in the local Maven repository

Usage
installPlugin [-javahome <>] [-mavenhome <>] [-path <>]

Options

Option Description
javahome Java installation to use for build
mavenhome Maven installation to use for build
path System path to use for build

generateProject

Generate a CruiseControl project definition for inclusion in config.xml

Usage
generateProject [-artifactname <>] [-artifacttype <>] [-autoupdate <>] [-basedir <>] [-buildfile <>] [-buildtarget <>] -file <> [-interval <>] [-mailhost <>] [-notificationlist <>] [-project <${context.name}>] [-returnaddress <>]

Options

Option Description
artifactname CruiseControl artifact name
artifacttype CruiseControl artifact type
autoupdate Set to true to automatically update after build
basedir directory where build resources reside
buildfile Maven pom file for the build (specified relative to the base directory)
buildtarget Maven goal(s) for the build
file The absolute path of the project file to generate for inclusion by CruiseControl
interval Minimum duration between builds in seconds
mailhost CruiseControl mail server address
notificationlist Comma separated list of email addresses to be notified about the build
project Name of the CruiseControl project to generate
returnaddress CruiseControl returned mail address

Related Types

The following types are defined for use with MavenBuilder.

BuilderMavenHome

Overview

Open in Workbench BuilderMavenHome: Maven instance that should be used

Design

Super Type
BuilderSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Attributes

Exported Attributes
Name Property
mavenHome settingValue

BuilderMavenOpts

Overview

Open in Workbench BuilderMavenOpts: Maven options that should be used

Design

Super Type
BuilderSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Attributes

Exported Attributes
Name Property
mavenOpts settingValue

BuilderScmCheckExternal

Overview

Open in Workbench BuilderScmCheckExternal: Subversion specific external definition to check for last changed revision

Design

Super Type
BuilderSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Attributes

Exported Attributes
Name Property
scmCheckExternal settingValue

BuilderVersionMajor

Overview

Open in Workbench BuilderVersionMajor: Major version number to use to generate a buildstamp

Design

Super Type
BuilderSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Attributes

Exported Attributes
Name Property
versionMajor settingValue

BuilderVersionMinor

Overview

Open in Workbench BuilderVersionMinor: Minor version number to use to generate a buildstamp

Design

Super Type
BuilderSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Attributes

Exported Attributes
Name Property
versionMinor settingValue

BuilderVersionRelease

Overview

Open in Workbench BuilderVersionRelease: Release version number to use to generate a buildstamp

Design

Super Type
BuilderSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Attributes

Exported Attributes
Name Property
versionRelease settingValue

BuilderVersionBuild

Overview

Open in Workbench BuilderVersionBuild: Build version number to use to generate a buildstamp (often pulled from Subversion, etc)

Design

Super Type
BuilderSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Attributes

Exported Attributes
Name Property
versionBuild settingValue

BuilderNotificationList

Overview

Open in Workbench BuilderNotificationList: Comma separated list of email addresses to be notified about the build

Design

Super Type
BuilderSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Attributes

Exported Attributes
Name Property
notificationList settingValue