将fat jar发布到私有sonatype nexus存储库时出错

问题描述 投票:1回答:1

我正在使用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) Conf in build.sbt

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文件到repo上,发布fat jar时出错。

scala sbt nexus sonatype sbt-sonatype
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.