Maven報錯:The packaging for this project did not assign a file to the build artifact


一、問題發生

       我想使用IDEA的Maven管理工具將項目安裝到本地倉庫,於是選擇了Plugins下的install:install去執行,如下圖所示:

 

 結果出現了如下報錯信信息:

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

二、問題解決

方法一:使用Maven管理工具下的LifeCycle(生命周期)中的install,如下圖所示 。網上也可以搜到這種解決方法,但是他的說法, “使用Lifecycle中的install,項目就會自動去maven倉庫下載需要的包”是錯誤的。

 

 方法二:使用Maven管理工具 工具欄中的Execute Maven Goal,如下圖所示

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM