ARTIFACTORY: Maven Versioning in Artifactory

AuthorFullName__c
Janardhana JL
articleNumber
000005518
FirstPublishedDate
2022-12-22T08:32:56Z
lastModifiedDate
2025-05-15

ARTIFACTORY: Maven Versioning in Artifactory

In a Maven environment, it is very important to understand the use of version numbers and follow maven naming conventions while using the Maven repository in Artifactory. A well thought out strategy can greatly simplify your dependency management workload and helps you to work smoothly against your maven projects by resolving and uploading the Artifacts and managing the releases and snapshot version of your binaries.


Please be informed that Currently, Artifactory supports the official apache maven version comparator. Hence we would recommend you follow the  Maven Version Order Specification according to your use case.

Below are a few External Articles for reference which provide additional details:

  1. Versioning on Maven Wiki
  2. Version Number Rules

 
If you use a nonstandard versioning scheme, Maven release and version goals might not yield the expected results. Because basic string comparison is performed on nonstandard versions, version comparison calculates the order of versions incorrectly in some cases. You may find issues with the metadata calculation and resolving the latest artifact versions, hence it is recommended to follow the standard maven versioning format.