maven中实战篇4-编译打包报duplicate declaration of version (?)解决
创始人
2024-11-14 11:05:22

一  问题标错

1.1. 说明

Some problem were encountered while building the effective for  com.pab.dpscn.apaas.parent:dpscn-business-dao:jar:2:0.6

‘dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: com.pab.dpscn.apaas.parnet:dpscn-apaas-parnet-common:jar -> duplicate declaration of version (?) @com.pab.dpscn.apaas.parnet:dpscn-apaas-business-dao:[unkonwn-version],D:\dpscn-apaas\dpscn-apaas-business-dao\pom.xml, line 111,column 21

It is higly recommended to fix these problems because they threaten the stability of your build .

For this reason, future maven versions might no logger supprt building such malformed projects.

解释说明:

蓝色部分说明: com.pab.dpscn.apaas.parent:dpscn-business-dao:jar:2:0.6 此包构建有问题

红色部分说明: com.pab.dpscn.apaas.parnet:dpscn-apaas-parnet-common:jar 此依赖包声明的版本必须唯一,说明此依赖坐标存在多个版本

绿色部分说明: 在dpscn-apaas-business-dao这个模块下的pom文件的line 111,column 21标记的依赖dpscn-apaas-parnet-common 有问题,此dpscn-apaas-parnet-common依赖可能存在不止一个,

解决办法:将将多余重复的dpscn-apaas-parnet-commo依赖进行删除。

相关内容

热门资讯

裸辞做“一人公司”,我后悔了 去年这个时候,一位以色列程序员正在东南亚旅行。他顺手把一个在脑子里转了很久的想法做成了产品,一个让任...
南京建成国内首个Pre-6G试... 4月21日,2026全球6G技术与产业生态大会在南京开幕。全息互动技术展台前,一名远在北京的工作人员...
超梵求职受邀参加“2025抖音... 超梵求职受邀参加“2025抖音巨量引擎成人教育行业生态大会”,探讨分享优质内容传播,服务万千学员。 ...
摩托罗拉Razr 2026(R... IT之家 4 月 22 日消息,摩托罗拉宣布新一代 Razr 折叠手机将于 4 月 29 日在美国发...
库克卸任,特纳斯领航:苹果新纪... 苹果首席执行官蒂姆·库克将卸任,硬件工程主管约翰·特纳斯将接任,苹果公司今天宣布此事。 库克将在夏季...