Apache Maven 1.x has reached its end of life, and is no longer supported. For more information, see the announcement. Users are encouraged to migrate to the current version of Apache Maven.

Tag Documentation

[tag libraries] [tags]

The following document contains a summary of all theJellytag libraries.

Tag Libraries

[tag libraries] [tags]

LibraryDescription
jelly:jeez

This tag library groups together the ant and werkz tag libraries into one namespace.This allows Maven scripts to set this as the default namespace to avoid folks having to usenamespace prefixes for common stuff.

jelly:maven

Various jelly tags provided by Maven to allow easier access its facilities.

jelly:tags

Shared code across the jelly taglibs provided by Maven.

jelly:werkz

Extensions to Werkz .

jelly:jeez

This tag library groups together the ant and werkz tag libraries into one namespace.This allows Maven scripts to set this as the default namespace to avoid folks having to usenamespace prefixes for common stuff.

Tag NameDescription
tagDefThis tag defines a dynamic tag in Jelly script. When the tag is invokedany attributes will be passed in as variables and the definition of thetag can use <define:invokeBody&gtto invoke its body.

This tag is similar to the <define:tag>tag in the definetag library.

targetWraps a Werkz <goal> to appear as anant <target> .

jelly:maven

Various jelly tags provided by Maven to allow easier access its facilities.

Tag NameDescription
addPathThis class takes a given path using an id and appends anotherpath (using refid ) to it.
concatConcat a set of files together into a single file.
copyResourcesA tag to copy resources to a given directory
getA tag to retrieve values from plugins
inputConcat a set of files together into a single file.
installPluginA Maven Jelly tag that will install a given plugin JAR using the plugin manager.
makeAbsolutePathJelly tag to convert a relative path into an absolute path by prepending the basedir if itis relative.
makeRelativePathJelly tag to convert an absolute path into a relative path by removing the basedir.
mavenA way of running maven as a Jelly tag get rid of 'throws Exception'
paramCheckA tag to check parameters are being passed correctly
pluginVarA tag to retrieve values from plugins replaced by the GetTag tag
pomMavenSession Jelly tag that creates a POM instance.By default, the inheritance in the POM isn't used.You must use the attribute useInheritance to activate it.
propertyA Maven Jelly tag that attempts to retrieve a property from the MavenJellyContextcontext and uses the provided default value in the event there is no valid valueretrieved using the key name provided. You may also optionally provide the nameyou would like to give the resultant property in the MavenJellyContext.
reactorReactor tag that processes a set of project descriptors taking intoconsideration the inter-project dependencies.

Used for building a set of projects in the correct order to satisfy anydependencies among the projects being processed. We use the basedir for the glob, but we need to set the descriptor. better use of inheritance from MavenTag
rootRelativePathConverts an absolute path into a path relative to a root dir. Forexample, if the root dir is "c:/apps/myproject" and the absolutepath is "c:/apps/myproject/path/subproject2" then the computedrelative path is "../..".
setA tag to set plugin values
snapshotSignatureCreate snapshot signature for non-release JARs and distributions.
uninstallPluginA Maven Jelly tag that will uninstall a given plugin JAR using the plugin manager.
userCheckA tag to check if a user name is set.

jelly:tags

Shared code across the jelly taglibs provided by Maven.

Tag NameDescription

jelly:werkz

Extensions to Werkz .

Tag NameDescription
mavenAttainGoalReplacement for werkz's AttainGoalTag which will lazy initialise goals.
mavenGoalReplacement for werkz's GoalTag which does not allow a goalto be redefined once defined.For Jelly scripts that are run which contain this tag it is assumed thatthey are being run in the order whereby the first definition wins.

Tags

[tag libraries] [tags]

jeez:tagDef

This tag defines a dynamic tag in Jelly script. When the tag is invokedany attributes will be passed in as variables and the definition of thetag can use <define:invokeBody&gtto invoke its body.

This tag is similar to the <define:tag>tag in the definetag library.

Attribute NameTypeDescription
escapeTextboolean
namejava.lang.String
trimboolean

jeez:target

Wraps a Werkz <goal> to appear as anant <target> .

Attribute NameTypeDescription
dependsjava.lang.String
descriptionjava.lang.String
escapeTextboolean
namejava.lang.StringSets the name of the target
prereqsjava.lang.String
trimboolean

maven:addPath

This class takes a given path using an id and appends anotherpath (using refid ) to it.

Attribute NameTypeDescription
escapeTextboolean
idjava.lang.StringSetter for the id property
refidjava.lang.StringSetter for the refid property
trimboolean

maven:concat

Concat a set of files together into a single file.

Attribute NameTypeDescription
basedirjava.io.FileSetter for the basedir property You only need to specify the project descriptor.
descriptorjava.io.FileSetter for the descriptor property
escapeTextboolean
goalsjava.lang.StringSetter for the goals property
ignoreFailuresbooleanSet the ignore failures flag.
outputFilejava.io.FileSet output file.
trimboolean

maven:copyResources

A tag to copy resources to a given directory

Attribute NameTypeDescription
escapeTextboolean
resourcesjava.util.List
todirjava.lang.String
trimboolean

maven:get

A tag to retrieve values from plugins

Attribute NameTypeDescription
escapeTextboolean
pluginjava.lang.String
propertyjava.lang.String
trimboolean
varjava.lang.String

maven:input

Concat a set of files together into a single file.

Attribute NameTypeDescription
basedirjava.io.FileSetter for the basedir property You only need to specify the project descriptor.
descriptorjava.io.FileSetter for the descriptor property
escapeTextboolean
filejava.io.FileSet output file.
goalsjava.lang.StringSetter for the goals property
ignoreFailuresbooleanSet the ignore failures flag.
trimboolean

maven:installPlugin

A Maven Jelly tag that will install a given plugin JAR using the plugin manager.

Attribute NameTypeDescription
cacheboolean
escapeTextboolean
filejava.io.File
trimboolean

maven:makeAbsolutePath

Jelly tag to convert a relative path into an absolute path by prepending the basedir if itis relative.

Attribute NameTypeDescription
basedirjava.io.FileSet the base directory.
escapeTextboolean
pathjava.lang.StringSet the path.
trimboolean
varjava.lang.StringSet the result variable.

maven:makeRelativePath

Jelly tag to convert an absolute path into a relative path by removing the basedir.

Attribute NameTypeDescription
basedirjava.io.FileSet the base directory.
escapeTextboolean
pathjava.lang.StringSet the path. This has to be absolute under basedir.
separatorjava.lang.StringSet the path separator to use.
trimboolean
varjava.lang.StringSet the result variable. Returns path if path is not absolute under basedir.

maven:maven

A way of running maven as a Jelly tag get rid of 'throws Exception'

Attribute NameTypeDescription
basedirjava.io.FileSetter for the basedir property You only need to specify the project descriptor.
descriptorjava.io.FileSetter for the descriptor property
escapeTextboolean
goalsjava.lang.StringSetter for the goals property
ignoreFailuresbooleanSet the ignore failures flag.
trimboolean

maven:paramCheck

A tag to check parameters are being passed correctly

Attribute NameTypeDescription
escapeTextboolean
failboolean
messagejava.lang.String
trimboolean
valuejava.lang.String

maven:pluginVar

A tag to retrieve values from plugins replaced by the GetTag tag

Attribute NameTypeDescription
escapeTextboolean
pluginjava.lang.String replaced by the GetTag tag
propertyjava.lang.String replaced by the GetTag tag
trimboolean
varjava.lang.String replaced by the GetTag tag

maven:pom

MavenSession Jelly tag that creates a POM instance.By default, the inheritance in the POM isn't used.You must use the attribute useInheritance to activate it.

Attribute NameTypeDescription
escapeTextboolean
projectDescriptorjava.io.FileSet MavenSession project descriptor.
trimboolean
useInheritancebooleanDefine if the pom must use the inheritance. Setted to false by default to keep a backward compatibility.
varjava.lang.StringSet var name for the POM.

maven:property

A Maven Jelly tag that attempts to retrieve a property from the MavenJellyContextcontext and uses the provided default value in the event there is no valid valueretrieved using the key name provided. You may also optionally provide the nameyou would like to give the resultant property in the MavenJellyContext.

Attribute NameTypeDescription
defaultValuejava.lang.String
escapeTextboolean
namejava.lang.String
trimboolean
varjava.lang.String

maven:reactor

Reactor tag that processes a set of project descriptors taking intoconsideration the inter-project dependencies.

Used for building a set of projects in the correct order to satisfy anydependencies among the projects being processed. We use the basedir for the glob, but we need to set the descriptor. better use of inheritance from MavenTag

Attribute NameTypeDescription
bannerjava.lang.StringSet the banner to be displayed for each project whileit is being processed.
basedirjava.io.FileSetter for the basedir propertyXXX if the method it overrides is deprecated, is this also deprecated?
basedirjava.io.FileSetter for the basedir property You only need to specify the project descriptor.
collectOnlybooleanSet the collectOnly attribute. This controls whether reactorwill actually execute any goals on the projects, or simplycollect the sorted set of projects included in this reactorinvocation.
collectionVarjava.lang.StringSet the collectionVar attribute. This controls the contextvariable which will contain the sorted set of projects includedin this reactor invocation.
descriptorjava.io.FileSetter for the descriptor property
escapeTextboolean
excludesjava.lang.StringSet the excludes used to find projects.
globjava.lang.StringSet the glob used to find projects. Use includes/excludes instead.
goalsjava.lang.StringSetter for the goals property
ignoreFailuresbooleanSet the ignore failures flag.
includesjava.lang.StringSet the includes used to find projects.
postProcessingbooleanSet the postProcessing attribute.
projectListjava.util.ListSet the project list.
sortboolean
trimboolean

maven:rootRelativePath

Converts an absolute path into a path relative to a root dir. Forexample, if the root dir is "c:/apps/myproject" and the absolutepath is "c:/apps/myproject/path/subproject2" then the computedrelative path is "../..".

Attribute NameTypeDescription
escapeTextboolean
pathjava.lang.StringSet the path.
rootdirjava.io.FileSet the root directory.
trimboolean
varjava.lang.StringSet the result variable.

maven:set

A tag to set plugin values

Attribute NameTypeDescription
escapeTextboolean
pluginjava.lang.String
propertyjava.lang.String
trimboolean
valuejava.lang.Object

maven:snapshotSignature

Create snapshot signature for non-release JARs and distributions.

Attribute NameTypeDescription
escapeTextboolean
projectorg.apache.maven.project.ProjectSet the maven project object.
trimboolean

maven:uninstallPlugin

A Maven Jelly tag that will uninstall a given plugin JAR using the plugin manager.

Attribute NameTypeDescription
artifactIdjava.lang.String
escapeTextboolean
trimboolean

maven:userCheck

A tag to check if a user name is set.

Attribute NameTypeDescription
escapeTextboolean
trimboolean
userjava.lang.String

werkz:mavenAttainGoal

Replacement for werkz's AttainGoalTag which will lazy initialise goals.

Attribute NameTypeDescription
escapeTextboolean
namejava.lang.String
trimboolean

werkz:mavenGoal

Replacement for werkz's GoalTag which does not allow a goalto be redefined once defined.For Jelly scripts that are run which contain this tag it is assumed thatthey are being run in the order whereby the first definition wins.

Attribute NameTypeDescription
descriptionjava.lang.String
escapeTextboolean
namejava.lang.StringSets the name of the target
prereqsjava.lang.String
trimboolean