[英]IntelliJ with SBT plugin: Error Resolving [com.mycompany.mypackage]
I am trying to build a SBT based Scala project. 我正在尝试建立一个基于SBT的Scala项目。 The project has dependencies on packages on my company's local maven server.
该项目依赖于我公司的本地Maven服务器上的软件包。 From within the company's network, I was able to compile/package(from cli and IntelliJ) the project successfully yesterday.
从公司网络内部,我昨天能够成功编译/打包(来自cli和IntelliJ)项目。
Today from home from command prompt, When I do: 今天从命令提示符处从家里执行以下操作:
sbt assembly
to build the repo it works fine . 建立回购协议效果很好 。
But when I build from IntelliJ or do: 但是当我从IntelliJ构建或执行以下操作时:
sbt compile|package
It is hitting the maven server and failing. 它击中了Maven服务器并失败了。 My question is if the packages are already in the cache -
~/.ivy2/
then why maven server is hit. 我的问题是软件包是否已在缓存中
~/.ivy2/
那么为什么~/.ivy2/
Maven服务器。 Is there a way to avoid server hit ? 有没有办法避免服务器受到攻击 ?
做一点搜索,找到答案
$ sbt "set offline := true" run
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.