当我构建我自己的项目时,我得到了错误:
Failure to find com.google.gwt:gwt-user:jar:2.5 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
但从物理上讲,这个罐子存在于我当地的仓库里。我在~/.m2中也有settings.xml,但这是我公司
我们的开发人员机器安装在一个安全的环境中(比如说A),没有互联网接入。我们可以将在internet计算机上创建的.m2/存储库文件夹(例如B)移动到受保护ENV中linux机器上的文件夹,并将该文件夹用作存储库。开发人员在同一环境中使用Windows。settings.xml看起来如下所示。
<mirror>
<id>repo1</id>
<name>Local proxy of central repo</name>
<url>file:////**%Linux_IP%**/ma