ivy 存储库未使用 sbt publish-local 更新

ivy repository not getting updated using sbt publish-local

我正在使用 publish-local(过去对我有用)将一个 jar 文件发布到我的本地 Ivy 存储库。 SBT 版本是 0.13.9。即使我在发布 jar 文件时没有遇到任何异常,我的本地 Ivy 存储库也没有得到更新(我必须删除缓存目录中的 ivy.xml 文件才能使进程正常工作)。同样的问题在另一台计算机上重复出现,因此它不是我的计算机特有的。我已经复制了 sbt 构建文件的片段。关于可能导致问题浮出水面的原因有什么想法吗?

organization := "com.test"

name := "test123"

version := "1.0.0"

scalaVersion := "2.11.7"

crossPaths := false

autoScalaLibrary := false

resourceDirectory in Compile := baseDirectory.value / "conf"

javacOptions in (Compile) ++= Seq("-Xdoclint:none")

resolvers ++= Seq(
  "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
  "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
)


libraryDependencies ++= {
  Seq(
  "junit" % "junit" % "4.12",
  "com.novocode" % "junit-interface" % "0.11" % "test",
  "com.amazonaws" % "aws-java-sdk" % "1.11.18"
  )
}

我删除了构建文件中的一些依赖项。我每次 运行 以下内容:

sbt clean reload compile publish-local

我能够使用以下插件完成此操作:

https://github.com/sbt/sbt-dirty-money

这允许从本地 ivy 存储库中删除较旧的已发布工件。