SNAPSHOT dependency with classifiers not updated
See original GitHub issueRef #641
sbt version: 0.13.5
- old version of dependency in local ivy cache
- publish updated dependency to nexus repository
- sbt update
- 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:
- Created 9 years ago
- Reactions:4
- Comments:26 (10 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This problem still exists in latest version
sbt.version=0.13.11
and in my build.sbt :
but after executing
sbt update
only main dependencies updated and “tests” classified dependencies does not update. I should remove them manually from .ivy2 folderNote that the version is snapshot
apparently still an issue in sbt 1.1.6
% "1.0.0-SNAPSHOT" % Test classifier "tests"