我已经更新到 SBT 1.3.0。现在,我不断收到有关每个操作的警告:
[warn] insecure HTTP request is deprecated 'http://<company_domain>/nexus/content/repositories/mvnrepository/'; switch to HTTPS or opt-in as ("nexus" at "http://<company_domain>/nexus/content/repositories/mvnrepository/").withAllowInsecureProtocol(true)
Run Code Online (Sandbox Code Playgroud)
我在~/.sbt/repositories文件中尝试了以下选项:
nexus: ("http://<company_domain>/nexus/content/repositories/mvnrepository/").withAllowInsecureProtocol(true)
Run Code Online (Sandbox Code Playgroud)
和
("nexus" at "http://<company_domain>/nexus/content/repositories/mvnrepository/").withAllowInsecureProtocol(true)
Run Code Online (Sandbox Code Playgroud)
如何在全局范围内允许 http 存储库(对于所有配置的存储库)?
小智 3
创建~/.sbt/resolvers.sbt并添加到那里
resolvers += ("nexus" at "http://<company_domain>/nexus/content/repositories/mvnrepository/").withAllowInsecureProtocol(true)
Run Code Online (Sandbox Code Playgroud)
或者
resolvers ++= Seq(
("nexus" at "http://<company_domain>/nexus/content/repositories/mvnrepository/").withAllowInsecureProtocol(true),
("nexus" at "http://<company_domain>/nexus/content/repositories/mvnrepository/").withAllowInsecureProtocol(true),
...
)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5159 次 |
| 最近记录: |