SBT publish is not uploading jar file to artifactory (publish) java.io.IOException: PUT operation to URL failed with status code 400: Bad Request

432 views
Skip to first unread message

Rajkumar Natarajan

unread,
Sep 3, 2019, 4:25:33 PM9/3/19
to Nexus Users
Hi,

I've below build.sbt file.


name := "tads-akka-cluster-events"
    organization := "technorati"
    version := "0.0.3"
    scalaVersion := "2.11.12"
    crossScalaVersions := Seq("2.12.9", "2.13.0")
    publishMavenStyle := true

    PB.targets in Compile := Seq(
    scalapb.gen() -> (sourceManaged in Compile).value
    )

    libraryDependencies += "com.thesamet.scalapb" %% "scalapb-runtime" % scalapb.compiler.Version.scalapbVersion % "protobuf"

    credentials += Credentials("Artifactory Realm", "artifactory.svcs.opal.synacor.com", "admin", "password")

    publishTo := {
    val nexus = "http://artifactory.svcs.opal.synacor.com/"
    if (isSnapshot.value)
        Some("repository.synacor.com-snapshots" at nexus + "artifactory/synacor-local")
    else
        Some("repository.synacor.com-releases"  at nexus + "artifactory/synacor-local")
    }

    publishConfiguration := publishConfiguration.value.withOverwrite(true)
    publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true)
Message has been deleted

Rich Seddon

unread,
Sep 3, 2019, 4:33:53 PM9/3/19
to Nexus Users
Check the request.log  to see what request is returning the 400 response, and the nexus.log at the same time to see the reason.

Rich Seddon

unread,
Sep 3, 2019, 4:45:27 PM9/3/19
to Nexus Users
Oh wait, it looks like this is Artifactory, not Nexus Repo? If so, you're posting in the wrong place. :-) 

Rich


On Tuesday, September 3, 2019 at 3:25:33 PM UTC-5, Rajkumar Natarajan wrote:
Reply all
Reply to author
Forward
0 new messages