【maven】Maven插件篇 --- maven项目 mvn install 报错: Failed to execute goal on project 项目名: Could not resolve dependencies for project

参考:Maven实用技巧

https://msd.misuland.com/pd/3255817963235707346

报错:

maven项目 mvn install 报错: 

[ERROR] Failed to execute goal on project 项目名XXX: Could not resolve dependencies for project com.项目名XXX:war:1.0.0-SNAPSHOT: Failure to find 项目名1XXX:jar:0.1.0-SNAPSHOT in 远程Maven仓库地址 was cached in the local repository, resolution will not be reattempted until the update interval of releases has elapsed or updates are forced -> [Help 1]

解决方式:

 可以执行 ,即指定之前模块继续编译

mvn -rf  项目模块名

执行后可以看到  详细的  警告 以及Error的原因,

猜你喜欢

转载自www.cnblogs.com/sxdcgaq8080/p/12640982.html
今日推荐