【idea】解决idea 执行maven build总下载 Downloading maven-metadata.xml文件

可以看到如下日志中打印了执行的命令行,其中包含 --update-snapshots,是强制更新的意思。

日志内容如下:

D:\env\jdk1.8.0_261\bin\java.exe --update-snapshots -s D:\env\apache-maven-3.8.6\conf\settings.xml -Dmaven.repo.local=D:\env\Maven_Repository -Dexec.executable=D:\env\jdk1.8.0_261\bin\java.exe exec:exec

INFO\] Scanning for projects... Downloading from alimaven: https://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/plugins/maven-metadata.xml 原因是idea的maven build中设置的强制更新`Always update snapshots`。所以执行java -jar 会添加`--update-snapshots`选项,就会强制更新maven元数据配置文件。 ![在这里插入图片描述](https://file.jishuzhan.net/article/1727560449911689217/461be6c5545ad2504d43255f82891638.webp) 参考文章: [Maven自动更新SNAPSHOT包](https://blog.csdn.net/Pa_Java/article/details/84591589)

相关推荐
努力学编程呀(๑•ี_เ•ี๑)2 小时前
【在 IntelliJ IDEA 中切换项目 JDK 版本】
java·开发语言·intellij-idea
vx1_Biye_Design4 小时前
基于Spring Boot+Vue的学生管理系统设计与实现-计算机毕业设计源码46223
java·vue.js·spring boot·spring·eclipse·tomcat·maven
计算机学姐1 天前
基于SpringBoot的民宿预定管理系统【三角色+个性化推荐算法+数据可视化统计】
java·vue.js·spring boot·mysql·信息可视化·intellij-idea·推荐算法
noBt1 天前
Windows IDEA 卡顿严重
java·ide·intellij-idea
小疙瘩1 天前
去掉 IDEA 中 mybatis配置文件的局部背景颜色(图解)
java·ide·intellij-idea
qq_336313931 天前
javaweb-maven单元测试
java·开发语言·maven
_周游1 天前
Java8 API文档搜索引擎_3.搜索模块(实现细节)
java·搜索引擎·intellij-idea
工具罗某人1 天前
IDEA JRebel插件实现热部署
java·ide·intellij-idea
计算机毕设指导61 天前
基于微信小程序的校园二手交易系统【源码文末联系】
java·spring boot·spring·微信小程序·小程序·tomcat·maven
dear_bi_MyOnly2 天前
【多线程——线程状态与安全】
java·开发语言·数据结构·后端·中间件·java-ee·intellij-idea