Do not get the last shot from artifactory

I use artifactory to serve jar files. I have scalaprojects with SBT. SBT cannot resolve recent pictures. It always allows the second version. I mean, if I clean up specific jar files from artifactory, I need to build twice. Only then does it become permitted.

Cleaning cans after the first assembly are artifacts:

- 1.2-SNAPSHOT
   - frameworks_2.11-1.2-20150221.064040-1-javadoc.jar
   - frameworks_2.11-1.2-20150221.064040-1-sources.jar
   - frameworks_2.11-1.2-20150221.064040-1.pom
   - frameworks_2.11-1.2-20150221.064040-2.jar
   - maven-metadata.xml
 - maven-metadata.xml

Even if the jar is present, it will not be resolved in my local project. After you build the framework, here is a list of artificial materials.

- 1.2-SNAPSHOT
   - frameworks_2.11-1.2-20150221.064040-1-javadoc.jar
   - frameworks_2.11-1.2-20150221.064040-1-sources.jar
   - frameworks_2.11-1.2-20150221.064040-1.pom
   - frameworks_2.11-1.2-20150221.064040-2-javadoc.jar
   - frameworks_2.11-1.2-20150221.064040-2-sources.jar
   - frameworks_2.11-1.2-20150221.064040-2.jar
   - frameworks_2.11-1.2-20150221.064040-2.pom
   - frameworks_2.11-1.2-20150221.064040-3.jar
   - maven-metadata.xml
 - maven-metadata.xml

After that, it becomes permitted. Now, even if you make some changes, you will create a jar, it is always allowed only from this. None of the new changes will be reflected.

- , ? - artifactory , .

+4
1

, jar. 2.11-1.2-20150221.064040-1, jar - 2.11-1.2-20150221.064040-2.
Artifactory, "Maven Snapshot Version Behavior" SBT . . stackoverflow question .
, :

1) , Artifactory ( / stackoverflow)
, build.timestamp:

publishTo := Some("Artifactory Realm" at "http://localhost:8081/artifactory/libs-snapshot-local;build.timestamp=" + new java.util.Date().getTime)

2) sbt-unique-version. Maven Snapshot Version Behavior "Deployer".

+3

All Articles