[英]Intellij not using project-specific Maven settings.xml file
I have "main" settings.xml
file I use for the majority of my repos in my .m2 folder on my computer.我在计算机上的 .m2 文件夹中有用于大部分存储库的“主要”
settings.xml
文件。 However, I have 1 Java/Maven/IntelliJ project that has a custom settings.xml.但是,我有 1 个具有自定义 settings.xml 的 Java/Maven/IntelliJ 项目。
Instead of having to swap them out each time, I set the path to this "custom" settings.xml in my IntelliJ project and ticked the "Override" box, which to my knowledge, should pull this custom settings.xml file and NOT the one in my .m2 folder.我不必每次都换掉它们,而是在我的 IntelliJ 项目中设置了这个“自定义”settings.xml 的路径,并勾选了“覆盖”框,据我所知,应该提取这个自定义 settings.xml 文件而不是一个在我的 .m2 文件夹中。 But this is not working for some reason:
但这由于某种原因不起作用:
It keeps trying to use the settings.xml
that is located in my /.m2
folder directory and NOT the one in mmy /git/
directory.它不停地尝试使用
settings.xml
位于在我的/.m2
文件夹目录,而不是一个在MMY /git/
目录。 Am I doing something wrong here???我在这里做错了什么???
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.