I configured a Jenkins to deploy the artifact to Jfrog (community). This is what I want to have and instead what I have.
4.In Build : Invoke artifactory Maven and used clean install goals
In a 2nd spring-boot project which depends on the maven-example, I would like to have :
<dependency>
<groupId>com.example</groupId>
<artifactId>mavenexample</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
but I cannot retrieve the library if I do not use
<dependency>
<groupId>com.example</groupId>
<artifactId>mavenexample</artifactId>
<version>0.0.1-20200511.103423-1</version>
</dependency>
What I missed? (I already set the .m2 setting.xml to target my Jfrog)
Thank you in advance
What you are seeing is the expected behavior of Maven unique snapshots (as written by JF Meier in the comments).
Maven is using a high resolution timestamp to uniquely identify the snapshot version (this is the only supported snapshot type since Maven 3).