1. 程式人生 > >mvn 打jar包異常:The packaging for this project did not assign a file to the build artifact -> [Help 1]

mvn 打jar包異常:The packaging for this project did not assign a file to the build artifact -> [Help 1]

idea maven打包 install 報錯,資訊如下:

這是說找不到外掛的包,其實不是找不到這個打包外掛,而是自己的專案沒有從maven倉庫里加載這個包到專案裡,

idea中打包maven專案,有兩個install;其實本人很菜鳥,一直就用Plugins下的install,並 不曉得Lifecycle中的install,經過這次問題,百度了一下,其實lifecycle是maven中一個十分完善的生命週期模型,所以使用Lifecycle中的install專案就會自動去maven倉庫下載需要的包。問題解決!