I am using artifactory to serve the jar files. I have scala
projects with SBT
. SBT is not able to resolve the latest snapshots. It is always resolving the 2nd version. I mean, if I clear the particular jar files from the artifactory
, I need to build twice. Only then, it is getting resolved.
Clearing the jars and after the first build, these are the arifacts :
- 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, not is not getting resolved in my local project. After building the framework jar once again, here is the artifactory list.
- 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 this, it is getting resolved. Now even if a make some changes are build the jar, it is always resolving from this only. None of the new changes will be getting reflected.
Can someone please tell me how to fix this issue ? Because of this, I need to clear the artifactory always and build the jars twice.