当前位置: 移动技术网 > IT编程>开发语言>Java > 解决Maven打包时报错"The packaging for this project did not assign a file to the build artifact"

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

2020年04月23日  | 移动技术网IT编程  | 我要评论

佛手瓜的价格,阿娇艳门照,长沙月嫂培训学校

 

今天在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中的方法

 

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网