(maven报错)Failed to execute goal on project ...: Could not resolve dependencies for project ...
在新版的idea创建maven工程时,生成的pom.xml会自动将install的方式设置为war,导致1号子模块打成war,2号子模块打包时报错。在使用maven分模块开发时,将1号子模块打成jar包(后面证明有问题),再将2号子模块(依赖1号之模块)打包时报错。将自动生成的pom.xml中的war改为jar即可。
原创
2022-09-14 17:33:33 ·
10215 阅读 ·
0 评论