我正在使用sbt 1.1.5并在运行sbt publish
时收到以下错误:
[info] published project_2.11 to http://localhost:8081/repository/maven-releases/project/project_2.11/1.4.1+0-6b38d149+20180906-1611/project_2.11-1.4.1+0-6b38d149+20180906-1611.pom
[error] java.net.SocketException: Broken pipe (Write failed)
build.sbt
中的Conf:
resolvers += "Nexus" at "http://localhost:8081/repository/maven-releases/"
publishMavenStyle := true
publishTo := {
val nexus = "http://localhost:8081/repository/maven-releases/"
if (isSnapshot.value)
Some("snapshots" at nexus + "")
else
Some("releases" at nexus + "")
}
credentials += Credentials("Sonatype Nexus Repository Manager", "localhost", "admin", "admin123")
我也在使用sbt插件sbt-assembly
和sbt-dynver
。
奇怪的是,我可以看到sbt将pom文件发布到仓库中,发布胖子罐时发生错误。
答案 0 :(得分:0)