引续
'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.duo:duo-shop:jar -> version (?) vs 3.8.5 @ line 71, column 21
It is highly recommended to fix these problems because they threaten the stability of your build.
For this reason, future Maven versions might no longer support building such malformed projects.
纠错
若依框架更换包名的时候,编译打包时候,出现上述错误。经分析判断,模块里引入了两次同样的库造成的。删除后即可正常。
文章讲述了在Maven项目中,由于依赖项定义不唯一(groupId:artifactId:type:classifier重复),可能导致构建稳定性问题。当框架包名更改时,如果未处理重复依赖,会触发错误。修正方法是删除多余的依赖。
5264

被折叠的 条评论
为什么被折叠?



