plugins:maven-install-plugin:2.4:install (default-cli) on project demo: The packaging for this proje

maven项目在打包到本地仓库时plugins:maven-install-plugin:2.4:install (default-cli) on project demo: The packaging for this proje_第1张图片
出现此错误: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:maven-install-plugin:2.4:install (default-cli) on project demo: The packaging for this proje_第2张图片
原因:使用的是Plugins中的插件,但没有在pom.xml中配置该插件

解决办法

  1. 在pom.xml中配置该插件
  2. 改用Lifecycle中的install方法plugins:maven-install-plugin:2.4:install (default-cli) on project demo: The packaging for this proje_第3张图片plugins:maven-install-plugin:2.4:install (default-cli) on project demo: The packaging for this proje_第4张图片

你可能感兴趣的:(笔记,maven)