question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SNAPSHOT dependency with classifiers not updated

See original GitHub issue

Ref #641

sbt version: 0.13.5

  1. old version of dependency in local ivy cache
  2. publish updated dependency to nexus repository
  3. sbt update
  4. cache still contains old version

Dependency declared like:

libraryDependencies += "org.test" %% "dep" % "0.1-SNAPSHOT" classifier "assembly" intransitive()

from sbt last:

[info] Resolving org.test#dep_2.11;0.1-SNAPSHOT ...
[debug] sbt-chain: Checking cache for: dependency: org.test#dep_2.11;0.1-SNAPSHOT {compile=[default(compile)]}
[debug] don't use cache for org.test#dep_2.11;0.1-SNAPSHOT: changing=true
[debug] don't use cache for org.test#dep_2.11;0.1-SNAPSHOT: changing=true
[debug]                 tried /home/user/.ivy2/local/org.test/dep_2.11/0.1-SNAPSHOT/ivys/ivy.xml
[debug]         local: no ivy file found for org.test#dep_2.11;0.1-SNAPSHOT
[debug] don't use cache for org.test#dep_2.11;0.1-SNAPSHOT: changing=true
[debug]         maven-metadata not available: /home/user/.m2/repository/org/test/dep_2.11/0.1-SNAPSHOT/maven-metadata.xml
[debug]                 tried file:/home/user/.m2/repository/org/test/dep_2.11/0.1-SNAPSHOT/dep_2.11-0.1-SNAPSHOT.pom
[debug]         Maven2 Local: no ivy file found for org.test#dep_2.11;0.1-SNAPSHOT
[debug] don't use cache for org.test#dep_2.11;0.1-SNAPSHOT: changing=true
[debug]                 tried http://nexus.domain.lan/nexus/content/groups/public/org/test/dep_2.11/0.1-SNAPSHOT/dep_2.11-0.1-SNAPSHOT.pom
[debug]         test-proxy: found md file for org.test#dep_2.11;0.1-SNAPSHOT
[debug]                 => http://nexus.domain.lan/nexus/content/groups/public/org/test/dep_2.11/0.1-SNAPSHOT/dep_2.11-0.1-SNAPSHOT.pom (0.1-SNAPSHOT)
[debug]         default-cache: revision in cache (not updated): org.test#dep_2.11;0.1-SNAPSHOT
[debug]         found org.test#dep_2.11;0.1-SNAPSHOT in sbt-chain

[NOT REQUIRED] org.test#dep_2.11;0.1-SNAPSHOT!dep_2.11.jar

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:4
  • Comments:26 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
nik-kashicommented, Apr 20, 2016

This problem still exists in latest version sbt.version=0.13.11

and in my build.sbt :

libraryDependencies ++= Seq(
...
"com.rh.cores" % "treasury" % treasuryVer changing(),
  "com.rh.cores" % "treasury" % treasuryVer % Test classifier "tests" changing(),
...

but after executing sbt update only main dependencies updated and “tests” classified dependencies does not update. I should remove them manually from .ivy2 folder

Note that the version is snapshot

1reaction
mverbistcommented, Sep 4, 2018

apparently still an issue in sbt 1.1.6

% "1.0.0-SNAPSHOT" % Test classifier "tests"

Read more comments on GitHub >

github_iconTop Results From Across the Web

SBT SNAPSHOT dependency with classifiers not updating
Hi,. I have two jars one with a classifier and one without. When a new SNAPSHOT version is published the jar with the...
Read more >
Snapshot dependencies with sources/test classifier are not ...
So we end up with something like: core-1.0-SNAPSHOT.jar core-1.0-SNAPSHOT-sources.jar ... Snapshot dependencies with sources/test classifier are not updated.
Read more >
Classifiers not working in Maven Snapshot repo for IVY
So I have got my Maven build deploying both Java5 and Java6 versions to my snapshot repo (Nexus). I do this with build...
Read more >
ivy won't resolve updated maven SNAPSHOT artifacts with ...
The situation I'm running into is as follows: I have a maven project that produces two artifacts foo-SNAPSHOT.jar and foo-SNAPSHOT-tests.jar ...
Read more >
Spring Boot Maven Plugin Documentation
The final <into> will claim anything left (in this case, any dependency that is not a SNAPSHOT) for the dependencies layer. The <application> ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found