SBT 0.12.1下载错误SNAPSHOT

时间:2013-01-09 23:09:03

标签: scala maven sbt ivy

我使用mvn将一些SNAPSHOT依赖项部署到Sonatype OSS。 Sonatype为每个坐标存储了许多旧快照。我部署的SNAPSHOT的目录列表位于此问题的底部。

在我的sbt游戏中!项目,我添加了Sonatype SNAPSHOT存储库作为解析器。

val main = PlayProject(appName, appVersion, appDependencies, mainLang = SCALA).settings(
  // Add your own project settings here
  resolvers += "Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/"
)

但是,每次都会下载错误的SNAPSHOT。虽然sbt应下载最后部署的SNAPSHOT(20130109.225335-6),但它会下载第一个部署的SNAPSHOT(20130109.210948-1)。

$ rm -r ~/.ivy2/cache/edu.washington.cs.knowitall.chunkedextractor/
$ sbt clean compile
[info] Loading project definition from /scratch/github/knowitall/documentextractor/project
[info] Set current project to documentextractor (in build file:/scratch/github/knowitall/documentextractor/)
[success] Total time: 0 s, completed Jan 9, 2013 3:06:41 PM
[info] Updating {file:/scratch/github/knowitall/documentextractor/}documentextractor...
[info] downloading http://repo.typesafe.com/typesafe/snapshots/edu/washington/cs/knowitall/chunkedextractor/chunkedextractor_2.9.2/1.0.1-SNAPSHOT/chunkedextractor_2.9.2-1.0.1-20130109.210948-1.jar ...
[info]  [SUCCESSFUL ] edu.washington.cs.knowitall.chunkedextractor#chunkedextractor_2.9.2;1.0.1-SNAPSHOT!chunkedextractor_2.9.2.jar (1079ms)
[info] Done updating.

知道如何解决此问题并让sbt下载最新的SNAPSHOT吗?这是sbt特定问题还是与Play!有关?

以下是我的工件在Sonatype上的快照的目录列表。

https://oss.sonatype.org/content/repositories/snapshots/edu/washington/cs/knowitall/chunkedextractor/chunkedextractor_2.9.2/1.0.1-SNAPSHOT/

chunkedextractor_2.9.2-1.0.1-20130109.210948-1-javadoc.jar   Wed Jan 09 15:09:55 CST 2013    361379   
chunkedextractor_2.9.2-1.0.1-20130109.210948-1-javadoc.jar.md5   Wed Jan 09 15:09:56 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.210948-1-javadoc.jar.sha1  Wed Jan 09 15:09:56 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.210948-1-sources.jar   Wed Jan 09 15:09:53 CST 2013    17175    
chunkedextractor_2.9.2-1.0.1-20130109.210948-1-sources.jar.md5   Wed Jan 09 15:09:54 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.210948-1-sources.jar.sha1  Wed Jan 09 15:09:53 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.210948-1.jar   Wed Jan 09 15:09:48 CST 2013    178994   
chunkedextractor_2.9.2-1.0.1-20130109.210948-1.jar.md5   Wed Jan 09 15:09:49 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.210948-1.jar.sha1  Wed Jan 09 15:09:49 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.210948-1.pom   Wed Jan 09 15:09:49 CST 2013    3725     
chunkedextractor_2.9.2-1.0.1-20130109.210948-1.pom.md5   Wed Jan 09 15:09:50 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.210948-1.pom.sha1  Wed Jan 09 15:09:50 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.222121-2-javadoc.jar   Wed Jan 09 16:21:29 CST 2013    363291   
chunkedextractor_2.9.2-1.0.1-20130109.222121-2-javadoc.jar.md5   Wed Jan 09 16:21:30 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.222121-2-javadoc.jar.sha1  Wed Jan 09 16:21:30 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.222121-2-sources.jar   Wed Jan 09 16:21:27 CST 2013    17195    
chunkedextractor_2.9.2-1.0.1-20130109.222121-2-sources.jar.md5   Wed Jan 09 16:21:27 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.222121-2-sources.jar.sha1  Wed Jan 09 16:21:27 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.222121-2.jar   Wed Jan 09 16:21:21 CST 2013    177267   
chunkedextractor_2.9.2-1.0.1-20130109.222121-2.jar.md5   Wed Jan 09 16:21:22 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.222121-2.jar.sha1  Wed Jan 09 16:21:22 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.222121-2.pom   Wed Jan 09 16:21:23 CST 2013    3725     
chunkedextractor_2.9.2-1.0.1-20130109.222121-2.pom.md5   Wed Jan 09 16:21:23 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.222121-2.pom.sha1  Wed Jan 09 16:21:23 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.223017-3-javadoc.jar   Wed Jan 09 16:30:25 CST 2013    363291   
chunkedextractor_2.9.2-1.0.1-20130109.223017-3-javadoc.jar.md5   Wed Jan 09 16:30:26 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.223017-3-javadoc.jar.sha1  Wed Jan 09 16:30:25 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.223017-3-sources.jar   Wed Jan 09 16:30:22 CST 2013    17195    
chunkedextractor_2.9.2-1.0.1-20130109.223017-3-sources.jar.md5   Wed Jan 09 16:30:23 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.223017-3-sources.jar.sha1  Wed Jan 09 16:30:23 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.223017-3.jar   Wed Jan 09 16:30:18 CST 2013    177267   
chunkedextractor_2.9.2-1.0.1-20130109.223017-3.jar.md5   Wed Jan 09 16:30:18 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.223017-3.jar.sha1  Wed Jan 09 16:30:18 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.223017-3.pom   Wed Jan 09 16:30:19 CST 2013    3725     
chunkedextractor_2.9.2-1.0.1-20130109.223017-3.pom.md5   Wed Jan 09 16:30:19 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.223017-3.pom.sha1  Wed Jan 09 16:30:19 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.224717-4-javadoc.jar   Wed Jan 09 16:47:24 CST 2013    363343   
chunkedextractor_2.9.2-1.0.1-20130109.224717-4-javadoc.jar.md5   Wed Jan 09 16:47:24 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.224717-4-javadoc.jar.sha1  Wed Jan 09 16:47:24 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.224717-4-sources.jar   Wed Jan 09 16:47:21 CST 2013    17198    
chunkedextractor_2.9.2-1.0.1-20130109.224717-4-sources.jar.md5   Wed Jan 09 16:47:22 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.224717-4-sources.jar.sha1  Wed Jan 09 16:47:22 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.224717-4.jar   Wed Jan 09 16:47:17 CST 2013    177369   
chunkedextractor_2.9.2-1.0.1-20130109.224717-4.jar.md5   Wed Jan 09 16:47:18 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.224717-4.jar.sha1  Wed Jan 09 16:47:17 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.224717-4.pom   Wed Jan 09 16:47:18 CST 2013    3725     
chunkedextractor_2.9.2-1.0.1-20130109.224717-4.pom.md5   Wed Jan 09 16:47:19 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.224717-4.pom.sha1  Wed Jan 09 16:47:18 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.225244-5-javadoc.jar   Wed Jan 09 16:52:52 CST 2013    363343   
chunkedextractor_2.9.2-1.0.1-20130109.225244-5-javadoc.jar.md5   Wed Jan 09 16:52:52 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.225244-5-javadoc.jar.sha1  Wed Jan 09 16:52:52 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.225244-5-sources.jar   Wed Jan 09 16:52:49 CST 2013    17198    
chunkedextractor_2.9.2-1.0.1-20130109.225244-5-sources.jar.md5   Wed Jan 09 16:52:50 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.225244-5-sources.jar.sha1  Wed Jan 09 16:52:50 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.225244-5.jar   Wed Jan 09 16:52:45 CST 2013    177369   
chunkedextractor_2.9.2-1.0.1-20130109.225244-5.jar.md5   Wed Jan 09 16:52:46 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.225244-5.jar.sha1  Wed Jan 09 16:52:45 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.225244-5.pom   Wed Jan 09 16:52:46 CST 2013    3725     
chunkedextractor_2.9.2-1.0.1-20130109.225244-5.pom.md5   Wed Jan 09 16:52:47 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.225244-5.pom.sha1  Wed Jan 09 16:52:46 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.225335-6-javadoc.jar   Wed Jan 09 16:53:42 CST 2013    363343   
chunkedextractor_2.9.2-1.0.1-20130109.225335-6-javadoc.jar.md5   Wed Jan 09 16:53:43 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.225335-6-javadoc.jar.sha1  Wed Jan 09 16:53:42 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.225335-6-sources.jar   Wed Jan 09 16:53:40 CST 2013    17198    
chunkedextractor_2.9.2-1.0.1-20130109.225335-6-sources.jar.md5   Wed Jan 09 16:53:40 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.225335-6-sources.jar.sha1  Wed Jan 09 16:53:40 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.225335-6.jar   Wed Jan 09 16:53:35 CST 2013    177369   
chunkedextractor_2.9.2-1.0.1-20130109.225335-6.jar.md5   Wed Jan 09 16:53:36 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.225335-6.jar.sha1  Wed Jan 09 16:53:36 CST 2013    40   
chunkedextractor_2.9.2-1.0.1-20130109.225335-6.pom   Wed Jan 09 16:53:36 CST 2013    3725     
chunkedextractor_2.9.2-1.0.1-20130109.225335-6.pom.md5   Wed Jan 09 16:53:37 CST 2013    32   
chunkedextractor_2.9.2-1.0.1-20130109.225335-6.pom.sha1  Wed Jan 09 16:53:37 CST 2013    40   
maven-metadata.xml   Wed Jan 09 16:53:43 CST 2013    1244     
maven-metadata.xml.md5   Wed Jan 09 16:53:44 CST 2013    32   
maven-metadata.xml.sha1  Wed Jan 09 16:53:43 CST 2013    40   

更新:build.properties指定sbt.version=0.11.3。也许Play正在强制使用sbt的旧版本。

1 个答案:

答案 0 :(得分:0)

尝试其中一项可能对您有所帮助:

1)运行'update'

2)修改依赖于“groupId”%%“artifactId”%“version”changing()并运行'update'