alfresco:set-version

Full name:

org.alfresco.maven.plugin:alfresco-maven-plugin:4.2.0-SNAPSHOT:set-version

Description:

Removes -SNAPSHOT suffix from the version number (if present), optionally replacing it with a timestamp. The result is provided in the Maven property ${noSnapshotVersion}. This feature is mostly needed to avoid Alfresco failing when installing AMP modules with non-numeric versions.

Attributes:

  • Requires a Maven project to be executed.
  • Since version: 1.0.
  • Binds by default to the lifecycle phase: initialize.

Required Parameters

Name Type Since Description
propertyName String 1.0 The Maven project property the stripped version is pushed into
Default value is: noSnapshotVersion.
User property is: maven.alfresco.propertyName.
snapshotSuffix String 1.0 The snapshotSuffix used to identify and strip the -SNAPSHOT version suffix See issue https://issues.alfresco.com/jira/browse/ENH-1232
Default value is: -SNAPSHOT.
User property is: maven.alfresco.snapshotSuffix.
snapshotToTimestamp boolean 1.0 Enable this option in order to replace -SNAPSHOT with the currentTimestamp of the artifact creation See issue https://issues.alfresco.com/jira/browse/ENH-1232
Default value is: false.
User property is: maven.alfresco.snapshotToTimestamp.

Optional Parameters

Name Type Since Description
customVersionSuffix String 1.0 Allows to append a custom (numeric) value to the current artifact's version, i.e. appending the SCM build number can be accomplished defining <customVersionSuffix>${buildnumber}</customVersionSuffix> in the plugin configuration.
User property is: maven.alfresco.customVersionSuffix.

Parameter Details

customVersionSuffix:

Allows to append a custom (numeric) value to the current artifact's version, i.e. appending the SCM build number can be accomplished defining <customVersionSuffix>${buildnumber}</customVersionSuffix> in the plugin configuration.
  • Type: java.lang.String
  • Since: 1.0
  • Required: No
  • User Property: maven.alfresco.customVersionSuffix

propertyName:

The Maven project property the stripped version is pushed into
  • Type: java.lang.String
  • Since: 1.0
  • Required: Yes
  • User Property: maven.alfresco.propertyName
  • Default: noSnapshotVersion

snapshotSuffix:

The snapshotSuffix used to identify and strip the -SNAPSHOT version suffix See issue https://issues.alfresco.com/jira/browse/ENH-1232
  • Type: java.lang.String
  • Since: 1.0
  • Required: Yes
  • User Property: maven.alfresco.snapshotSuffix
  • Default: -SNAPSHOT

snapshotToTimestamp:

Enable this option in order to replace -SNAPSHOT with the currentTimestamp of the artifact creation See issue https://issues.alfresco.com/jira/browse/ENH-1232
  • Type: boolean
  • Since: 1.0
  • Required: Yes
  • User Property: maven.alfresco.snapshotToTimestamp
  • Default: false