alfresco:set-version

Full name:

org.alfresco.maven.plugin:alfresco-maven-plugin:2.2.0:set-version

Description:

Attributes:

  • Requires a Maven project to be executed.
  • The goal is thread-safe and supports parallel builds.
  • 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
User property is: maven.alfresco.customVersionSuffix.

Parameter Details

customVersionSuffix:

  • 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