I am using sbt 1.1.5 and get the following error when I run 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")
I am also using sbt plugins sbt-assembly
and sbt-dynver
.
The strange thing is that I can see sbt published pom file onto the repo, error happends when publishing the fat jar.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.