我正在尝试像这样在global.sbt
中使用未加密密码访问Nexus OSS存储库,我的global.sbt
是:
credentials += Credentials("Sonatype Nexus", "repo.example.com", "username", "unencrypted_password")
我想考虑设置加密密码。
.credentials
的文件,放在 ~/.ivy2/.credentials
下。这是一个相当标准的位置,但显然你可以将文件放置在磁盘上的任何位置。realm = Sonatype Nexus Repository Manager
host = oss.sonatype.org
user = publishing@yourco.com
password = $encrypted
val credential: DirectCredentials = Credentials(Path.userHome / ".ivy2" / ".credentials")
val decrypted = credential.copy(passwd = decryptAes(credential.passwd))