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.
我想知道是否有人找到了在(父)pom.xml 中指定 settings.xml 文件的技巧。
目标是避免每个开发人员都有自己的 - 可能是“自定义” - 这些设置的版本。相反,它将设置在公司网络的中心位置。
我知道在命令行上工作的“-s”,但是因为我们使用 Eclipse,所以在主项目 pom 文件中设置它会很简单。
谢谢你的帮助,
-马丁
不,你不能那样做。
您可以告诉每个人使用您在其中编辑全局设置 (conf/settings.xml) 的 maven 副本。