Search code examples
mavenazure-devopsartifactory

What configuration or variable caused Aritfactory to replace "-SNAPSHOT" with timestamp


Current CI pipeline can push artifact to Artifactory. I can see one of the snapshot artifact was built with suffix -SNAPSHOT like

my.first.app-0.0.1.SNAPSHOT.jar

across the pipeline, until it uploaded to Artifactory that the file name changed to

my.first.app-0.0.1-20211007.010722-1.jar

However there is another application

my.second.app-0.0.1.SNAPSHOT.jar

was processed by the same pipeline and after uploaded to Artifactory the file name stayed the same

my.second.app-0.0.1.SNAPSHOT.jar

So just wondering what variable caused the difference in behavior. My goald is to avoid this timestamp however I have no control in Artifactory settings and based on above observation, seems not an issue with repository level settings.


Solution

  • This behavior is a maven feature and not related to artifactory.

    See a similar question on this: Why the snapshot name always has date in its jar file name ? How to remove it