0
votes

I am using the Maven deploy plugin(3.0.0-M1/2.82)

to upload Snapshot jar to Jfrog Artifactory, but Plugin builds the SnapShot jar with the timeStamp and build Number(Default Behavior Of Maven Build with Timestamp while Remote Repository ) and says it uploading with name

example: project-extension-0.0.2-20200506.171928-1.jar but it uploads with SnapShot

name: project-extension-0.0.2-SNAPSHOT.jar(0.0.2-SNAPSHOT its Parent POM Version ) and replace it with the previous build Jar.

1
Welcome to StackOverflow! Please, read how to ask a good question. In your case: please edit your question to be more readable. Also, please provide details on what you want to achieve, your setup, and what is not working.Lapshin Dmitry

1 Answers

0
votes

This is how SNAPSHOTs work.

The file is uploaded with a timestamp name (and also saved as such internally). But usually just specify the version as 0.0.2-SNAPSHOT and Maven resolves the latest timestamp for you.

Artifactory keeps the different versions, but can be configured to keep only the last n SNAPSHOTs.