将胖子罐发布到私有sonatype链接存储库时出错

时间:2018-09-06 08:56:19

标签: scala sbt nexus sonatype sbt-sonatype

我正在使用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-assemblysbt-dynver
奇怪的是,我可以看到sbt将pom文件发布到仓库中,发布胖子罐时发生错误。

1 个答案:

答案 0 :(得分:0)