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

 

今天在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中配置该插件。apache

 

 

2种解决方式

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

二、改用Lifecycle中的方法maven

相关文章
相关标签/搜索