0
我使用publish-local(過去曾爲我工作)發佈一個jar文件到我的本地常春藤庫。 Sbt版本是0.13.9。儘管我在發佈jar文件時沒有遇到任何異常,但我的本地常駐資源庫並未更新(爲了使進程正常工作,我必須移除緩存目錄中的ivy.xml文件)。同樣的問題被複制到另一臺計算機上,因此它不是特定於我的計算機。我已經複製了sbt構建文件的片段。有關可能導致問題出現的任何想法?常青藤資源庫沒有得到更新使用sbt publish-local
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