简体   繁体   English

如何判断Eclipse是否选择了我的Maven settings.xml

[英]How can I tell if Eclipse picks up my Maven settings.xml

我怎么知道的Eclipse拿起我settings.xml%homepath%/.m2/settings.xml

The answer to those kind of questions ( "How do I know that my file is being taken into account?" ) are generally answered with a very simple way: make the file invalid and see if it continues to work. 通常以一种非常简单的方式来回答这类问题( “我如何知道正在考虑我的文件?” ):使文件无效并查看其是否继续工作。

  • It it does, your file is ignored. 确实如此,您的文件将被忽略。
  • It it doesn't, your file isn't ignored. 事实并非如此,您的文件不会被忽略。

In this case, just write random words or whatever comes through your mind inside the settings.xml file and see if Eclipse throws an error. 在这种情况下,只需在settings.xml文件中写下随机的单词或任何您想到的东西,然后查看Eclipse是否引发错误。


As a side-note, you can probably be sure that Eclipse will pick it up. 作为旁注,您可以确定Eclipse会选择它。 Or it is a matter of going into "Window > Preferences > Maven > User Settings" and click on "Update Settings". 或者,只需进入“窗口>首选项> Maven>用户设置”,然后单击“更新设置”即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM