Search code examples
mavenazure-devopsartifactory

Artifactory - randomly add datetime to artifact name


From Azure CI pipeline I can see that before the build/artifact upload to Artifactory, the artifact id is

my-app-0.0.1-SNAPSHOT.jar

however after Artifactory upload, it becomes

my-app-0.0.1-20211006.161121-1.jar

But another Java project don't have such behavior hence no extra data/timestamp in the artifact name.

I assume the pipeline only upload the jar file without check the pom.xml, so what can be the cause of such difference in the naming convension.


Solution

  • When SNAPSHOTs are uploaded to Nexus or Artifactory, the suffix SNAPSHOT is automatically replaced by a timestamp and a number.

    This is perfectly normal and nothing to worry about.