參考: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的原因,