Idea, sbt, unable to repeat warning

I pushed my artifact to oss nexus repo, adding it to a dependency on another project. The idea warns me:

[warn] Unable to reparse com.github.kondaurovdev#jsonapi_2.11;0.1-SNAPSHOT from sonatype-snapshots, using Fri May 13 17:12:52 MSK 2016 [warn] Choosing sonatype-snapshots for com.github.kondaurovdev#jsonapi_2.11;0.1-SNAPSHOT 

Maybe I somehow pushed the artifact wrong? But I did it before, everything was in order. How to get rid of these warnings? Or just ignore them?

+42
intellij-idea nexus publishing sbt
May 14, '16 at 10:57
source share
2 answers

I had the same problem.

Have you published a version of SNAPSHOT for your artifact? If so this may be your problem.

As you know, when publishing locally, your snapshot version is stored in the .ivy2 / local directory. The remote version is stored in the .ivy2 / cache directory.

When viewing the .ivy2 / cache / {dependency} folder, you will see that it has downloaded only the xml and properties file. So just metadata and no cans. This is the actual reason why it cannot be analyzed because it does not exist.

Since .ivy2 / cache takes precedence over .ivy2 / local, it will not see your local published version. There are two ways to fix this.

  • Update snapshot version number (recommended)
  • Delete SNAPSHOT from your artifactory and delete the .ivy2 / cache / {dependency} folder for each client that has a local version.

In my opinion, the first one is the path.

+16
Aug 31 '16 at 9:54
source share

I had the same problem and it goes away after I add the following to my build.sbt :

 updateOptions := updateOptions.value.withLatestSnapshots(false) 

Detailed information can be found at https://github.com/sbt/sbt/issues/2650

+8
Mar 21 '17 at 19:00
source share



All Articles