Intellij未使用项目特定的Maven settings.xml文件。

huangapple go评论74阅读模式
英文:

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文件夹中的那个。但出于某些原因,这并没有起作用:
Intellij未使用项目特定的Maven settings.xml文件。

它仍然试图使用位于/.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:
Intellij未使用项目特定的Maven settings.xml文件。

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.

huangapple
  • 本文由 发表于 2020年8月24日 23:06:49
  • 转载请务必保留本文链接:https://go.coder-hub.com/63563679.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定