We have been trying to search a solution for this last few hours but no success.
We never installed Maven as such. Directly downloaded eclipse Mars, which comes with in-built Maven plugin. But it doesn't allow to provide the location for a maven repository. Our understanding is this that updating the value of M2_REPO in Workspace->preferences->Maven->User Settings should allow to specify the local Maven repository. But this is not editable, there is NO 'open-file' link either. We checked the local directory .m2 -> there is no settings.xml there
The question is :1) how do we update the M2_REPO variable in that case? 2) Where on our system can we expect to find maven's .settings.xml? (a windows search did not show a settings.xml)
答案 0 :(得分:3)
根据OP的要求,我将我之前的评论作为答案发布:
“更新设置”按钮仅使用settings.xml
文件中设置的内容刷新Eclipse配置。您必须自己提供文件,因为Maven插件不提供编辑器。如果要更改本地存储库位置,则需要在该文件中指定它。