-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
In trying to figure out #1750 I've hit this snag. Asides from it getting in the way, I wonder if it's indicative of anything, such as my setting up wrong.
steps
- Setup:
sbt.version=0.13.8
Dependency project, sbt-gh1750-bippy:
organization := "com.dwijnand"
name := "sbt-gh1750-bippy"
version := "0.1.0-SNAPSHOT"
scalaVersion := "2.11.7"
val localRelease = "local-release" at "http://localhost:8081/artifactory/libs-release-local"
val localSnapshot = "local-snapshot" at "http://localhost:8081/artifactory/libs-snapshot-local"
publishTo := Some(if (isSnapshot.value) localSnapshot else localRelease)
credentials := Seq(Credentials("Artifactory Realm", "localhost", "admin", "password"))Dependee project, sbt-gh1750-myapp:
organization := "com.dwijnand"
name := "sbt-gh1750-myapp"
version := "0.1.0-SNAPSHOT"
scalaVersion := "2.11.7"
val localRelease = "local-release" at "http://localhost:8081/artifactory/libs-release-local"
val localSnapshot = "local-snapshot" at "http://localhost:8081/artifactory/libs-snapshot-local"
resolvers += localSnapshot
libraryDependencies += "com.dwijnand" %% "sbt-gh1750-bippy" % "0.1.0-SNAPSHOT"- In
sbt-gh1750-bippy,publish - In
sbt-gh1750-myapp,reloadandupdate
problem
update outputs:
[info] Updating {file:/Users/dnw/Desktop/sbt-gh1750-myapp/}sbt-gh1750-myapp...
[info] Resolving jline#jline;2.12.1 ...
[warn] [NOT FOUND ] com.dwijnand#sbt-gh1750-bippy_2.11;0.1.0-SNAPSHOT!sbt-gh1750-bippy_2.11.jar (4ms)
[warn] ==== local-snapshot: tried
[warn] http://localhost:8081/artifactory/libs-snapshot-local/com/dwijnand/sbt-gh1750-bippy_2.11/0.1.0-SNAPSHOT/sbt-gh1750-bippy_2.11-0.1.0-20150706.083249-1.jar
[warn] http://localhost:8081/artifactory/libs-snapshot-local/com/dwijnand/sbt-gh1750-bippy_2.11/0.1.0-SNAPSHOT/sbt-gh1750-bippy_2.11-0.1.0-SNAPSHOT.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.dwijnand#sbt-gh1750-bippy_2.11;0.1.0-SNAPSHOT!sbt-gh1750-bippy_2.11.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) sbt.ResolveException: download failed: com.dwijnand#sbt-gh1750-bippy_2.11;0.1.0-SNAPSHOT!sbt-gh1750-bippy_2.11.jar
[error] Total time: 1 s, completed 06-Jul-2015 09:34:48
expectation
No error, downloads the published snapshot on update.
note
It feels to me like it's related to the fact that http://localhost:8081/artifactory/libs-snapshot-local/com/dwijnand/sbt-gh1750-bippy_2.11/0.1.0-SNAPSHOT/ shows:
maven-metadata.xml 06-Jul-2015 09:32 1.17 KB
maven-metadata.xml.md5 06-Jul-2015 09:32 32 bytes
maven-metadata.xml.sha1 06-Jul-2015 09:32 40 bytes
sbt-gh1750-bippy_2.11-0.1.0-20150706.083249-1-javadoc.jar 06-Jul-2015 09:32 340.70 KB
sbt-gh1750-bippy_2.11-0.1.0-20150706.083249-1-javadoc.jar.md5 06-Jul-2015 09:32 32 bytes
sbt-gh1750-bippy_2.11-0.1.0-20150706.083249-1-javadoc.jar.sha1 06-Jul-2015 09:32 40 bytes
sbt-gh1750-bippy_2.11-0.1.0-20150706.083249-1-sources.jar 06-Jul-2015 09:32 438 bytes
sbt-gh1750-bippy_2.11-0.1.0-20150706.083249-1-sources.jar.md5 06-Jul-2015 09:32 32 bytes
sbt-gh1750-bippy_2.11-0.1.0-20150706.083249-1-sources.jar.sha1 06-Jul-2015 09:32 40 bytes
sbt-gh1750-bippy_2.11-0.1.0-20150706.083249-1.pom 06-Jul-2015 09:32 821 bytes
sbt-gh1750-bippy_2.11-0.1.0-20150706.083249-1.pom.md5 06-Jul-2015 09:32 32 bytes
sbt-gh1750-bippy_2.11-0.1.0-20150706.083249-1.pom.sha1 06-Jul-2015 09:32 40 bytes
sbt-gh1750-bippy_2.11-0.1.0-20150706.083249-2.jar 06-Jul-2015 09:32 1.46 KB
sbt-gh1750-bippy_2.11-0.1.0-20150706.083249-2.jar.md5 06-Jul-2015 09:32 32 bytes
sbt-gh1750-bippy_2.11-0.1.0-20150706.083249-2.jar.sha1 06-Jul-2015 09:32 40 bytes
Note that the jar is -2.jar rather than -1.jar.
Re-publishing bippy "solves" this, but it's not ideal.
Reactions are currently unavailable