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

2023-05-16

 

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

 

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

解决Maven打包时报错"The packaging for this project did not assign a file to the build artifact"... 的相关文章

随机推荐