Fork me on GitHub

attach-qar:latest-version

Full name:

net.oneandone.maven.plugins:attach-qar-maven-plugin:1.3-SNAPSHOT:latest-version

Description:

Retrieves the latest version of the project from Artifactory and put it into a property for later usage in other plugins.

Similar to the buildnumber:create Mojo. Invokes something like http://host/artifactory/api/search/latestVersion?reposname=repo1&g=commons-logging&a=commons-logging&remote=1. For more information take a look at the documention of the REST-API of Artifactory.

Attributes:

  • Requires a Maven project to be executed.
  • Binds by default to the lifecycle phase: install.

Required Parameters

Name Type Since Description
artifactoryUri URI - URI pointing to Artifactory, e.g. http://localhost:8081/artifactory/.
User property is: attach-qar.artifactory-uri.
latestVersionPropertyName String - Name of the property holding the latest version from the repository.
Default value is: latestVersionFromRepository.
User property is: attach-qar.latest-version-property-name.
reposName String - Name of the repository for resolution of the latest version.
Default value is: libs-release-local.
User property is: attach-qar.repos-name.

Parameter Details

artifactoryUri:

URI pointing to Artifactory, e.g. http://localhost:8081/artifactory/.
  • Type: java.net.URI
  • Required: Yes
  • User Property: attach-qar.artifactory-uri

latestVersionPropertyName:

Name of the property holding the latest version from the repository.
  • Type: java.lang.String
  • Required: Yes
  • User Property: attach-qar.latest-version-property-name
  • Default: latestVersionFromRepository

reposName:

Name of the repository for resolution of the latest version.
  • Type: java.lang.String
  • Required: Yes
  • User Property: attach-qar.repos-name
  • Default: libs-release-local