如何阻止Maven 2搜索远程存储库以获取特定的本地依赖? [英] How do I prevent Maven 2 from searching remote repositories for specific local depedencies?
本文介绍了如何阻止Maven 2搜索远程存储库以获取特定的本地依赖?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何阻止Maven 2搜索远程存储库中仅存在本地存储库中的特定依赖项?
How do I prevent Maven 2 from searching remote repositories for specific dependencies that are in the local repository only?
推荐答案
如何阻止Maven 2搜索远程存储库中仅存在本地存储库中的特定依赖
How do I prevent Maven 2 from searching remote repositories for specific depedencies that are in the local repository only
实际上,Maven不会除非:
Well, actually, Maven won't unless:
- 它们是SNAPSHOT依赖项,在这种情况下这是预期的行为。
- 他们缺少
.pom
文件,在这种情况下,您可以提供或生成它(请参阅下面的问题)。
- they are SNAPSHOT dependencies in which case this is the expected behavior.
- they are missing a
.pom
file in which case you can provide it or generate it (see questions below).
- How do I stop Maven 2.x from trying to retrieve non-existent pom.xml files for dependencies every build?
- Maven install-file won’t generate pom.xml
这篇关于如何阻止Maven 2搜索远程存储库以获取特定的本地依赖?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文