Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何设置 Maven 以首先从我自己的远程存储库(使用 Archiva)检索外部依赖项,如果找不到,Archiva 将从外部源下载,同时保存下载的依赖项?
你基本上必须设置你的.m2/settings.xml文件,没什么特别的。 这是一个非常全面的指南。虽然基于 Artifactory,但 POM 配置方面显然是通用的。这应该为您提供所需的所有信息。
.m2/settings.xml