How to access a secured Nexus with sbt?

前端 未结 6 975
暗喜
暗喜 2020-11-27 12:37

I\'m trying to access a Nexus repository manager which requires some basic authentication. Everything works fine from Maven2 but when I try to configure things in SBT it can

6条回答
  •  被撕碎了的回忆
    2020-11-27 13:22

    Check for all files containing credentials.

    For me I had a new project in sbt 1.0 (instead of good old 0.13), where I had a ~/.sbt/1.0/global.sbt file containing my credentials, which I forgot about. So after a mandatory password change, the artifactory downloads was broken and locking my account.

    Would be nice if the chain of credentials and files filling them can be easily inspected. Would also be nice if SBT was a bit more careful and first checking if authentication/authorization is correct, before starting tot download X files and locking my account after 3 misauthenticated attempts.

提交回复
热议问题