ControlTier > controltier-elements
 

MavenZip

Zip archive of Maven

Overview

Open in Workbench MavenZip: Zip archive of Maven

Intent

Automates the maven installation using the maven zip distribution.

Problem

Automating the build is only useful once the environment is setup, this module automates the maven installation which is a frequently a prerequisite and one-time installation requirement. This package module, when used as a dependency of a MavenBuilder deployment, will ensure that Maven is installed. Addressess following issues:

  • Automates the maven package installation necessary for Continuous Integration when maven is needed.
  • Can be used for any maven environment in order to bootstrap a build process

Design

Super Type
PlatformZip

A PlatformZip subtype which requires that the mavenPackageBase attribute is set correctly

Role Concrete. (Objects can be created.)
Instance Names Unique
Notification false
Template Directory
Data View Children, proximity: 1
Logger Name MavenZip

Constraints

Allowed Child Dependencies

  • Package

Allowed Parent Dependencies

Limit referrers to be objects of the MavenBuilder deployment type

Attributes

Exported Attributes

Name Property Description
mavenPackageBase package-base package base must be equal to the base directory of the maven installation root (MAVEN_HOME)

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.

extract

Extract the package archive.

Extracts the distribution into the installation root, ensures that the package base and the base of the installation root are the same.

Usage
extract [-base <>] -filename <> [-filtersfile <>] -installroot <> -url <>

Options

Option Description
base package base name
filename the filename
filtersfile filtersfile
installroot the install root
url the repo url