sbt: publish to corporate Nexus repository unauthorized

前端 未结 2 1982
有刺的猬
有刺的猬 2021-01-30 23:46

Quick resolution

The required credential expects the exact realm as defined by nexus. See below how to find the one you have defined, but most certainly

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-31 00:07

    I suspect that your credentials file path may be incorrect. Try changing this:

    credentials += Credentials(Path.userHome / ".sbt" / ".credentials")
    

    to that:

    credentials += Credentials("c:/data/user/.sbt/.credentials")
    

    or try directly to troubleshoot first:

    credentials += Credentials("Sonatype Nexus Repository Manager", 
      "nexus.scala-tools.org", "admin", "admin123") 
    

    If these don't work check that your credentials are valid.

提交回复
热议问题