我使用Spring STS (sts-springsourcetoolsuite)进行开发,在我的公司不允许从互联网/公共存储库下载jars。在我的pom.xml中,我没有指定像http://repo1.maven.org/maven2这样的公共存储库,但是它会自动引用这个公共存储库。
我不能理解如何避免从未指定的存储库下载jars?
发布于 2012-07-08 03:18:55
我假设您的公司有内部maven存储库,并且只允许使用该存储库?基于Exclude central repository thread,您所要做的就是在settings.xml中将内部存储库命名为central。
https://stackoverflow.com/questions/11377855
复制相似问题