请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

老师,打包时报错,提示${artifactId}弃用,应该怎么改

Some problems were encountered while building the effective model for com.yti789:business:jar:0.0.1-SNAPSHOT
’dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: com.alibaba:fastjson:jar -> duplicate declaration of version 1.2.60 @ com.yti789:video:0.0.1-SNAPSHOT, D:\2project\javavideo\pom.xml, line 110, column 16
The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
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.
图片描述

我把 这个${artifactId} 换成 ${project.artifactId} 报下面这个错
Some problems were encountered while building the effective model for com.yti789:business:jar:0.0.1-SNAPSHOT
’dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: com.alibaba:fastjson:jar -> duplicate declaration of version 1.2.60 @ com.yti789:video:0.0.1-SNAPSHOT, D:\2project\javavideo\pom.xml, line 110, column 16
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.

正在回答 回答被采纳积分+3

1回答

提问者 慕粉1230329569 2021-08-13 11:26:30

已解决了    换成1.2.70版本

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号