首页 > 其他 > 详细

解决Maven打包时报错"The packaging for this project did not assign a file to the build artifact"

时间:2020-04-23 01:08:08      阅读:106      评论:0      收藏:0      [点我收藏+]

 

今天在IDEA中打包Maven项目安装到本地仓库时报错

Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default-cli) on project api: 
The packaging for this project did not assign a file to the build artifact

 

 

原因

技术分享图片

我使用的是Plugins中的插件,但我并没有在pom.xml中配置该插件。

 

 

2种解决方式

1、在pom.xml中配置该插件,稍微麻烦一些

2、改用Lifecycle中的方法

 

解决Maven打包时报错"The packaging for this project did not assign a file to the build artifact"

原文:https://www.cnblogs.com/chy18883701161/p/12757712.html

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