英文:
Intellij not using project-specific Maven settings.xml file
问题
我在我的计算机的.m2
文件夹中有一个名为“main”的settings.xml
主配置文件,我在大多数代码库中使用它。然而,我有一个Java/Maven/IntelliJ项目有一个自定义的settings.xml
。
为了避免每次都必须手动切换它们,我在我的IntelliJ项目中设置了路径指向这个“custom” settings.xml
文件,并勾选了“Override”框,据我所知,这应该会使用这个自定义的 settings.xml
文件而不是我.m2
文件夹中的那个。但出于某些原因,这并没有起作用:
它仍然试图使用位于/.m2
文件夹目录下的settings.xml
,而不是位于/git/
目录下的那个。我在这里做错了什么吗?
英文:
I have "main" settings.xml
file I use for the majority of my repos in my .m2 folder on my computer. However, I have 1 Java/Maven/IntelliJ project that has a custom settings.xml.
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. 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. Am I doing something wrong here???
答案1
得分: 2
这是一个已知的错误。请关注更新。
英文:
It's a known bug. Please follow it for updates.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论