eclipse Maven 插件存储在哪里

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2342335/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 14:27:48  来源:igfitidea点击:

maven plugins stored where

javaeclipsemaven-2m2eclipse

提问by ant

Where are maven plugins stored? in the local repository as well? what happens if you build your application with eclipse? does it store the plugins inside the eclipse/plugins folder or still in the local repository?

Maven 插件存储在哪里?在本地存储库中?如果使用 Eclipse 构建应用程序会发生什么?它是将插件存储在 eclipse/plugins 文件夹中还是仍存储在本地存储库中?

回答by Pascal Thivent

Where are maven plugins stored? in the local repository as well?

Maven 插件存储在哪里?在本地存储库中?

Yes. Plugins are downloaded from a remote repository and stored in the local repository. The exact final location will thus depend on the groupId of the plugins (the core plugins end up in ~/.m2/repository/org/apache/maven/pluginswhere ~/stands for your home directory for example in windows server 2016 it is stored under this path C:\Users\YourUserName\.m2)

是的。插件从远程存储库下载并存储在本地存储库中。因此,准确的最终位置将取决于插件的的groupId(核心插件,最终~/.m2/repository/org/apache/maven/plugins在那里~/代表它是此路径下存放在Windows Server 2016的主目录,例如C:\Users\YourUserName\.m2

what happens if you build your application with eclipse?

如果使用 Eclipse 构建应用程序会发生什么?

Hmm... Nothing special.

嗯……没什么特别的。

Does it store the plugins inside the eclipse/plugins folder or still in the local repository?

它是将插件存储在 eclipse/plugins 文件夹中还是仍存储在本地存储库中?

No, Maven (embedded or external) uses the location defined in the <localRepository>element of the global or user settings(which defaults to ~/.m2/repository), unless you overrode the Local Repositorypath in Window > Preferences > Maven > User Settings.

不,Maven(嵌入式或外部)使用在<localRepository>全局或用户设置(默认为~/.m2/repository)的元素中定义的位置,除非您覆盖Window > Preferences > Maven > User Settings 中Local Repository路径。