Full name:
zone.gryphon.maven.plugins:scm-metadata-maven-plugin:1.8:metadata
Description:
Segment | Index | Negative Index |
---|---|---|
alpha | 0 | -2 |
bravo | 1 | -1 |
Attributes:
Name | Type | Since | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<directory> | File | 1.0 | Directory to start search for SCM configuration in. Parent
directories will be recursively checked until the SCM configuration
is discovered, or the root folder is reached. Default value is: ${project.basedir}. |
|||||||||||||||
<prefix> | String | 1.0 | Prefix to apply to all property names. Default value is: scm.metadata.. |
|||||||||||||||
<remotePathNotation> | String | 1.0 | A comma separated list of values indicating the format to use for
the remote SCM path properties. Valid values which can be included in the list:
Concrete examples of the properties generated for an SCM with a remote path of /alpha/bravo:
Default value is: ARRAY. |
|||||||||||||||
<rename> | Map | 1.0 | A map of String to String which allows
for properties to be renamed before they're set. Each key is the
name of a property (after the prefix is applied), and
the value is what the property should be renamed to. For example, if using the default prefix "scm.metadata.", a map entry "scm.metadata.revision" -> "foo" would result in the plugin setting the property "foo" instead of "scm.metadata.revision" (the value of the property is unaffected). Since the rename happens after the prefix is applied, any custom prefix should be included in the map key. For example, if using the custom prefix "bar.", the map entry "bar.revision" -> "foo" would result in the plugin setting the property "foo" instead of "bar.revision" (again, the value of the property is unaffected). When configuring the value in the POM, the more compact map syntax should be used: <configuration> <rename> <scm.metadata.revision>foo</scm.metadata.revision> </rename> </configuration> |
|||||||||||||||
<shortRevisionLength> | int | 1.0 | The maximum length of revision.short. Default value is: 8. |
|||||||||||||||
<skip> | boolean | 1.0 | If true, plugin execution will be skipped Default value is: false. |
|||||||||||||||
<type> | String | 1.0 | SCM implementation to use when calculating metadata. Valid options:
Default value is: auto. |
PROPERTY notation | ARRAY notation | Property Value |
---|---|---|
remote.path.segment.0 | remote.path.segment[0] | alpha |
remote.path.segment.1 | remote.path.segment[1] | bravo |
remote.path.segment.-1 | remote.path.segment[-1] | bravo |
remote.path.segment.-2 | remote.path.segment[-2] | alpha |
<configuration> <rename> <scm.metadata.revision>foo</scm.metadata.revision> </rename> </configuration>