Skip to content

Incorrect Maven Snapshot file resolution #679

@fommil

Description

@fommil

steps

lazy val root = (project in file(".")).
  settings(
    libraryDependencies += "com.github.fommil" % "java-logging" % "1.2-SNAPSHOT",
    resolvers += Resolver.sonatypeRepo("public")
  )

original report

I have discussed this on the mailing list, but not received any response to date:

https://groups.google.com/d/topic/simple-build-tool/ayKrOWrBF94/discussion

Basically, when depending on this project which is published on sonatype snapshots

https://oss.sonatype.org/content/repositories/snapshots/com/github/fommil/java-logging/1.0-SNAPSHOT/maven-metadata.xml

SBT seems to incorrectly calculate the name of the jar files. Instead of simply reading them off the metadata file, SBT appears to be calculating them from the timestamp information. There is no guarantee these all agree, and indeed this is an example of where they do not.

I'm using sbt-0.12.2 on OS X.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions