解決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

相關文章
相關標籤/搜索