首页 > 其他 > 详细

idea maven打包 install 报错The packaging for this project did not assign a file to the build artifact

时间:2018-05-21 11:55:10      阅读:37921      评论:0      收藏:0      [点我收藏+]

如题,这其实是个低级错误,这个错的意思是,找不到这个插件的包。

原因很简单,不是找不到这个打包插件,而是自己的项目没有从maven仓库里加载这个包到项目里,因此会找不到。

看一下问什么会报这个错:

大家都知道,在idea中maven打包操作是点击install,而在maven打包时有两个install的地方如下图:

技术分享图片

我们在打包时如果点击了Plugins中的install时,就会报如题错误,其实我们在打包时应该操作Lifecycle下的install,这样项目就会自动去maven仓库下载需要的包,也就不会报错,问题就解决了。

idea maven打包 install 报错The packaging for this project did not assign a file to the build artifact

原文:https://www.cnblogs.com/bestxyl/p/9065897.html

(6)
(37)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!