java - maven插件存储在哪里

标签 java eclipse maven-2 m2eclipse

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

最佳答案

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

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

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

关于java - maven插件存储在哪里,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2342335/

相关文章:

java - 为什么 Math.floor(1.23456789 * 1e8)/1e8) 返回 1.23456788

java - 相等测试顺序会影响 Java 的性能吗?

eclipse - 如何让我的 Maven Junit 测试打印出与 Eclipse JUnit 生成的相同的堆栈跟踪?

java - 如果包类型是 POM,则创建 JAR 文件

java - 获取辅助显示器的尺寸

java - 为什么期间不具有可比性

eclipse - 在 plugin.xml 中使用 Eclipse 内置图标

Eclipse,在哪里更改当前调试行背景?

maven-2 - Maven 中的元配置文件

maven-2 - SLF4J:类路径包含多个 SLF4J 绑定(bind)