maven项目在打包到本地仓库时
出现此错误:plugins:maven-install-plugin:2.4:install (default-cli) on project demo: The packaging for this project did not assign a file to the build artifact
原因:使用的是Plugins中的插件,但没有在pom.xml中配置该插件
解决办法:
- 在pom.xml中配置该插件
- 改用Lifecycle中的install方法