我有一个简单的Sbt项目
name := "xxxx"
organization := "xxxxx"
version := "0.0.2-SNAPSHOT"
scalaVersion := "2.11.6"
resolvers += "spray repo" at "http://repo.spray.io"
scalacOptions in ThisBuild ++= Seq("-language:postfixOps", "-feature")
libraryDependencies ++=
Seq("io.spray" %% "spray-client" % "1.3.3",
"io.spray" %% "spray-json" % "1.3.2",
"com.typesafe.akka" %% "akka-actor" % "2.3.11",
"org.dspace" % "dspace-api" % "1.8.2",
"org.scalatest" %% "scalatest" % "2.2.4" % "test")
当我执行publishLocal时,我的快照总是在Ivy中更新,但是当我执行publishM2时它不起作用。我检查.m2文件夹中的源jar,它永远不会更新。我必须在我的本地.m2文件夹中手动删除我的工件的文件夹,然后再次执行发布。
有没有办法让sbt使用PublishM2替换.m2文件夹中的jar?